<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 11, 2023 at 5:45 PM Karl Auer <<a href="mailto:kauer@biplane.com.au">kauer@biplane.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2023-12-11 at 12:30 -0500, Jerry Geis wrote:<br>
> The smb.conf worked fine on CentOS - but does not work on Ubuntu<br>
> 22.04<br>
> <br>
> The is the OLD smb.conf<br>
> <br>
> [my.user]<br>
>         comment = my.user<br>
>         path = /home<br>
>         read only = no<br>
>         public = yes<br>
>         printable = no<br>
>         writable = yes<br>
>         valid users = @my.user<br>
<br>
Is that literally "my.user" in three places, or are you obfuscating the<br>
real user name?<br>
<br>
> cannot mount my.user as read-only<br>
<br>
Do you want it to be mounted read-only? The smb.conf says you want it<br>
writable.<br>
<br>
Your cifs test mounts something different - it mounts //x/my.user. not<br>
//x/home.<br>
<br>
In fact, that /home path looks off. You really want to mount /home<br>
(containing all users' homes) in a share called my.user, then allow<br>
only one user access, and (apparently) do this via that user's group<br>
rather than that user's username, and all this without requiring a<br>
password? Why have "read only = no" AND "writable = yes"? They are the<br>
same thing. Why have a comment that adds no value at all?<br>
<br>
I suggest you tell us what you are trying to achieve with this conf.<br>
<br>
Regards, K.<br>
<br>
<br>
-- <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Karl Auer (<a href="mailto:kauer@biplane.com.au" target="_blank">kauer@biplane.com.au</a>)<br>
<a href="http://www.biplane.com.au/kauer" rel="noreferrer" target="_blank">http://www.biplane.com.au/kauer</a><br>
<br>
<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a></blockquote><div><br></div><div>Hi -  Yes just changing the real user name. nothing special there.</div><div>I actually have 5 users. Just desire each user to have their own Drive.  I presume each user connects with their own password.</div><div>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.</div><div><br></div><div>I had the password in the mount .I do want a password in use.</div><div><br></div><div>So its just that - Migrating and OLD Centos7 smb.conf to new 22.04. Just have 5 users with 5 passwords (smbpass)</div><div>each user is /home/my.user1 /home/my.user2 etc... and want to mount that from Windows with "credentials" for each user.</div><div>Then only that user should be able to see their files.</div><div><br></div><div>Thanks</div><div><br></div><div>Jerry </div></div></div>