- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- usermod command changed permissions - Disaster
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
Forums
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
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
10-13-2004 04:16 AM
10-13-2004 04:16 AM
I did this command.
usermod -u 209 www (to change the UID of the user www) and it changed every permission on the machine under / recursively.
How do i revert this? How come it changed everything under root directory? Anyone help please.
Thanks
Brian.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 04:22 AM
10-13-2004 04:22 AM
Re: usermod command changed permissions - Disaster
Do you have the latest backup??
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 04:28 AM
10-13-2004 04:28 AM
Re: usermod command changed permissions - Disaster
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 04:33 AM
10-13-2004 04:33 AM
Re: usermod command changed permissions - Disaster
# swverify \*
Look at the /var/adm/sw/swagent.log for details. It will include permissions, owner and group problems in great detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 05:21 AM
10-13-2004 05:21 AM
Re: usermod command changed permissions - Disaster
Frankly I'm having a hard time believing that the usermod command did this. The *only* way to affect files with the usermod command is with the -d (home dir) & -m (move home dir) parameters.
It's more likely that a chown command followed after the usermod & it's the culprit.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 05:26 AM
10-13-2004 05:26 AM
Re: usermod command changed permissions - Disaster
Beleive me!!!!! I tried it on other B2000 workstation and DISASTER AGAIN. It changes all ownerships to www:other. Just usermod -u 209 www. That is all. Any ideas??
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 05:46 AM
10-13-2004 05:46 AM
Re: usermod command changed permissions - Disaster
I believe you.
You haven't stated the OS, but if 11.0 look at PHCO_29380 - useradd/usermod cumulative:
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_29380&context=hpux:800:11:00
It definitively spells out that symptom.
Curiously I don't find that in the 11.11 patch.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 05:49 AM
10-13-2004 05:49 AM
Re: usermod command changed permissions - Disaster
Yes it is 11.0
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 09:48 AM
10-13-2004 09:48 AM
SolutionPatch Name: PHCO_28505
Patch Description: s700_800 11.00 user/group(add/mod/del)(1M) cumulative patch
And as Jeff correctly indicated, it is now supersede PHCO_29380