I've setup a linux box with winbind as a member in Win2003 AD and everything works fine. I want to share the Win2003 users home dirs with the linux box, i.e. when a user logs into the linux box, after he's authenticated through winbind, he should have his home dir from the Windows box, how can I do that?? Obviously I have to use CIFS to mount the dirs, but how do I maintain file and dirs ownerships and permissions?? -- Ze'ev Maor <zeevm@siglab.technion.ac.il>
Shannon Johnson
2004-May-20 01:10 UTC
[Samba] sharing users home dirs for Win2003 and linux
I'm in the process of doing something very similar. From what I understand, the client-side permissions don't matter... as long as the clients authenticate through winbind, it'll let the user access their files (as long as the permissions are correct on the server... IE, if user "test123" owns /home/test123, then the clients should let test123 access it too). Sorry if I didn't explain that well... it's getting late, and I've been working on this for about 14 hours straight now... ____________________________ Shannon Johnson Network Support Specialist / Systems Administrator Dept. of Mechanical and Nuclear Engineering 224 Reber Building University Park, PA 16802 Phone: (814) 865-8267 ____________________________> -----Original Message----- > From: Ze'ev Maor [mailto:zeevm@siglab.technion.ac.il] > Sent: Wednesday, May 19, 2004 7:34 PM > To: samba@lists.samba.org > Subject: [Samba] sharing users home dirs for Win2003 and linux > > I've setup a linux box with winbind as a member in Win2003 AD and > everything works fine. > I want to share the Win2003 users home dirs with the linux box, i.e. > when a user logs into the linux box, after he's authenticated through > winbind, he should have his home dir from the Windows box, how can Ido> that?? > Obviously I have to use CIFS to mount the dirs, but how do I maintain > file and dirs ownerships and permissions?? > -- Ze'ev Maor <zeevm@siglab.technion.ac.il> > > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/listinfo/samba
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | | I've setup a linux box with winbind as a member in Win2003 AD and | everything works fine. | I want to share the Win2003 users home dirs with the linux box, i.e. | when a user logs into the linux box, after he's authenticated through | winbind, he should have his home dir from the Windows box, how can I do | that?? Using a CIFS share (especially CIFS without unix extensions) for a linux home directory is most likely not going to be the best option. It would be easier to use one Linux server to serve the home directories via NFS. | Obviously I have to use CIFS to mount the dirs, but how do I maintain | file and dirs ownerships and permissions?? If you are keeping the homes on the win2k3 box (which you should not assume will get you a working linux desktop - console logins work fine but most desktop environments made assumptions about the filesystems of the users home), this is no issue. You just ensure (ie via pam_mount) that the CIFS/smb share is mounted with the uid/gid of the user logging in (easy enough with a single configuration line for pam_mount). If you are using a unix server via NFS, you use the ldap idmap backend, and point all the winbind clients at the same LDAP server (with at least one having write access to it). Then, SID->uid/gui mappings will be consistent. Regards, Buchan - -- Buchan Milne Senior Support Technician Obsidian Systems obsidian.co.za B.Eng RHCE (803004789010797) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - enigmail.mozdev.org iD8DBQFArNbkrJK6UGDSBKcRAnetAKCGijJNFYjk4MUQ0pI+Hs1rK+VqgQCfTLIy DdvT3Ri7waaSl3e6U7k8QLw=9Im2 -----END PGP SIGNATURE-----