- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: changing UID of user sshd tftp and hpsmh
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
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-13-2010 08:40 PM
тАО11-13-2010 08:40 PM
we upgrade the server to OS 11.23 and noticed the UID which was assign to other users now takin by "sshd" "tftp" and "hpsmh" users which are been created by OS. Can I change those UID?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 01:39 AM
тАО11-14-2010 01:39 AM
Re: changing UID of user sshd tftp and hpsmh
anyways you can change the ids, just shutdown the subjected services and change the ID and restart the service.
check passwd again for any duplicate UID.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 03:13 AM
тАО11-14-2010 03:13 AM
Re: changing UID of user sshd tftp and hpsmh
example below
drwxr-x--- 2 hpsmh hpsmh 96 Nov 11 14:08 logs
drwxr-xr-x 3 hpsmh hpsmh 96 Nov 11 14:08 session
dr-xr-x--- 2 root hpsmh 96 Nov 11 14:08 sslshare
drwxr-x--- 2 hpsmh hpsmh 96 Nov 11 13:23 tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 03:46 AM
тАО11-14-2010 03:46 AM
Re: changing UID of user sshd tftp and hpsmh
That's why you change your existing users and not the reserved system UIDs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 03:49 AM
тАО11-14-2010 03:49 AM
Re: changing UID of user sshd tftp and hpsmh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 03:58 AM
тАО11-14-2010 03:58 AM
Re: changing UID of user sshd tftp and hpsmh
You may have to schedule some time to change them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 05:14 AM
тАО11-14-2010 05:14 AM
SolutionUnfortunately, HP-UX has long considered "user" UIDs to begin at 100 leading to the annoying conditions you describe.
You can change the UID of an account by editing '/etc/passwd' (using 'vipw' to be safe) and then changing the ownership of the directories and files that belong to the *old* UID to the new UID. You might want to first create a file of the old UID like this (by example):
# find / -user 100 -print > /tmp/olduid_100
Then, for example, if you were changing UID 100 to UID 200, edit '/etc/passwd' to change UID 100 to UID 200 and do:
while read NAME
do
chown 200 ${NAME}
done < /tmp/olduid_100
As noted, you may need to schedule some downtime if there are active processes (daemons, etc) associated with the changing UID.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 11:39 AM - edited тАО10-01-2011 07:36 PM
тАО11-14-2010 11:39 AM - edited тАО10-01-2011 07:36 PM
Re: changing UID of user sshd tftp and hpsmh
>JRF: while read NAME; do chown 200 ${NAME}
If you want performance, you should use xargs:
xargs -tn80 chown 200 ${NAME} < /tmp/olduid_100
- Tags:
- xargs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 06:39 PM
тАО11-14-2010 06:39 PM
Re: changing UID of user sshd tftp and hpsmh
#usermod -u new_id user
man usermod
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 06:39 PM
тАО11-14-2010 06:39 PM
Re: changing UID of user sshd tftp and hpsmh
BR,
Kapil+