[Samba] share write access

Guido Lorenzutti guido at lorenzutti.com.ar
Fri Aug 18 18:02:39 GMT 2006


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 at us.ibm.com
>  
>



More information about the samba mailing list