- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problems with vipw
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
тАО12-08-2006 09:21 AM
тАО12-08-2006 09:21 AM
when i try to modify my /etc/passwd file using vipw i keep getting following message:
vipw: you mangled the temp file, /etc/passwd unchanged
when i try to modify root's start-up program (/data/prog/rootmenu) using sam i receive this:
Failed to modify user "root".
An invalid argument was supplied to an option in the command "usr/sam/lbin/usermod.sam".
hope someone of you experts out there can help me solve this problems. it's hp-ux 10.20 running on an hp9000 model 817s.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2006 09:26 AM
тАО12-08-2006 09:26 AM
Re: problems with vipw
Unless you want to create an un-startable system, don't modify the 'root' account's initial program in '/etc/passwd'. You *must* use '/sbin/sh'. This is the statically linked Posix shell available when nothing but the root filesystem is mounted.
The 'vipw' utility is being helpful and is alerting you to that fact that you are attempting to create chaos.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2006 10:09 AM
тАО12-08-2006 10:09 AM
Re: problems with vipw
okay, i agree it's not clever to abuse root account for this. i've tried to select another start-up file for another (low-priority) user, but it won't work. i just want to achive following: when a user logs on s/he gets a menu to see instead of a shell. i don't know what's chaos with this? do you have another (more elegant) idea how to realize this?
kind regards
hpux-fan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2006 10:18 AM
тАО12-08-2006 10:18 AM
SolutionOK, use a non-root account and in lieu of the shell program in '/etc/passwd' [the last field], substitute the absolute path and name of your menu script. You can use 'vipw' to make this change. When you exit your menu, your user will be logged-off.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2006 11:41 AM
тАО12-08-2006 11:41 AM
Re: problems with vipw
lckpwdf: Permission denied
vipw: Cannot obtain lock for /etc/.pwd.lock
finally, Alex' advice helped me through this.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=84458
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2006 02:24 PM
тАО12-08-2006 02:24 PM
Re: problems with vipw
Modifying the root shell using vipw is causing problems.
Try the following:
1. /sbin/sh
Result: Can vi old /etc/passwd file and quit out.
2. /sbin/ksh
Result: Cannot vi new /etc/passwd file and quit out
3. vi /etc/passwd and change the root shell to /sbin/sh
4. save file
5. vipw and quit out
Result: This was successful.
For further information, see the vipw(1m) command man page
Best Regards,
Prashanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2006 12:36 PM
тАО12-09-2006 12:36 PM