- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I change a user (login) name?
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
тАО05-27-2002 12:33 AM
тАО05-27-2002 12:33 AM
Machine A has user 'fred' with uid 101.
Account 'fred' is not used; /home/fred only contains environment files (.profile etc.).
Machine B has user 'bill' with uid 101. Machine B has an NFS mount onto machine A and 'bill' has written lots of files onto machine A. As you would expect the files look as though they are owned by 'fred' on machine A.
(Incidentally, 'bill' is an application admin account and not a real user account).
What I want to do (I think) is either rename account 'fred' on machine A to 'bill' (Can this just be as simple as editing passwd & group and moving /home/fred to /home/bill?), OR delete account 'fred' on machine A and create account bill with UID 101. (So that all of the (101) files on machine A end up being owned by 'bill'.
I'm 99.9% sure that the application won't object to the name change (famous last words!).
Does anyone see any problems with either of these approaches?
Thanks
Gary Cooper
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2002 12:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2002 01:09 AM
тАО05-27-2002 01:09 AM
Re: How do I change a user (login) name?
And also dont forget to check if your box is trusted, that bill exists in /tcb/files/auth/b, if not - move /tcb/files/auth/f/fred to /tcb/files/auth/b/bill
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2002 02:16 AM
тАО05-27-2002 02:16 AM
Re: How do I change a user (login) name?
I used sam & it mostly worked OK (it left the files in the original users home directory and didn't create a new user directory (which I had to do by hand), but it seems OK now.
Regards,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2002 02:22 AM
тАО05-27-2002 02:22 AM
Re: How do I change a user (login) name?
if you use SAM, another trick would do it for you:
first you delete user fred with SAM, use the option: --> leave all data where they are
then you find a option to give the whole home directory to a new username. ( If you delete a user, but not his data, the UID of the deleted user is shown as owner of data. If you create a user with *this* UID, he will automatically own the data)
Allways stay on the bright side of life!
Peter