Operating System - HP-UX
1748275 Members
3700 Online
108761 Solutions
New Discussion

Re: HP-UX Account Information

 
Utkarsh88
Occasional Contributor

HP UX Account Information

Hi

 

Where i can find the account information (like username,password,home directory etc) of a unix login in th file system?

 

Thanks

Utkarsh

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: HP-UX Account Information

In /etc/passwd.  See passwd(4).

Note: The password is hashed and so you can't see it in cleartext.

Utkarsh88
Occasional Contributor

Re: HP-UX Account Information

Thanks Dennis

 

Is it possible to change the home directory of the user through this file?

 

Dennis Handly
Acclaimed Contributor

Re: HP-UX Account Information

>Is it possible to change the home directory of the user through this file?

 

Sure.  You can as root use vipw(1m) and edit it.

Or you can use the usermod(1M) command.