Jump to content

[SOLVED] Newbie:- file permissions for samba


Recommended Posts

Hi,

 

Ok I set up me Fedora Core 9 to provide a simple Guest samba access for my home LAN.  Problem is I could only get it to work sharing my /tmp directory.  (All other directories I tried to specify in my smb.conf get the standard message saying the user doesn't have permissions for that directory).  So anyway I got it working on my /tmp directory and found that guest users can copy files, also put files to the share and even make diretories remotely.  However the guest user is not allowed to access the contents of folders that are made directly under /tmp directory i.e so I am using rtorrent to download into such folders and I cant get to the contents ...argh!!

 

I have tried all permutations of chmod +r -R /tmp,chmod 777 -R /tmp chown and chgrp on /tmp directory but I always get the same result.  Can anyone help?  What I dont understand is that I setup a similar samba share on a Debian box the other day and it worked first time so maybe this is specific to Fedora

 

thanks

 

Adam

 

 

So I have solved half of this.  I uninstalled SELINUX and now a guest user can access the subdirectories under /tmp (the current directory I am sharing in Samba) however if I try to share another directory with the smb,conf i.e /srv/download it will not show up the share when I try and locate it on the network.  back to the drwaing board...

 

My smb.conf looks like this BTW:-

 

[global]

workgroup = WORKGROUP

netbios name = SAMBA

security = share

map to guest = Bad User

 

 

path = /srv/download

read only = no

guest ok = yes

browseable=yes

create mask = 0660

directory mask = 2770

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.