rod@newtonhall.co.uk
2002-Oct-18 11:52 UTC
[Samba] Please help, going mad with permissions
Dear SAmba Sorry to trouble you again but here is my problem. I want to have a directory writeable only for users in a unix group "accounts" so i need to do two things. 1. Create the group and user in linux 2. Create the relevant masks for the samba share for this directory so i do this: 1 # mkdir /dev/accounts 2. # chgrp accounts /dev/accounts 3. # chmod 0770 /dev/accounts ##i think these are right for Owner & group ### in my smb.conf [accounts] browseable = yes path = /dev/accounts read only = no write list = @accounts create mask = 770 directory mask = 770 i have added a user to the /etc/groups file using vi to the accounts group from my windowsnt4 pc i attach to the network share ok if i attempt to create a new folder i am told that i may not be able to access files under it if i attempt to create a file under the share i get access denied. what chmod to i need on the directory and what "masks" are needed in the smb.conf, i seem to be going round in circles!!! i know this is so so simple but it is driving me nuts. kind regards rod
Bradley W. Langhorst
2002-Oct-18 14:44 UTC
[Samba] Please help, going mad with permissions
On Fri, 2002-10-18 at 07:58, rod@newtonhall.co.uk wrote:> 1 # mkdir /dev/accounts > 2. # chgrp accounts /dev/accounts > 3. # chmod 0770 /dev/accounts ##i think these are right for > Owner & group ###this looks right to me.. except is is weird to have a share in the dev tree... are you sure that is what you want - usually that is reserved for hardware devices.> in my smb.conf > > [accounts] > browseable = yesi think this is unnecessary but not harmful> path = /dev/accounts > read only = noset this to yes> write list = @accountsi don't think you need the writ list line and set read only to> create mask = 770 > directory mask = 770 > > > > what chmod to i need on the directory and what "masks" are needed in the > smb.conf, i seem to be going round in circles!!!you've almost got it - don't stress out.> i know this is so so simple but it is driving me nuts.
[accounts] browseable = yes path = /dev/accounts read only = no write list = @accounts create mask = 770 directory mask = 770 ------------------------------ Try it with with: read only = yes It still my not work the way you want, but at least having a write list will make sense. Patrick
It maybe isn't the problem now, but it may be that your OS has a cron job, utility, or patch that modifies the permissions of files/directories under "/dev". This is because it may assume that all files/directories there are devices. For that reason alone, I would definitely find another location for this share. Just my 2 cents, and good luck! Troy>>> <ascannel@fws.gov> 10/18/02 02:13PM >>>[accounts] path = /dev/accounts