Jump to content

[SOLVED] Newbie:- file permissions for samba


harmonia

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.