Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1059

April 25th, 2011 15:00

server_usermapper: What goes in is not what comes out ;-}

I created a "unix" style passwd and group file to manually setup my server and client UID/GIDs.

I ran server_usermapper to import the passwd and group file.

Then I exported the same to verify that I did this correctly but I get a 0 length file from the export.

Any ideas why??

Here are the source files, and the commands I ran...

Sample files:

[nasadmin@Celerra-v6 ~]$ cat passwdTest

testuser:x:228:200:real:/xyxxy/testuser:/bin/bash

testuserb1:x:229:200:beta1:/xyzzy/testuserb1:/bin/bash

testuserb2:x:230:200:beta2:/xyzzy/testuserb2:/bin/bash

root:x:0:0:root:/root:/bin/bash

[nasadmin@Celerra-v6 ~]$ cat groupTest

root:x:0:root

testuser:x:200:

Import files:

[nasadmin@Celerra-v6 ~]$ server_usermapper server_2 -Import -user ./passwdTest

server_2 : done

[nasadmin@Celerra-v6 ~]$ server_usermapper server_2 -Import -group ./groupTest

server_2 : done

Export each to new files:

[nasadmin@Celerra-v6 ~]$ server_usermapper server_2 -Export -user ./passwdTest.exported

server_2 : done

[nasadmin@Celerra-v6 ~]$ server_usermapper server_2 -Export -group ./groupTest.exported

server_2 : done

Show the export results in empty files:

[nasadmin@Celerra-v6 ~]$ ls -l passwdTest passwdTest.exported groupTest groupTest.exported

-rw-rw-r-- 1 nasadmin nasadmin 30 Apr 25 18:42 groupTest

-rw-rw-r-- 1 nasadmin nasadmin 0 Apr 25 18:45 groupTest.exported

-rw-rw-r-- 1 nasadmin nasadmin 192 Apr 25 18:44 passwdTest

-rw-rw-r-- 1 nasadmin nasadmin 0 Apr 25 18:45 passwdTest.exported

4 Operator

 • 

8.6K Posts

April 28th, 2011 16:00

I think you have a misunderstanding what usermapper is used for.

Usermappers isn’t really the process for mapping users – the name is kind of a misnowner

Usermapper is the just the process for “assigning” UIDs for a Windows only environment – i.e. if you don’t have a defined mapping then usermapper will you the next free UID from a configured range

In your case you want to do an explicit mapping – that isn’t done through usermapper and wont go into the usermapper database

Its done through one of the explicit mapping methods, like files (group/passwd), ntxmap, NIS, LDAP, IdMU, …

If all your Windows users have a corresponding Unix user then the recommendation is to disable usermapper to avoid confusion

Any mapping though will get into the secmap cache (after its used) so you can check it there.

Make sure to understand that secmap is per data mover / VDM and that it’s a permanent cache – once an entry is made there its never updated unless you explicitly delete it.

I would suggest to review the CIFS multi protocol and user mapping manuals and talk to your local EMC technical expert

Using multi-protocol IMHO requires some design decisions that should be done right before the box goes into production

Rainer

No Events found!

Top