[Samba] How do users access shares?

cn at brain-biotech.de cn at brain-biotech.de
Tue Nov 9 15:39:04 UTC 2021


Am 09.11.21 um 14:21 schrieb Rob Campbell via samba:
> What I would want is for all users to have a mnt directory in their home
> that these shares would mount to.  So user 'tester' would have
> /home/tester/mnt/Photos /home/tester/mnt/Videos /home/tester/mnt/Music.  I
> guess I could create a standard mount point like /mnt/Photos /mnt/Videos
> /mnt/Music but then, how do I restrict access to what the share
> says @HOME\"Media Users"?  And how do I do I give write access to
> only @HOME\"Media Admins"?
> 
> I used gio mount smb://fs01/Photos and that created the share in Nautilus
> but I can't use my programs with that.  I tried the symlink ln -s
> /run/user/2002/gvfs/smb-share\:server\=fs01\,share\=Photos but that symlink
> didn't work at all.

You have two options I think:

pam_mount:

https://wiki.archlinux.org/title/pam_mount

https://www.bu.edu/engit/knowledge-base/linux/opensuseatbu-pam_mount/

or autofs:

https://www.unixmen.com/how-to-mount-a-smbcifs-share-as-an-automount-on-centosfedorarhel/

https://itectec.com/ubuntu/ubuntu-cifs-mounts-and-kerberos-permissions-on-access-or-best-practice/


I used to use pam_mount but switched to autfs as ist was more convenient.

Regards

-- 
Dr. Christian Naumer
Vice President
Unit Head Bioprocess Development

BRAIN Biotech AG
Darmstaedter Str. 34-36, D-64673 Zwingenberg
e-mail cn at brain-biotech.com, homepage www.brain-biotech.com
phone +49-6251-9331-30 / fax +49-6251-9331-11

Sitz der Gesellschaft: Zwingenberg/Bergstrasse
Registergericht AG Darmstadt, HRB 24758
Vorstand: Adriaan Moelker (Vorstandsvorsitzender), 
Lukas Linnig
Aufsichtsratsvorsitzender: Dr. Georg Kellinghusen


More information about the samba mailing list