Cannot establish write privileges to Samba share Suse 12.1

Below is the smb.conf file. I am able to read files in the /home/health/share directory from a networked computer. Unfortunately, I am unable to write to this directory.

I’ve tried enabling share by right clicking the folder in dolphin, selecting properties, clicking the share tab and clicked “share with samba” and “allow guests”. This temporarily changes the folder to have a little world icon. After closing dolphin and reopening it the folder symbol is normal (unshared). Any help would be appreciated.

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2011-03-01

[global]
workgroup = WORKGROUP
passdb backend = tdbsam
netbios name = linux-fgl7
name resolve order = bcast host lmhosts wins
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
wins support = No
wins server =
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[share]
comment =
inherit acls = Yes
path = /home/health/share
read only = No
guest ok = Yes
browseable = Yes
create mask = 666

Share disabled by YaST

[netlogon]

On Thu March 22 2012 09:56 pm, Parthenolide wrote:

>
> Below is the smb.conf file. I am able to read files in the
> /home/health/share directory from a networked computer. Unfortunately, I
> am unable to write to this directory.
>
<snip>
>
> [share]
> comment =
> inherit acls = Yes
> path = /home/health/share
> read only = No
> guest ok = Yes
> browseable = Yes
> create mask = 666
>
> ## Share disabled by YaST
> # [netlogon]
>
Parthenolid;

I suspect that you are not authenticating as the owner of /home/health/share
and do not have Linux permissions that permit writing.

First have you created Samba users with:


su -
smbpasswd -a <username>
exit

What is the result of:


ls -ld /home/health/share


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

smbpasswd -a health

ls -ld share
drwxrwxr-x 7 health users 4096 Mar 28 15:19 share

restarted nmb and smb with yast run levels

Using dolphin from the health account, and going into share, the owner and group can read and write. Going into share via samba shares, the owner can read and write, group and others are read only.

On Wed March 28 2012 05:56 pm, Parthenolide wrote:

>
> smbpasswd -a health
>
> ls -ld share
> drwxrwxr-x 7 health users 4096 Mar 28 15:19 share
>
> restarted nmb and smb with yast run levels
>
> Using dolphin from the health account, and going into share, the owner
> and group can read and write. Going into share via samba shares, the
> owner can read and write, group and others are read only.
>
Parthenolide;

The “guest” account will be mapped to the linux user “nobody”, Since “other”
has only read and execute privileges they will not be able to write. If you
are not too concerned about security you could give other write access. This
is a bit dangerous so I’d suggest you add the following parameter to the share
definition in /etc/samba/smb.conf


force user = health

This means that when someone accesses the share via Samba they will be
connected as user health.

See man smb.conf.


P. V.
“We’re all in this together, I’m pulling for you.” Red Green