[Samba] sharing an autofs nfs mount
L.P.H. van Belle
belle at bazuin.nl
Thu Apr 7 10:33:38 UTC 2022
What "works for me"
I have a webserver serving my SFTP service.
I use SecureShell package for the SFTP/SCP service
Secure shell, makes it easy to set a chrooted homedir.
I set NIS (* not really needed but i use RSAT ADUC)
Primary gid to a linux/windows group, WITH GID assigned.
The login is an automounted folder in this case NFS.
*( unless you use cifs, then keep "domain users" )
Now this works fine here with NFS and CIFS automounts for me.
Just keep in mind i "want/need" the chroot and nothing else.
The systemd file to mount the share.
Description=Mount Remote Customers Homedirs
# NFS option.
# Cifs Option
# content : /etc/samba/credentials-administrator
And the automount file.
Description=Automount Remote Customers Homedirs
Make sure the needed packages are installed. *( like cifs-utils/nfs-common on debian)
Make sure you have nfs/fq.dn and cifs/fq.dn in you keytab
Place both files in /etc/systemd/system
systemctl enable srv-remote-customers.automount
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Ralph Boehme via samba
> Verzonden: donderdag 7 april 2022 12:04
> Aan: Thibault Roulet; samba at lists.samba.org
> Onderwerp: Re: [Samba] sharing an autofs nfs mount
> On 4/7/22 10:47, Thibault Roulet via samba wrote:
> > A group of 15 Centos systems running tasks on instruments.
> > Experiments results are saved in a local folder on each machines.
> > We need then to have a centralized place for our users
> where they can
> > get their files using a smb share and also via sftp.
> maybe DFS? Iow run SMB on the the 15 Centos boxes instead of NFS, but
> let users connect to one central DFS server that contains
> redirects to
> the 15 other servers.
> Ralph Boehme, Samba Team https://samba.org/
> SerNet Samba Team Lead https://sernet.de/en/team-samba
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba