Samba on 22.04

Karl Auer kauer at biplane.com.au
Mon Dec 11 22:43:25 UTC 2023


On Mon, 2023-12-11 at 12:30 -0500, Jerry Geis wrote:
> The smb.conf worked fine on CentOS - but does not work on Ubuntu
> 22.04
> 
> The is the OLD smb.conf
> 
> [my.user]
>         comment = my.user
>         path = /home
>         read only = no
>         public = yes
>         printable = no
>         writable = yes
>         valid users = @my.user

Is that literally "my.user" in three places, or are you obfuscating the
real user name?

> cannot mount my.user as read-only

Do you want it to be mounted read-only? The smb.conf says you want it
writable.

Your cifs test mounts something different - it mounts //x/my.user. not
//x/home.

In fact, that /home path looks off. You really want to mount /home
(containing all users' homes) in a share called my.user, then allow
only one user access, and (apparently) do this via that user's group
rather than that user's username, and all this without requiring a
password? Why have "read only = no" AND "writable = yes"? They are the
same thing. Why have a comment that adds no value at all?

I suggest you tell us what you are trying to achieve with this conf.

Regards, K.


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






More information about the ubuntu-users mailing list