[Samba] share write access

Miguel Da Silva - Servicio de Informát Miguel Da Silva - Servicio de Informát
Fri Aug 18 20:00:03 GMT 2006


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


Are 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.


More information about the samba mailing list