hello list, im trying to configure samba, no pdc, just samba for share directories with linux users. my problem is: i have users and groups diretory1 diretory2 at directory1 group own is x at directory2 group own is y i make chmod 775 at directory1 and chmod +t, after i make chown root.x same in directory2, just change chown to root.y my problem: when user make directory and other user make one file at this directory, owner and others users can delete files. I need same as chmod +t when users create new directory, but dont work with me. Thanks in advance And sorry for bad english.
Hi everybody, I?m trying to get a Server (OpenSUSE 11.4 64bit with samba 3.5.7) to act as a domain member in a Samba Domain (SLES 10 32bit with Samba 3.0.28). The server has been successfully added to the domain via "net rpc join - S <pdc> -U root " /etc/nsswitch.conf has been modified like: passwd: files winbind groups: files winbind /lib64/libnss_winbind.so.2 and /lib/libnss_winbind.so.2 are in place. Winbind-Config of the "client": password server = * winbind separator = + winbind use default domain = yes winbind enum users = yes winbind enum groups = yes winbind cache time = 10 idmap uid = 10000-30000 idmap gid = 10000-20000 template shell = /bin/bash template homedir = /home/%u wbinfo -g shows all of our ~8500 Users, wbinfo -g all of our ~ 100 groups Now if I?m trying to use "getent passwd" I get results of about 1200 to 1500 users, "getent groups" only shows the local groups. I tried almost every howto I found via the net, but I won?t work :( I even tried it with a fresh install of Debian, same problem. Rather sure it?s a configuration problem, but I don?t have anymore clues where to take a look. Anyone out there with an idea where to look for failures? Best regards Florian G?tz Mit freundlichen Gr??en Florian G?tz
On 08/31/2011 5:55 PM, Old Eduardo wrote:> hello list, > > im trying to configure samba, no pdc, just samba for share directories with > linux users. > > my problem is: > > i have users and groups > > diretory1 > diretory2 > > at directory1 group own is x > at directory2 group own is y > > i make chmod 775 at directory1 and chmod +t, after i make chown root.x > same in directory2, just change chown to root.y > > my problem: when user make directory and other user make one file at this > directory, owner and others users can delete files. > > I need same as chmod +t when users create new directory, but dont work with > me. > > Thanks in advance > > And sorry for bad english.Maybe adding this to share works for you ==> [share] inherit owner = Yes Dale inherit owner (S) The ownership of new files and directories is normally governed by effective uid of the connected user. This option allows the Samba administrator to specify that the ownership for new files and directories should be controlled by the ownership of the parent directory. Common scenarios where this behavior is useful is in implementing drop-boxes where users can create and edit files but not delete them and to ensure that newly create files in a user's roaming profile directory are actually owner by the user. Default: //|inherit owner|/ = |no| /