Hello, I'm using a Samba 4 as domain server and I've a lot of Windows computers that mounts shared drives on another server through GPO applied by user groups. Is there any way to do something similar on a Linux box, or I've to use a local script? Thanks! -- _________________________________________ Daniel Carrasco Marín Ingeniería para la Innovación i2TIC, S.L. Tlf: +34 911 12 32 84 Ext: 223 www.i2tic.com _________________________________________
If you mean, Linux <=> Linux , use automounting, of dedicated mounts. Cifs/nfs, depending on you setup and what you need.> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Daniel Carrasco via samba > Verzonden: woensdag 11 oktober 2017 9:33 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Using GPO to mount shares on Linux > > Hello, > > I'm using a Samba 4 as domain server and I've a lot of > Windows computers that mounts shared drives on another server > through GPO applied by user groups. > Is there any way to do something similar on a Linux box, or > I've to use a local script? > > Thanks! > > -- > _________________________________________ > > Daniel Carrasco Marín > Ingeniería para la Innovación i2TIC, S.L. > Tlf: +34 911 12 32 84 Ext: 223 > www.i2tic.com > _________________________________________ > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Yeah, I mean an Ubuntu 16.04 client mounting a Linux Samba shares on a Debian 8 server depending of user groups. Both connected as members servers to a Samba 4 DC. I'll research about how automounting works. Thanks!! 2017-10-11 10:13 GMT+02:00 L.P.H. van Belle via samba <samba at lists.samba.org>:> If you mean, Linux <=> Linux , use automounting, of dedicated mounts. > Cifs/nfs, depending on you setup and what you need. > > > > -----Oorspronkelijk bericht----- > > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > > Daniel Carrasco via samba > > Verzonden: woensdag 11 oktober 2017 9:33 > > Aan: samba at lists.samba.org > > Onderwerp: [Samba] Using GPO to mount shares on Linux > > > > Hello, > > > > I'm using a Samba 4 as domain server and I've a lot of > > Windows computers that mounts shared drives on another server > > through GPO applied by user groups. > > Is there any way to do something similar on a Linux box, or > > I've to use a local script? > > > > Thanks! > > > > -- > > _________________________________________ > > > > Daniel Carrasco Marín > > Ingeniería para la Innovación i2TIC, S.L. > > Tlf: +34 911 12 32 84 Ext: 223 > > www.i2tic.com > > _________________________________________ > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba-- _________________________________________ Daniel Carrasco Marín Ingeniería para la Innovación i2TIC, S.L. Tlf: +34 911 12 32 84 Ext: 223 www.i2tic.com _________________________________________
On Wed, 11 Oct 2017 10:13:35 +0200 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> If you mean, Linux <=> Linux , use automounting, of dedicated mounts. > Cifs/nfs, depending on you setup and what you need. > >The problem is, they don't seem to work any more. They all seem to rely on mount.cifs and you need to be root to run this. When the user logs in, the mounting program runs using the users creds and fails. Rowland
On Wed, 11 Oct 2017 11:00:59 +0200 Michael Wandel <m.wandel at t-online.de> wrote:> On 11.10.2017 10:37, Rowland Penny via samba wrote: > > On Wed, 11 Oct 2017 10:13:35 +0200 > > "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote: > > > >> If you mean, Linux <=> Linux , use automounting, of dedicated > >> mounts. Cifs/nfs, depending on you setup and what you need. > >> > >> > > > > The problem is, they don't seem to work any more. They all seem to > > rely on mount.cifs and you need to be root to run this. When the > > user logs in, the mounting program runs using the users creds and > > fails. > > > Hi, > > it can be solved by pam_mount or you can use mount.cifs with the > multiuser option. > > https://www.snia.org/sites/default/orig/SDC2012/presentations/Revisions/JeffLayton_Multiuser%20Mounts%20with%20Linux%20CIFS_revision.pdf > > best regards > Michael > > > > Rowland > > > > > >I have tried to get autofs to work with nfs and cifs as user mounts, I cannot get these to work and believe me, I really tried ;-) I cannot get pam_mount to work either, it just tells me there are no volumes to mount. If I run the mount manually it doesn't work, I run it again with sudo, it works. I cannot find a way to get pam_mount to use sudo. In my opinion 'multiuser' is a possibilty, but again I cannot get it to work. I am now considering pam_script, so watch this space ;-) Rowland
On Wed, 11 Oct 2017 12:03:38 +0200 Michael Wandel <m.wandel at t-online.de> wrote:> On 11.10.2017 11:38, Rowland Penny via samba wrote: > > On Wed, 11 Oct 2017 11:00:59 +0200 > > Michael Wandel <m.wandel at t-online.de> wrote: > > > >> On 11.10.2017 10:37, Rowland Penny via samba wrote: > >>> On Wed, 11 Oct 2017 10:13:35 +0200 > >>> "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote: > >>> > >>>> If you mean, Linux <=> Linux , use automounting, of dedicated > >>>> mounts. Cifs/nfs, depending on you setup and what you need. > >>>> > >>>> > >>> > >>> The problem is, they don't seem to work any more. They all seem to > >>> rely on mount.cifs and you need to be root to run this. When the > >>> user logs in, the mounting program runs using the users creds and > >>> fails. > >>> > >> Hi, > >> > >> it can be solved by pam_mount or you can use mount.cifs with the > >> multiuser option. > >> > >> https://www.snia.org/sites/default/orig/SDC2012/presentations/Revisions/JeffLayton_Multiuser%20Mounts%20with%20Linux%20CIFS_revision.pdf > >> > >> best regards > >> Michael > >> > >> > >>> Rowland > >>> > >>> > >> > >> > > > > I have tried to get autofs to work with nfs and cifs as user > > mounts, I cannot get these to work and believe me, I really > > tried ;-) > > > ok, do you use automount from the autofs package or do you use systemd > automount units ?I used autofs-ldap on Devuan.> > which OS you are using ? > > which script you are using ? > /etc/auto.smb ?Everything in AD. Rowland