Samba on 22.04

Karl Auer kauer at biplane.com.au
Tue Dec 12 02:00:33 UTC 2023


On Mon, 2023-12-11 at 20:40 -0500, Jerry Geis wrote:
>  [homes]
>    comment = My user Directories
>    browseable = no
>    writable = yes
>    valid users = %S

That looks good. You don't need the valid users line though. Not sure
what you're trying to achieve there. "%S" is the current service name;
I'm not sure what that is in this context - it might be the username
(in which case the "valid users" line is pointless) or it might be
"homes" which would be worse than useless :-)

> then restarting smbd and trying the mount again:
> mount -t cifs //192.168.X.X/my.user /mnt/other -o
> username=my.user,password=mypw
> mount: /mnt/other: cannot mount //192.168.X.X/my.user read-only.
> 
> So still does not mount.

I don't know why it's trying to mount the share read-only. Perhaps you
should post your complete smb.conf.

One possibility is that you don't have permissions in /mnt or
/mnt/other on the client. Try mounting using sudo to exclude any (well,
most) permissions issues on your client.

Another possibility is that the username you are using does not exist
on the server or does not have permissions over the directory that the
Samba server thinks is that user's home directory (obtained by default
from /etc/passwd on the server).

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer






More information about the ubuntu-users mailing list