- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change location password
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
04-08-2002 02:08 AM
04-08-2002 02:08 AM
Change location password
can i to change location of the passord to another file unless start trusted system?
Thanks for your interest.
Gabriele
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 02:13 AM
04-08-2002 02:13 AM
Re: Change location password
you cold do this
cp passwd passwd.old
mv passwd /tmp/passwd
ln -s /tmp/passwd passwd
the password now resides in the tmp directory but is still seen by programs to be in the /etc directory
john.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 02:18 AM
04-08-2002 02:18 AM
Re: Change location password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 02:23 AM
04-08-2002 02:23 AM
Re: Change location password
moving the encrypted password from the password file is exactly what making the system trusted does with it.
the password file is readable so people copy them to other serves and run crack to gain password.
trusted systems have password in file which can only be read by root - stops problem.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 02:26 AM
04-08-2002 02:26 AM
Re: Change location password
of course if you just which to extract the password and put it into another file you can do
cat passwd awk -F: '{ print $2}' > /tmp/filename
john.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 02:26 AM
04-08-2002 02:26 AM
Re: Change location password
I think you are referring to a shadow password file.
See http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5965-4406/5965-4406_top.html&con=/hpux/onlinedocs/5965-4406/00/01/108-con.html&toc=/hpux/onlinedocs/5965-4406/00/01/108-toc.html&searchterms=shadow%20password&queryid=20020408-033255

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 02:34 AM
04-08-2002 02:34 AM
Re: Change location password
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 04:43 AM
04-08-2002 04:43 AM
Re: Change location password
Access to lines in the password file are made using system calls such as getpwent(), see man getpwent.
I don't think you will be able to change the /etc/passwd file format because of the restrictions of these calls, which are part of the HP-UX o/s source. I know, since I have had to maintain the source to programs login/su/passwd myself. These programs use getpwent().
You are therefore restricted to HPUX trusted mode or HPUX 'normal' with the given file format.
You may still want to investigate PAM or Pluggagle Authentication Modules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 04:51 AM
04-08-2002 04:51 AM
Re: Change location password
If you don't make your system "trusted" then you CAN NOT just move the "passwords" out of the /etc/passwd file. If you remove those password entries in your /etc/passwd file, then those users for which you modified will not be able to ever login again.
Are you concerned about someone running the "crack" program? If you are, then I suggest you keep all users out of shells and in their applications.
Otherwise you should convert to a trusted system.
live free or die
harry