On 10/11/2017 12:09 PM, Rowland Penny via samba wrote:> I did all of this, I have read everything I could find on the internet > and I just couldn't make it work. > > I am now a leading expert on what doesn't work ;-) > > Rowlandok, that is an unusual situation... you having a problem, and things working here :-) So perhaps we're doing different things: we mount PER USER under the users home directory. We don't have ONE global mount that is shared between all logged-on users, but each has his/her own shares under /home/username/share1 -> /home/username/share4 Pam_mount mounts it on logon, both via ssh and xrdp. The mounted shares also automatically appear as shortcuts on the desktop, just like a mounted usb stick does. Very convenient for the users. So perhaps you are trying to mount 'global shares', that everybody should be able to access, logged on as themselves? MJ
On Wed, 11 Oct 2017 12:21:55 +0200 mj via samba <samba at lists.samba.org> wrote:> > > On 10/11/2017 12:09 PM, Rowland Penny via samba wrote: > > I did all of this, I have read everything I could find on the > > internet and I just couldn't make it work. > > > > I am now a leading expert on what doesn't work ;-) > > > > Rowland > > ok, that is an unusual situation... you having a problem, and things > working here :-) > > So perhaps we're doing different things: > > we mount PER USER under the users home directory. We don't have ONE > global mount that is shared between all logged-on users, but each has > his/her own shares under /home/username/share1 > -> /home/username/share4 > > Pam_mount mounts it on logon, both via ssh and xrdp. > > The mounted shares also automatically appear as shortcuts on the > desktop, just like a mounted usb stick does. Very convenient for the > users. > > So perhaps you are trying to mount 'global shares', that everybody > should be able to access, logged on as themselves? > > MJ >I want to mount a users folder on one machine into the users folder on another machine. i.e. mount \\dc1\users\rowland on client /home/rowland/mnt Sods law has kicked in, I have now got a mount to work with pam_mount, but there is a major problem, anything created in the share doesn't belong to rowland, it is 3000000:domain users. This is not acceptable, the mounted share belongs to rowland, but nothing inside it does. I think I will continue to try and get pam_script to do what I want. Rowland
On 10/11/2017 12:43 PM, Rowland Penny via samba wrote:> I want to mount a users folder on one machine into the users folder on > another machine. > i.e. mount \\dc1\users\rowland on client /home/rowland/mntThat sounds similar to our use case.> Sods law has kicked in, I have now got a mount to work with pam_mount, > but there is a major problem, anything created in the share doesn't > belong to rowland, it is 3000000:domain users. This is not acceptable, > the mounted share belongs to rowland, but nothing inside it does. I > think I will continue to try and get pam_script to do what I want.Strange. So what does a mount look like? Here:> root at dmmember:~# mount | grep username > //fileserver.company.com/username on /home/username/username type cifs (rw,relatime,sec=ntlmi,unc=\\filehost.company.com\username,username=username,domain=WRKGRP,uid=49611,forceuid,gid=513,forcegid,addr=192.168.89.2,unix,posixpaths,serverino,acl,rsize=61440,wsize=65536,actimeo=1) > root at dmmember:~#MJ
I think MJ is using samba with AD backend and Rowland RID. Rowland, try AD backend if your using rid atm. Gr. Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens mj via samba > Verzonden: woensdag 11 oktober 2017 13:25 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Using GPO to mount shares on Linux > > > > On 10/11/2017 12:43 PM, Rowland Penny via samba wrote: > > I want to mount a users folder on one machine into the > users folder on > > another machine. > > i.e. mount \\dc1\users\rowland on client /home/rowland/mnt > That sounds similar to our use case. > > > Sods law has kicked in, I have now got a mount to work with > pam_mount, > > but there is a major problem, anything created in the share doesn't > > belong to rowland, it is 3000000:domain users. This is not > acceptable, > > the mounted share belongs to rowland, but nothing inside it does. I > > think I will continue to try and get pam_script to do what I want. > Strange. > > So what does a mount look like? > > Here: > > > root at dmmember:~# mount | grep username > > //fileserver.company.com/username on > /home/username/username type cifs > > > (rw,relatime,sec=ntlmi,unc=\\filehost.company.com\username,username=us > > > ername,domain=WRKGRP,uid=49611,forceuid,gid=513,forcegid,addr=192.168. > > > 89.2,unix,posixpaths,serverino,acl,rsize=61440,wsize=65536,actimeo=1) > > root at dmmember:~# > > MJ > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >