Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing ownership of user with . in their name 1

Status
Not open for further replies.

rilango

Instructor
Oct 17, 2001
1
SG
How do you change the ownership status of a file where user has a name such as "name.org"

Thanks for the help.

Regards
linila
 
Hi,

One obvious way would be to get the (numeric) uid of the user from 'cat /etc/passwd' and use that in the chown command - e.g.

chown 501 somefile

(where 501 is the uid to change ownership to)

Regards


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top