- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- change user ID in the passwd file in HPUX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 01:48 AM
тАО11-02-2009 01:48 AM
change user ID in the passwd file in HPUX
I changed myself as a root user by assigning myself with user ID 0. I would like to change myself back to a normal user. What user ID should I change it to and will it create any problems with the root user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 02:42 AM
тАО11-02-2009 02:42 AM
Re: change user ID in the passwd file in HPUX
There shouldn't be any problems with root, provided you don't try a mass chown of all of the files that belong to root.
You'll need to assign a group and home directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 04:04 AM
тАО11-02-2009 04:04 AM
Re: change user ID in the passwd file in HPUX
so you need to edit /etc/passwd file
before that backup the /etc/passwd file
# cp -p /etc/passwd /etc/passwd.org
# vi /etc/passwd
Change your
>>should I change it to and will it create any problems with the root user.<<
It will not creat problem aslong as you did only changed the ID, you're fine
HTH,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 04:26 AM
тАО11-02-2009 04:26 AM
Re: change user ID in the passwd file in HPUX
"Login
I restarted the HPUX server and tried to change the login mode but got the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 04:33 AM
тАО11-02-2009 04:33 AM
Re: change user ID in the passwd file in HPUX
I assume, you need to login root user not sudo/su if you stand on your userid and than su - root "you will get this error" or if you have any pervious login session open.
ps -ef |grep -i
kill that sessions which you user id holding.
or
better you vi /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 04:50 AM
тАО11-02-2009 04:50 AM
Re: change user ID in the passwd file in HPUX
That's probably because the username is the same as the root user and the username appears to the OS as in use.
You have to use "vipw" and edit the password file. Change the UID back to the original one (or a new UID) and the same with the primary group ID, GID. Ensure that the home directory is adjusted to the original home directory and user and group ownership of the home directory are set to those of the new UID/GID.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 05:13 AM
тАО11-02-2009 05:13 AM
Re: change user ID in the passwd file in HPUX
ps -ef | grep -i
result
root 20265 5473 0 13:08:51 pts/tB 0:00 grep -i
Have a third party program called logmon. From here I can see many root processes still assigned to my login.
Should I restart the HPUX to get reslove this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 05:31 AM
тАО11-02-2009 05:31 AM
Re: change user ID in the passwd file in HPUX
Why do you care? Either they will eventually finish or you can kill them.
>Should I restart HP-UX to get resolve this?
Is it worth it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 08:18 AM
тАО11-02-2009 08:18 AM
Re: change user ID in the passwd file in HPUX
Well done,
so I d'not have point why do you still do
ps -ef |grep -i
No Need, taking reboot its useless.
You assign points close thread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 11:43 AM
тАО11-02-2009 11:43 AM
Re: change user ID in the passwd file in HPUX
>>Should I restart the HPUX to get reslove this?
No need to reboot the box when u logout form your system it will not there.
Suarj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 11:56 PM
тАО11-02-2009 11:56 PM
Re: change user ID in the passwd file in HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2009 03:37 AM
тАО11-04-2009 03:37 AM
Re: change user ID in the passwd file in HPUX
http://forums11.itrc.hp.com/service/forums/helptips.do?#33