Samba on 22.04

Jerry Geis jerry.geis at gmail.com
Tue Dec 12 01:40:20 UTC 2023


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

> On Mon, 2023-12-11 at 18:15 -0500, Jerry Geis wrote:
> > I actually have 5 users. Just desire each user to have their own
> > Drive.  I presume each user connects with their own password.
>
> The special section "[homes]" is made just for this purpose. It acts as
> a template, allowing users to connect to their come directories without
> needing a configuration stanza for every user. Check out what "man
> smb.conf" has to say on the "[homes]" section. All you generally need
> is this:
>
> [homes]
> writable = yes
>
> Then any user can connect to a share named after them. For example,
> user "fred" could mount "//x/fred".
>
> User "mary" can try to mount //x/fred, but will not know the
> password...
>
> You can add anything else you want into the [homes] section, but it's
> usually not needed. However, if you have "browseable=yes" in your
> "[global]" section, I recommend that you add "browseable=no" to your
> "[homes]" section. And definitely do NOT add "public = yes".
>
> If you have a "[homes]" section, and also have a section with the same
> name as a user, the latter will apply. So as a general rule, don't do
> that.
>
> 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 Karl,  - Thanks - I wasn't getting that. However - after changing the
smb.conf file to

 [homes]
   comment = My user Directories
   browseable = no
   writable = yes
   valid users = %S

I did remove all the individual entries I used to have.

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.

What did I miss ?
Thanks

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


More information about the ubuntu-users mailing list