<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 6:54 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 18:15 -0500, Jerry Geis wrote:<br>
> I actually have 5 users. Just desire each user to have their own<br>
> Drive.  I presume each user connects with their own password.<br>
<br>
The special section "[homes]" is made just for this purpose. It acts as<br>
a template, allowing users to connect to their come directories without<br>
needing a configuration stanza for every user. Check out what "man<br>
smb.conf" has to say on the "[homes]" section. All you generally need<br>
is this:<br>
<br>
[homes]<br>
writable = yes<br>
<br>
Then any user can connect to a share named after them. For example,<br>
user "fred" could mount "//x/fred".<br>
<br>
User "mary" can try to mount //x/fred, but will not know the<br>
password...<br>
<br>
You can add anything else you want into the [homes] section, but it's<br>
usually not needed. However, if you have "browseable=yes" in your<br>
"[global]" section, I recommend that you add "browseable=no" to your<br>
"[homes]" section. And definitely do NOT add "public = yes". <br>
<br>
If you have a "[homes]" section, and also have a section with the same<br>
name as a user, the latter will apply. So as a general rule, don't do<br>
that.<br>
<br>
Regards, K.<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>
-- <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 Karl,  - Thanks - I wasn't getting that. However - after changing the smb.conf file to</div><div><br></div><div> [homes]</div>  Â comment = My user Directories<br>  Â browseable = no<br>  Â writable = yes<br>  Â valid users = %S<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">I did remove all the individual entries I used to have.</div><div class="gmail_quote"><br></div><div class="gmail_quote">then restarting smbd and trying the mount again:</div><div class="gmail_quote">mount -t cifs //192.168.X.X/my.user /mnt/other -o username=my.user,password=mypw<br>mount: /mnt/other: cannot mount //192.168.X.X/my.user read-only.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">So still does not mount.</div><div class="gmail_quote"><br></div><div class="gmail_quote">What did I miss ? </div><div class="gmail_quote">Thanks</div><div class="gmail_quote"><br></div><div class="gmail_quote">Jerry</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div></div>