Highlighted
tyyyoung13
1 Nickel

VNX File question: determine a file/dir's owner in AD based on its UID?

Not sure if this is an intelligent question, so let's get that out of the way.  But what I'm trying to do is come up with a command that displays information about the owner of a given file, using Active Directory information, based on that file's UID information as displayed on the control station.

For example.  Given the 'ls -al' output below

1268967 27768 -rw-r--r--   1 39436    32840    28409228 Jun  1  2007 ./PROD/LTBNA/content_storage_01/00013e2c/80/23/b3/3b.pdf

1268978 27696 -rw-r--r--   1 39436    32840    28328868 Jun  1  2007 ./PROD/LTBNA/content_storage_01/00013e2c/80/23/b3/3c.pdf

1272373 24360 -rw-r--r--   1 39436    32840    24918019 Jun  1  2007 ./PROD/LTBNA/content_storage_01/00013e2c/80/23/b3/5a.pdf

... I'd love to come up with a command that allows me to query against UID 39436 and get the AD domain and user that owns those files, i.e. "SOMEDOMAIN\John Doe"  or something similar.

Is that doable, using CLI?

Thx

0 Kudos
3 Replies
dynamox
6 Gallium

Re: VNX File question: determine a file/dir's owner in AD based on its UID?

server_usermapper server_2 -Export -user user.export

then cat/grep user.export

0 Kudos
tyyyoung13
1 Nickel

Re: VNX File question:  determine a file/dir's owner in AD based on its UID?

yep, perfect. Thank you dynamox! 

0 Kudos
Rainer_EMC
5 Rhenium

Re: VNX File question: determine a file/dir's owner in AD based on its UID?

Only if usermapper is used

If you dump secmap via server_secmap you get all other mappings as well

0 Kudos