Hi Toasters,
i have a question regarding usermapping from linux users (local /etc/passwd) to windows users. Let me explain my problem with a short example:
SystemA, alex (UID 600) SystemB, alex (UID 700)
--------- usermap.cfg
DOMAIN\user.test <= SystemA:alex DOMAIN\user.test <= SystemB:alex
---------
/etc/passwd on the filer
alex::600:600:user:/home/user:
---------
When i mount a qtree (NTFS-Sec-Style and "DOMAIN\user.test" has access) on SystemA everything works, but when i want to use it from SystemB it won't work due to the different UID. Does anyone know if there is a way to get this running, or are the only solutions to have the same UID's in local /etc/passwd on the hosts or to have a directory service like NIS for user-management??
Best Regards and thanks in advance
Jochen
Hi Jochen,
I'd strongly recommend to sync the UID for UNIX-users over all your UNIX systems and Filers. The problem you mention is only one thing where you may get into trouble.
Please keep in mind that NFS sends UIDs for accessing files on the NFS-server. This means, if you have User sandy with UID600 on SystemB then sandy may NFS-access Alex' files on SystemA because SystemB sends UID600 (= sandy in SystemB) to SystemA and SystemA will use UID600 (= alex on SystemA) to access files.
You can use NIS for this (it's the easiest way to use a single passwd file, it can be configured desastertolerant with use of master and slave servers, Filers can us it too, but it's unsecure). But you may also distribute a single passwd file to all your UNIX servers with e. g. rdist or cp.
Regards Walter
-----Ursprüngliche Nachricht----- Von: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com] Im Auftrag von Willeke, Jochen Gesendet: Mittwoch, 30. Januar 2008 12:40 An: toasters@mathworks.com Betreff: Usermapping from Linux User to WIndows
Hi Toasters,
i have a question regarding usermapping from linux users (local /etc/passwd) to windows users. Let me explain my problem with a short example:
SystemA, alex (UID 600) SystemB, alex (UID 700)
--------- usermap.cfg
DOMAIN\user.test <= SystemA:alex DOMAIN\user.test <= SystemB:alex
---------
/etc/passwd on the filer
alex::600:600:user:/home/user:
---------
When i mount a qtree (NTFS-Sec-Style and "DOMAIN\user.test" has access) on SystemA everything works, but when i want to use it from SystemB it won't work due to the different UID. Does anyone know if there is a way to get this running, or are the only solutions to have the same UID's in local /etc/passwd on the hosts or to have a directory service like NIS for user-management??
Best Regards and thanks in advance
Jochen
The only thing NFS cares about is the UID. If these are separate UIDs on the individual local linux systems, both must be defined in the /etc/passwd (or NIS) that the filer is using.
(I'm pretty sure they have to have separate names as well)
When the user connects via NFS and presents the UID, then the filer will match that to the defined user in the /etc/passwd (or NIS) and then perform mapping if connecting to an NTFS volume/qtree.
-----Original Message----- From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com] On Behalf Of Willeke, Jochen Sent: Wednesday, January 30, 2008 6:40 AM To: toasters@mathworks.com Subject: Usermapping from Linux User to WIndows
Hi Toasters,
i have a question regarding usermapping from linux users (local /etc/passwd) to windows users. Let me explain my problem with a short example:
SystemA, alex (UID 600) SystemB, alex (UID 700)
--------- usermap.cfg
DOMAIN\user.test <= SystemA:alex DOMAIN\user.test <= SystemB:alex
---------
/etc/passwd on the filer
alex::600:600:user:/home/user:
---------
When i mount a qtree (NTFS-Sec-Style and "DOMAIN\user.test" has access) on SystemA everything works, but when i want to use it from SystemB it won't work due to the different UID. Does anyone know if there is a way to get this running, or are the only solutions to have the same UID's in local /etc/passwd on the hosts or to have a directory service like NIS for user-management??
Best Regards and thanks in advance
Jochen