- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to change the UID / GID of user - nobody
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
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
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-14-2013 01:52 AM - last edited on 11-14-2013 11:36 PM by Maiko-I
11-14-2013 01:52 AM - last edited on 11-14-2013 11:36 PM by Maiko-I
Need to change the UID / GID of user - nobody
hi Gurus,
I need to change the UID / GID of system user -- nobody
while changing it, system shows error like below. Need your expert advice.
Error -- Cannot modify user 'nobody': Home directory '/' is shared
Tried to change the home directory but that too is having some issues.
XXXXXX # usermod -d /home/nobody nobody
'/home/nobody' is not a valid directory
XXXXXX# ll -d /home/nobody
drwxr-xr-x 2 root sys 96 Nov 14 10:06 /home/nobody
XXXXXX# chown nobody:nogroup /home/nobody
/home/nobody: Invalid argument
Thanks & Regards,
Chirag Parikh
P.S. This thread has been moved from HP-UX > general to HP-UX > sysadmin. - Hp Forum moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2013 09:40 AM
11-14-2013 09:40 AM
Re: Need to change the UID / GID of user - nobody
>>I need to change the UID / GID of system user -- nobody
Why?
Is the UID and GID of the nobody user still -2? If so, it should NOT be changed. That is correct.
If it is not '-2' you can edit the /etc/passwd file with the 'vipw' command and manually change the UID and GID.
Also, the home directory for the 'nobody' user is, by default, the '/' directory and shouldn't be changed.
The nobody entries from /etc/passwd from an 11.23 and an 11.31 system:
11.23:
# grep nobody /etc/passwd
nobody:*:-2:-2::/:
11.31:
# grep nobody /etc/passwd
nobody:*:-2:-2::/:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2013 08:28 AM
12-24-2013 08:28 AM
Re: Need to change the UID / GID of user - nobody
As far as i am aware, nobody user is only needed if you have any NFS related task on server otherwise there is no harm in changing the values related to this user. I know that the -2 UID is the OS standard but i have application request to change the home directory and UID (if possible)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2013 01:17 PM
12-24-2013 01:17 PM
Re: Need to change the UID / GID of user - nobody
>I have application request to change the home directory and UID (if possible)
You can change the home directory but changing the UID is not recommended.