- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- # An Entry in /etc/passwd
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
01-06-2005 02:59 PM
01-06-2005 02:59 PM
We are running HP-UX 11i here.
Just wondering, if i issue the command vipw and put a '#' in front of any user record, what would happen to the user id? What is the status of the user id now? And what will happen to those files owned by that user?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:04 PM
01-06-2005 03:04 PM
SolutionThere are a variety of ways to disable a user's account. One is to change the password field to an asterisk (*) character. Another is to set the shell field to something else (such as /usr/bin/false or /usr/bin/true). The methods mentioned here do not touch any user files, only prevent him from executing a UNIX login.
(SAM is an easy interface to account management if you're interested.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:06 PM
01-06-2005 03:06 PM
Re: # An Entry in /etc/passwd
The user wont be able to login. # makes that line as good as not present.
Nothing will happen to the file owned by the used. It wont get deleted.
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:09 PM
01-06-2005 03:09 PM
Re: # An Entry in /etc/passwd
continue to be at the same location as before.
Root will have unlimited access to these files,
ofcourse; and other users will also have access to
these files depending on the file/directory permissions.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:11 PM
01-06-2005 03:11 PM
Re: # An Entry in /etc/passwd
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:11 PM
01-06-2005 03:11 PM
Re: # An Entry in /etc/passwd
For trusted systems, use modprpw or SAM to lock the account. Always use pwck after *any* manual editing using vi or vipw. And unintended line break or incorrect field count will render the rest of the passwd file unuseable.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:21 PM
01-06-2005 03:21 PM
Re: # An Entry in /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:21 PM
01-06-2005 03:21 PM
Re: # An Entry in /etc/passwd
We cannot create a login ID starting with #. As well as if you put a # infront of a login ID that user cannot login further. I re-confirmed it just now in my system
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:33 PM
01-06-2005 03:33 PM
Re: # An Entry in /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 04:08 PM
01-06-2005 04:08 PM
Re: # An Entry in /etc/passwd
(useradd -u option)
tienna