Hi,
i have some shares defined in my smb.conf, but now i experience rights
issues.
a share looks like this:
[share]
path = /mnt/share
guest ok = yes
writeable = no
public = no
write list = @ntusers
read only = no
this settings i have set since i experience problems.
before it looked like this and worked:
[share]
path = /mnt/share
guest ok = yes
writeable = yes
public = no
write list = @ntusers
since a few days i have the problem that i can copy files to the share,
but can't delete or modify them.
i have some other shares i want to be used only by some picked people.
these shares look like this:
[bau]
path = /mnt/share2
guest ok = no
writeable = no
public = no
valid users = tom peter Administrator
read only = no
same issue there.
my smb.conf global section:
[global]
printing = bsd
netbios name = PDC
server string = PDC (%h)
workgroup = workgroup
interfaces = eth0,lo
security = user
encrypt passwords = true
map to guest = bad user
local master = yes
preferred master = yes
domain master = yes
domain logons = yes
add user script = /usr/sbin/useradd -m '%u' -g ntusers -G ntusers -s
/bin/false
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s
/bin/false -M %u
logon path = \\%L\profile\%U
logon script = %U.bat
logon drive = H:
hide files = /desktop.ini/ntuser.ini/NTUSER.*/Thumbs.db/
panic action = /usr/share/samba/panic-action %d
i hope you can help out. im still wondering why this has worked before :(
greetings juergen.
Am 10.05.2011 09:49, schrieb J. Echter:> Hi, > > i have some shares defined in my smb.conf, but now i experience rights > issues. > > a share looks like this: > > [share] > path = /mnt/share > guest ok = yes > writeable = no > public = no > write list = @ntusers > read only = no > > this settings i have set since i experience problems. > > before it looked like this and worked: > > [share] > path = /mnt/share > guest ok = yes > writeable = yes > public = no > write list = @ntusers > > since a few days i have the problem that i can copy files to the > share, but can't delete or modify them. > > i have some other shares i want to be used only by some picked people. > > these shares look like this: > > [bau] > path = /mnt/share2 > guest ok = no > writeable = no > public = no > valid users = tom peter Administrator > read only = no > > same issue there. > > my smb.conf global section: > > [global] > printing = bsd > netbios name = PDC > server string = PDC (%h) > workgroup = workgroup > interfaces = eth0,lo > security = user > encrypt passwords = true > map to guest = bad user > local master = yes > preferred master = yes > domain master = yes > domain logons = yes > add user script = /usr/sbin/useradd -m '%u' -g ntusers -G ntusers > -s /bin/false > delete user script = /usr/sbin/userdel -r '%u' > add group script = /usr/sbin/groupadd '%g' > delete group script = /usr/sbin/groupdel '%g' > add user to group script = /usr/sbin/usermod -G '%g' '%u' > add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s > /bin/false -M %u > logon path = \\%L\profile\%U > logon script = %U.bat > logon drive = H: > hide files = /desktop.ini/ntuser.ini/NTUSER.*/Thumbs.db/ > panic action = /usr/share/samba/panic-action %d > > > i hope you can help out. im still wondering why this has worked before :( > > greetings juergen.i tried [share] path = /mnt/share guest ok = yes public = no valid users = @ntusers force group = @ntusers browseable = yes read only = no create mask = 0660 directory mask = 0770 force create mode = 0660 force directory mode = 0770 but still i get these permissions: drwxrwx--- 9 99 99 113 May 10 11:59 test somethings wrong here...
Am 10.05.2011 12:35, schrieb Michal Belica:> Hi Juergen, > >>> [share] >>> path = /mnt/share >>> guest ok = yes >>> writeable = no >>> public = no >>> write list = @ntusers >>> read only = no > > Hm, is it OK to combine "writable = no" with "read only = no"? I think they have the same effect, just reversed and using them like this could be a source of conflict. > >> [share] >> path = /mnt/share >> guest ok = yes >> public = no >> valid users = @ntusers >> force group = @ntusers >> browseable = yes >> read only = no >> create mask = 0660 >> directory mask = 0770 >> force create mode = 0660 >> force directory mode = 0770 > >> but still i get these permissions: > >> drwxrwx--- 9 99 99 113 May 10 11:59 test > >> somethings wrong here... > > And what permissions would you expect? You said "force directory mode = 0770" and the "test" directory indeed has these permissions. >Hi Michael, sorry, i was wrong. i meant the ownage of the dirs. i expected ntusers as group owner. but i solved my problem by putting create mode setting in to my share definitions. now it works as expected. thanks for your help. juergen.
Reasonably Related Threads
- roaming profiles - one file can't be copied to server
- program update made my shares no work anymore (ACL)
- Samba PDC adding new user, profile dir is not created
- Samba 2.2.7 as PDC causing BSOD on 2K domain logon
- migrated from samba tdbsam to ldapsam and now some strange errors.