Web lists-archives.com

Re: [Samba] No write access on new shares until smbd is restarted




On Thu, 14 Jun 2018 20:14:13 +0200
Eugene Pankov <e@xxxxxxxxxx> wrote:

> Rowland,
> 
> Sorry - here are the globals and share config:
> 
> [global]
> template shell=/bin/bash
> log file=/var/log/samba/log.%m
> log level=8
> max log size=5000
> passdb backend=tdbsam
> load printers=no
> printing=bsd
> printcap name=/dev/null
> map to guest=bad user
> 
> [2430_ram]
> path=/data/fs/2430-ram
> guest ok=no
> browseable=yes
> create mask=0775
> directory mask=0775
> read only=no
> follow symlinks=yes
> wide links=no
> valid users=man_dude
> oplocks=yes
> locking=yes
> 
> The log from my first message is a user attempting and failing to
> create a folder in the root of the share. The user is the one
> specified in valid_users.
> 
> The OS level permissions are correct - i.e. I can log in locally as
> man_dude and create that folder on the FS.
> 

OK, if I remove all the default lines, I am left with this:

[global]
template shell=/bin/bash
log file=/var/log/samba/log.%m
log level=8
load printers=no
printing=bsd
printcap name=/dev/null
map to guest=bad user

[2430_ram]
path=/data/fs/2430-ram
create mask=0775
directory mask=0775
read only=no
valid users=man_dude

And you can probably remove 'map to guest=bad user' as well, because
you do not have 'guest ok = yes' in the share.

You could probably remove 'template shell=/bin/bash' as well, it isn't
needed, your Unix has it own shell.

>From your smb.conf, you are running samba as a standalone server, is
this what you require ?
If it is, have you added the Unix users as Samba users ?
For more info, see here:

https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba