Samba on 22.04
Karl Auer
kauer at biplane.com.au
Mon Dec 11 23:53:00 UTC 2023
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
More information about the ubuntu-users
mailing list