- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/passwd not updating !
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
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
09-10-2002 11:14 PM
09-10-2002 11:14 PM
/etc/passwd not updating !
#/usr/sbin/usermod -d /data/userA -l userA userB
#/usr/sam/lbin/usermod.sam -S /etc/passwd -p 2cDrpz8Xelew6 userA
The First command says
Login userA is not unique.
Second Command says
Login userA does not exist.
/etc/passwd has no entries for userA.
Why it is saying userA is not unique ?
Thanks
Aravind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 11:18 PM
09-10-2002 11:18 PM
Re: /etc/passwd not updating !
that may be why you have tyhese symptoms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 11:19 PM
09-10-2002 11:19 PM
Re: /etc/passwd not updating !
How do i know that i have NIS or NIS+ ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 11:30 PM
09-10-2002 11:30 PM
Re: /etc/passwd not updating !
So is it because i don't have NIS+ ?
If so, what is the work aroud ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 11:34 PM
09-10-2002 11:34 PM
Re: /etc/passwd not updating !
next question: does userA exit on the NIS server? If yes, userA has to be managed from there.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 11:35 PM
09-10-2002 11:35 PM
Re: /etc/passwd not updating !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 11:45 PM
09-10-2002 11:45 PM
Re: /etc/passwd not updating !
userA does not exists on the NIS server.
only userB is existing.
If I do
#/usr/sbin/usradd -m -g admingroup -d /data/userA -s /bin/false userA
#/usr/sam/lbin/usermod.sam -S /etc/passwd -p 2cDrPzxe1ew6 userA
the /etc/passwd is updated.
Why am i not able to do it with usernmod ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 12:24 AM
09-11-2002 12:24 AM
Re: /etc/passwd not updating !
If userA does not exist in /etc/passwd, that means there is no user on the system.
You have to creat userA with "useradd".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 12:40 AM
09-11-2002 12:40 AM
Re: /etc/passwd not updating !
It reflected in /etc/passwd.
Now if try usermod on the same user, it says Login 'userA' not unique.
I am wondering if it is a problem with usermod command option am specifying ?
OR
Any bug in the usermod execution or any patches ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 12:46 AM
09-11-2002 12:46 AM
Re: /etc/passwd not updating !
RTFM...it says:
"...The usermod command is aware of NIS user and group entries. Only local users and groups may be modified with this command. Attempts to modify an NIS user or group will result in an error. NIS users and groups must be administered from the NIS server..."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 01:16 AM
09-11-2002 01:16 AM
Re: /etc/passwd not updating !
on two systems, a 10.20 and a 11.0, I created userB and tested the two commands of your opening statement. All commands exited with "0", which resulted in /etc/passwd being updated and the home directory for userA to be created.
However, there is no NIS on any of the two machines. Is the home directory by any chance NFS mounted?
regards
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 09:23 PM
09-12-2002 09:23 PM
Re: /etc/passwd not updating !
But i have a query.
usermod is supposed to update the /etc/passwd file whenever it modifies the existing user.
This was not happening.
usermod was contacting the NIS database from the neighbouring machine.
we checked that in a neighbouring machine (nclass1), there is a directory of the test machine (nclass1)under
/var/yp/nclass2
We moved this directory to /var/yp/nclass.back
Now if i try to modify userA, i can do it without any problem.
Can you tell me why does it contacts a different machine to look up for the NIS database. ?
Thanks
Aravind