- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing UID's
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
тАО07-13-2000 02:03 PM
тАО07-13-2000 02:03 PM
Changing UID's
Any ideas? We're using both 10.20 and 11.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2000 02:25 PM
тАО07-13-2000 02:25 PM
Re: Changing UID's
According to the manpage for usermod(1m), this command only changes the passwd entry, but does not search the file systems for files owned by the user in question.
When changing a user's uid, he won't be able to access his files anymore.
When performing the command 'ls -l', orphaned files and directories show with the uid and gid instead of username and groupname for unknown uids and gids.
When changing uids for non-standard unix users only, one might restrict the search to the user's home directories.
Hope this helps,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2000 02:35 PM
тАО07-13-2000 02:35 PM
Re: Changing UID's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2000 02:47 PM
тАО07-13-2000 02:47 PM
Re: Changing UID's
So, when a user's uid is modified, the getpwuid(3) call fails, which results the calling programs (ls, find, ...) to print the uid (numeric) instead of the username.
Rik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2000 02:50 PM
тАО07-13-2000 02:50 PM
Re: Changing UID's
So, when a user's uid is modified, the getpwuid(3) call fails, which results the calling programs (ls, find, ...) to print the uid (numeric) instead of the username.
Rik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2000 02:50 PM
тАО07-13-2000 02:50 PM
Re: Changing UID's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2000 02:57 PM
тАО07-13-2000 02:57 PM
Re: Changing UID's
Did the usermod command take a long time to execute? If it actually does scan all mounted file systems, it should take considerable time to execute.
Another possibility is that usermod automatically changes all files under the user's home directory. This behaviour is not in the manpage for the command.
Finally, I can assure you that the inode is the place where the owner of a file stored, and the association is done using getpwuid(3).
Rik