- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Comments in /etc/passwd file
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
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
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-17-2007 09:28 PM
тАО09-17-2007 09:28 PM
Comments in /etc/passwd file
Does anyone know of the possibility of being able to put comment lines into the password and shadow files?
E.g.
progress:x:503:500::/home/progress:/bin/ksh
mholds:x:504:500::/home/mholds:/bin/ksh
# All users from here created after 18092007
Regards
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 09:29 PM
тАО09-17-2007 09:29 PM
Re: Comments in /etc/passwd file
Shadow file? No way, you could compromise security.
Field 5 of /etc/passwd which we normally store the user name in? Put whatever you want, knock yourself out.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 09:34 PM
тАО09-17-2007 09:34 PM
Re: Comments in /etc/passwd file
My question was, can you add a general comment line into the passwd file as the example in my original message states.
Regards
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2007 09:49 PM
тАО09-17-2007 09:49 PM
Re: Comments in /etc/passwd file
HeL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2007 02:31 AM
тАО09-18-2007 02:31 AM
Re: Comments in /etc/passwd file
One technique you could use would be to insert a dummy user with an invald password hash and use the gecos field of this user as a comment but why insert a dummy user and have to explain the justification for it?
It makes much more sense to maintain a parallel database that keeps up with when a user was created and when the account was disabled/deleted. That proves to be much more useful in an audit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2007 09:44 PM
тАО09-19-2007 09:44 PM
Re: Comments in /etc/passwd file
you can insert, without problem, the standard comment "#".
For example:
# inserted 2007-09-20 by Ernesto
ernesto:ZZwoAzitqcXWw:0001:200:Ernesto Cappello (Ernesto):/home/ernesto:/bin/csh
BR.
Ernesto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2007 10:17 PM
тАО09-19-2007 10:17 PM
Re: Comments in /etc/passwd file
Thanks for your feedback. There seems to be different views on this subject and judging from some of the responses I would be weary about putting anything else into the passwd file if there could be a risk to security.
I have taken the advice of A.Clay Stephenson and added a descriptive comment into one of the users 'comment' fields. Luckily we do not use the finger command so this comment will never be picked up by normal users.
Thanks to everyone for commenting on this subject.
Regards
Matt