Hi, I am testing share parameters, and have the following share definition: ## Section - [shareA] [shareA] path = /tmp/shareA writelist = user1 and do not understand why user1 cannot write files in the share when connected as user1. Unix permissions for the share files are rw for everyone, and the share directory has wide-open permissions. Samba version is 3.0.20b-3.4-SUSE. Thanks for any help anyone can give. Here is the complete smb.conf file (note guest parameters): # # Generated by /root/samba_iiosb/testing/util/modify_samba_config.pl # [global] adminusers = Administrator, root logonhome = \\%L\%U\.9xprofile addsharecommand = /root/samba_iiosb/testing/util/modify_samba_config.pl addgroupscript = /usr/sbin/groupadd -p "%g" deletesharecommand = /root/samba_iiosb/testing/util/modify_samba_config.pl include = /etc/samba/dhcp.conf deleteuserfromgroupscript = /usr/sbin/groupmod -x "%u" "%g" adduserscript = /usr/sbin/useradd -m "%u" deleteprintercommand = /root/samba_iiosb/testing/util/modify_samba_config.pl maptoguest = Bad User addprintercommand = /root/samba_iiosb/testing/util/modify_samba_config.pl setprimarygroupscript = /usr/sbin/usermod -g "%g" "%u" addmachinescript = /usr/sbin/useradd "%u" domainlogons = no deleteuserscript = /usr/sbin/userdel -r "%u" printcapname = cups passdbbackend = tdbsam guestaccount = testguest printing = cups cupsoptions = raw logondrive = P: addusertogroupscript = /usr/sbin/groupmod -m "%u" "%g" logonpath = \\%L\profiles\.msprofile printcapcachetime = 750 workgroup = SAMBA_TEST security = share domainmaster = false ## Section - [users] [users] readonly = No comment = All users vetofiles = /aquota.user/groups/shares/ inheritacls = Yes path = /home ## Section - [homes] [homes] readonly = No browseable = No comment = Home Directories inheritacls = Yes validusers = %S ## Section - [printers] [printers] createmask = 0600 browseable = No comment = All Printers printable = Yes path = /var/tmp ## Section - [shareC] [shareC] write list = testguest guest only = yes guest ok = yes path = /tmp/shareC ## Section - [print$] [print$] directorymask = 0775 createmask = 0664 comment = Printer Drivers forcegroup = ntadmin path = /var/lib/samba/drivers writelist = @ntadmin root ## Section - [shareA] [shareA] path = /tmp/shareA writelist = user1 ## Section - [groups] [groups] readonly = No comment = All groups inheritacls = Yes path = /home/groups ## Section - [profiles] [profiles] directorymask = 0700 createmask = 0600 readonly = No storedosattributes = Yes comment = Network Profiles Service path = %H ## Section - [shareB] [shareB] path = /tmp/shareB guestok = yes writelist = user1 # # end of generated smb.conf # Sincerely, Don Watson Linux Technology and Solutions; Beaverton, OR 503-578-4861/TL: 775-4861; dwatson@us.ibm.com
Hi Donald, the "addprintercomand" works? Can you provide me with a copy of the script? I don't see any problem in your configuration to justify the problem. ls -ld /tmp/* ? ls -ld /tmp? tnxs in advance. Donald W Watson wrote:> > >Hi, > >I am testing share parameters, and have the following share definition: > >## Section - [shareA] >[shareA] > path = /tmp/shareA > writelist = user1 > >and do not understand why user1 cannot write files in the share when >connected as user1. Unix permissions for the share files are rw for >everyone, and the share directory has wide-open permissions. Samba version >is 3.0.20b-3.4-SUSE. > >Thanks for any help anyone can give. Here is the complete smb.conf file >(note guest parameters): > ># ># Generated by /root/samba_iiosb/testing/util/modify_samba_config.pl ># >[global] > adminusers = Administrator, root > logonhome = \\%L\%U\.9xprofile > addsharecommand = /root/samba_iiosb/testing/util/modify_samba_config.pl > addgroupscript = /usr/sbin/groupadd -p "%g" > deletesharecommand = /root/samba_iiosb/testing/util/modify_samba_config.pl > include = /etc/samba/dhcp.conf > deleteuserfromgroupscript = /usr/sbin/groupmod -x "%u" "%g" > adduserscript = /usr/sbin/useradd -m "%u" > deleteprintercommand = /root/samba_iiosb/testing/util/modify_samba_config.pl > maptoguest = Bad User > addprintercommand = /root/samba_iiosb/testing/util/modify_samba_config.pl > setprimarygroupscript = /usr/sbin/usermod -g "%g" "%u" > addmachinescript = /usr/sbin/useradd "%u" > domainlogons = no > deleteuserscript = /usr/sbin/userdel -r "%u" > printcapname = cups > passdbbackend = tdbsam > guestaccount = testguest > printing = cups > cupsoptions = raw > logondrive = P: > addusertogroupscript = /usr/sbin/groupmod -m "%u" "%g" > logonpath = \\%L\profiles\.msprofile > printcapcachetime = 750 > workgroup = SAMBA_TEST > security = share > domainmaster = false > >## Section - [users] >[users] > readonly = No > comment = All users > vetofiles = /aquota.user/groups/shares/ > inheritacls = Yes > path = /home > >## Section - [homes] >[homes] > readonly = No > browseable = No > comment = Home Directories > inheritacls = Yes > validusers = %S > >## Section - [printers] >[printers] > createmask = 0600 > browseable = No > comment = All Printers > printable = Yes > path = /var/tmp > >## Section - [shareC] >[shareC] > write list = testguest > guest only = yes > guest ok = yes > path = /tmp/shareC > >## Section - [print$] >[print$] > directorymask = 0775 > createmask = 0664 > comment = Printer Drivers > forcegroup = ntadmin > path = /var/lib/samba/drivers > writelist = @ntadmin root > >## Section - [shareA] >[shareA] > path = /tmp/shareA > writelist = user1 > >## Section - [groups] >[groups] > readonly = No > comment = All groups > inheritacls = Yes > path = /home/groups > >## Section - [profiles] >[profiles] > directorymask = 0700 > createmask = 0600 > readonly = No > storedosattributes = Yes > comment = Network Profiles Service > path = %H > >## Section - [shareB] >[shareB] > path = /tmp/shareB > guestok = yes > writelist = user1 > ># ># end of generated smb.conf ># > >Sincerely, Don Watson >Linux Technology and Solutions; Beaverton, OR >503-578-4861/TL: 775-4861; dwatson@us.ibm.com > >
Donald W Watson wrote:> > > > Hi, > > I am testing share parameters, and have the following share definition: > > ## Section - [shareA] > [shareA] > path = /tmp/shareA > writelist = user1 > > and do not understand why user1 cannot write files in the share when > connected as user1. Unix permissions for the share files are rw for > everyone, and the share directory has wide-open permissions. Samba version > is 3.0.20b-3.4-SUSE. > > Thanks for any help anyone can give. Here is the complete smb.conf file > (note guest parameters): > > # > # Generated by /root/samba_iiosb/testing/util/modify_samba_config.pl > # > [global] > adminusers = Administrator, root > logonhome = \\%L\%U\.9xprofile > addsharecommand = /root/samba_iiosb/testing/util/modify_samba_config.pl > addgroupscript = /usr/sbin/groupadd -p "%g" > deletesharecommand = /root/samba_iiosb/testing/util/modify_samba_config.pl > include = /etc/samba/dhcp.conf > deleteuserfromgroupscript = /usr/sbin/groupmod -x "%u" "%g" > adduserscript = /usr/sbin/useradd -m "%u" > deleteprintercommand = /root/samba_iiosb/testing/util/modify_samba_config.pl > maptoguest = Bad User > addprintercommand = /root/samba_iiosb/testing/util/modify_samba_config.pl > setprimarygroupscript = /usr/sbin/usermod -g "%g" "%u" > addmachinescript = /usr/sbin/useradd "%u" > domainlogons = no > deleteuserscript = /usr/sbin/userdel -r "%u" > printcapname = cups > passdbbackend = tdbsam > guestaccount = testguest > printing = cups > cupsoptions = raw > logondrive = P: > addusertogroupscript = /usr/sbin/groupmod -m "%u" "%g" > logonpath = \\%L\profiles\.msprofile > printcapcachetime = 750 > workgroup = SAMBA_TEST > security = share > domainmaster = false > > ## Section - [users] > [users] > readonly = No > comment = All users > vetofiles = /aquota.user/groups/shares/ > inheritacls = Yes > path = /home > > ## Section - [homes] > [homes] > readonly = No > browseable = No > comment = Home Directories > inheritacls = Yes > validusers = %S > > ## Section - [printers] > [printers] > createmask = 0600 > browseable = No > comment = All Printers > printable = Yes > path = /var/tmp > > ## Section - [shareC] > [shareC] > write list = testguest > guest only = yes > guest ok = yes > path = /tmp/shareC > > ## Section - [print$] > [print$] > directorymask = 0775 > createmask = 0664 > comment = Printer Drivers > forcegroup = ntadmin > path = /var/lib/samba/drivers > writelist = @ntadmin root > > ## Section - [shareA] > [shareA] > path = /tmp/shareA > writelist = user1 > > ## Section - [groups] > [groups] > readonly = No > comment = All groups > inheritacls = Yes > path = /home/groups > > ## Section - [profiles] > [profiles] > directorymask = 0700 > createmask = 0600 > readonly = No > storedosattributes = Yes > comment = Network Profiles Service > path = %H > > ## Section - [shareB] > [shareB] > path = /tmp/shareB > guestok = yes > writelist = user1 > > # > # end of generated smb.conf > # > > Sincerely, Don Watson > Linux Technology and Solutions; Beaverton, OR > 503-578-4861/TL: 775-4861; dwatson@us.ibm.comAre you trying "write list" or "writelist"? Did you have problems with other share? Almost all of them do possess "writelist" and it is in fact "write list". Greetings. -- Miguel Da Silva. Servicio de Informatica. Facultad de Ciencias.
The other post is right. is "write list", not "writelist". Try with testparm or testparm -v to see the error. Donald W Watson wrote:> > Hi Guido, > > The add printer command does not work; I haven't modified > modify_samba_config.pl to handle that. I really should remove that > from my configuration. > > ls -ld /tmp = drwxrwxrwt 67 root root > ls -ld /tmp/shareA = drwxrwxrwx 2 root root > > I also do not see any reason for the file write problem. > > Sincerely, Don Watson > Linux Technology and Solutions; Beaverton, OR > 503-578-4861/TL: 775-4861; dwatson@us.ibm.com > Inactive hide details for Guido Lorenzutti > <guido@lorenzutti.com.ar>Guido Lorenzutti <guido@lorenzutti.com.ar> > > > *Guido Lorenzutti <guido@lorenzutti.com.ar>* > > 08/18/2006 11:02 AM > > > > To > > Donald W Watson/Beaverton/IBM@IBMUS > > cc > > samba@lists.samba.org > > Subject > > Re: [Samba] share write access > > > > > Hi Donald, the "addprintercomand" works? > Can you provide me with a copy of the script? > I don't see any problem in your configuration to justify the problem. ls > -ld /tmp/* ? > ls -ld /tmp? > > tnxs in advance. > > Donald W Watson wrote: > > > > > > >Hi, > > > >I am testing share parameters, and have the following share definition: > > > >## Section - [shareA] > >[shareA] > > path = /tmp/shareA > > writelist = user1 > > > >and do not understand why user1 cannot write files in the share when > >connected as user1. Unix permissions for the share files are rw for > >everyone, and the share directory has wide-open permissions. Samba > version > >is 3.0.20b-3.4-SUSE. > > > >Thanks for any help anyone can give. Here is the complete smb.conf file > >(note guest parameters): > > > ># > ># Generated by /root/samba_iiosb/testing/util/modify_samba_config.pl > ># > >[global] > > adminusers = Administrator, root > > logonhome = \\%L\%U\.9xprofile > > addsharecommand = > /root/samba_iiosb/testing/util/modify_samba_config.pl > > addgroupscript = /usr/sbin/groupadd -p "%g" > > deletesharecommand = > /root/samba_iiosb/testing/util/modify_samba_config.pl > > include = /etc/samba/dhcp.conf > > deleteuserfromgroupscript = /usr/sbin/groupmod -x "%u" "%g" > > adduserscript = /usr/sbin/useradd -m "%u" > > deleteprintercommand = > /root/samba_iiosb/testing/util/modify_samba_config.pl > > maptoguest = Bad User > > addprintercommand = > /root/samba_iiosb/testing/util/modify_samba_config.pl > > setprimarygroupscript = /usr/sbin/usermod -g "%g" "%u" > > addmachinescript = /usr/sbin/useradd "%u" > > domainlogons = no > > deleteuserscript = /usr/sbin/userdel -r "%u" > > printcapname = cups > > passdbbackend = tdbsam > > guestaccount = testguest > > printing = cups > > cupsoptions = raw > > logondrive = P: > > addusertogroupscript = /usr/sbin/groupmod -m "%u" "%g" > > logonpath = \\%L\profiles\.msprofile > > printcapcachetime = 750 > > workgroup = SAMBA_TEST > > security = share > > domainmaster = false > > > >## Section - [users] > >[users] > > readonly = No > > comment = All users > > vetofiles = /aquota.user/groups/shares/ > > inheritacls = Yes > > path = /home > > > >## Section - [homes] > >[homes] > > readonly = No > > browseable = No > > comment = Home Directories > > inheritacls = Yes > > validusers = %S > > > >## Section - [printers] > >[printers] > > createmask = 0600 > > browseable = No > > comment = All Printers > > printable = Yes > > path = /var/tmp > > > >## Section - [shareC] > >[shareC] > > write list = testguest > > guest only = yes > > guest ok = yes > > path = /tmp/shareC > > > >## Section - [print$] > >[print$] > > directorymask = 0775 > > createmask = 0664 > > comment = Printer Drivers > > forcegroup = ntadmin > > path = /var/lib/samba/drivers > > writelist = @ntadmin root > > > >## Section - [shareA] > >[shareA] > > path = /tmp/shareA > > writelist = user1 > > > >## Section - [groups] > >[groups] > > readonly = No > > comment = All groups > > inheritacls = Yes > > path = /home/groups > > > >## Section - [profiles] > >[profiles] > > directorymask = 0700 > > createmask = 0600 > > readonly = No > > storedosattributes = Yes > > comment = Network Profiles Service > > path = %H > > > >## Section - [shareB] > >[shareB] > > path = /tmp/shareB > > guestok = yes > > writelist = user1 > > > ># > ># end of generated smb.conf > ># > > > >Sincerely, Don Watson > >Linux Technology and Solutions; Beaverton, OR > >503-578-4861/TL: 775-4861; dwatson@us.ibm.com > > > > > >