- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- security hole on /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
06-09-2004 02:37 AM
06-09-2004 02:37 AM
security hole on /etc/passwd
So, I would really suggest HP to change it's permission to maybe "440".
changing the system to trusted system maybe a solution, but in many cases, users may not want to do that.
any opinion on that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 02:39 AM
06-09-2004 02:39 AM
Re: security hole on /etc/passwd
Yes, install shadow passwd.
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ShadowPassword
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 02:46 AM
06-09-2004 02:46 AM
Re: security hole on /etc/passwd
Install some kind a shadow password (eg. change system to trusted) - there the passwords are not kept in /etc/passwd
-Tomek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 02:48 AM
06-09-2004 02:48 AM
Re: security hole on /etc/passwd
passwd file MUST be readable by all... that is an inherent weakness of UNIX. but as stated can be fixed with shadow file
OR as my company does we use 1-time password convention known as SecurID cards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 02:49 AM
06-09-2004 02:49 AM
Re: security hole on /etc/passwd
As I said already, under some circumstances, user don't want to change it to trusted systems.
What specifica problem it would cause if we change the permission to "440"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 02:51 AM
06-09-2004 02:51 AM
Re: security hole on /etc/passwd
I test it, and I am able to log in under "440".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 02:57 AM
06-09-2004 02:57 AM
Re: security hole on /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 02:58 AM
06-09-2004 02:58 AM
Re: security hole on /etc/passwd
Now that you've changed permissions on your password file to 440, do an 'ls -l' and see if it lists your login name as owning files, or just the UID.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:11 AM
06-09-2004 03:11 AM
Re: security hole on /etc/passwd
If I change it to 440, and log in as an ordenary user, I can see the file /etc/passwd is still owned by "root:sys".
Do I miss understand your question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:14 AM
06-09-2004 03:14 AM
Re: security hole on /etc/passwd
# chmod 440 /etc/passwd
# su - normal_user
# ls -la /home/normal_user
and look at the group-id of the files.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:21 AM
06-09-2004 03:21 AM
Re: security hole on /etc/passwd
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:22 AM
06-09-2004 03:22 AM
Re: security hole on /etc/passwd
Here is what happens when a regular user uses 'ls -la' on their home directory with /etc/passwd permissions at 440:
[ wallekp@ftp:/home/wallekp ]
$ ls -la
total 144
drwx------ 4 102 users 8192 Sep 29 2003 .
drwxr-xr-x 12 0 root 8192 Apr 29 09:39 ..
-r--r--r-- 1 102 users 832 Nov 14 2000 .cshrc
-r--r--r-- 1 102 users 347 Nov 14 2000 .exrc
-r--r--r-- 1 102 users 334 Nov 14 2000 .login
-rw------- 1 102 users 455 May 1 2003 .profile
-rw-r--r-- 1 102 users 347 May 27 2003 .pw_profile
-rw------- 1 102 users 2192 Jun 9 10:17 .sh_history
drwx------ 2 102 users 8192 May 8 2003 .ssh
drwx------ 5 0 root 96 Sep 29 2003 .sw
You are correct in that 444 permissions is not necessarily a good idea, but neither is changing permissions to 440.
The ideal is to convert to either a trusted system, or install the shadow password bundle and use /etc/shadow for the passwords.
As far as why you would not want to convert to trusted -- There are still some application vendors that say that their application will not work with a trusted system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:23 AM
06-09-2004 03:23 AM
Re: security hole on /etc/passwd
As mentioned previously, the best way to secure the password file is to convert to a trusted system, or at least to shadow passwords. I think you can convert to shadow passwords without converting completely to a trusted system.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:23 AM
06-09-2004 03:23 AM
Re: security hole on /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:24 AM
06-09-2004 03:24 AM
Re: security hole on /etc/passwd
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ShadowPassword
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:33 AM
06-09-2004 03:33 AM
Re: security hole on /etc/passwd
That just makes it a chore to get to them.
Changing the permissions on the /etc/passwd file or the shadow file or the trusted password files without direction from HP is simply not a good idea.
I haven't seen a security bulliten on it and won't take action without HP's blessing. Its just too big to touch.
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
06-09-2004 03:54 AM
06-09-2004 03:54 AM
Re: security hole on /etc/passwd
I test it on both 11.0 and 11.11 system, and did find the userid not being able to be transfered to the acutal name, although gid is okay.
however, on the 11.11 system, everything seems okay, userid and groupid are all alright even though I changed passwd to 440.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 03:57 AM
06-09-2004 03:57 AM
Re: security hole on /etc/passwd
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 04:02 AM
06-09-2004 04:02 AM
Re: security hole on /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 04:08 AM
06-09-2004 04:08 AM
Re: security hole on /etc/passwd
JP