Samba on 22.04

Jerry Geis jerry.geis at gmail.com
Mon Dec 11 23:15:25 UTC 2023


On Mon, Dec 11, 2023 at 5:45 PM Karl Auer <kauer at biplane.com.au> wrote:

> 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
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Hi -  Yes just changing the real user name. nothing special there.
I actually have 5 users. Just desire each user to have their own Drive.  I
presume each user connects with their own password.
Each /home/ directory is owned by that user and they are not in a group so
only that user can access their own mounted drive.

I had the password in the mount .I do want a password in use.

So its just that - Migrating and OLD Centos7 smb.conf to new 22.04. Just
have 5 users with 5 passwords (smbpass)
each user is /home/my.user1 /home/my.user2 etc... and want to mount that
from Windows with "credentials" for each user.
Then only that user should be able to see their files.

Thanks

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20231211/ab609453/attachment.html>


More information about the ubuntu-users mailing list