- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Login "login incorrect" w/ no oppertunity for pass...
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
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
05-12-2005 09:21 AM
05-12-2005 09:21 AM
Starting over is a possiblity, but I would like to correct the problem without a rebuild.
Any thoughts suggestions?
Thanks
TBR
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 09:24 AM
05-12-2005 09:24 AM
Re: Login "login incorrect" w/ no oppertunity for password
Sorry, should have added that I can get to a prompt in single user mode, I just dont know what to change back, fix, whatever I might have done to /usr
TBR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 09:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 10:00 AM
05-12-2005 10:00 AM
Re: Login "login incorrect" w/ no oppertunity for password
I can get /usr from the production box. Could I just FTP it from procution-->test? I don't want to cause any problems on the production server.
Thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 10:05 AM
05-12-2005 10:05 AM
Re: Login "login incorrect" w/ no oppertunity for password
rcp -p will preserve file permissions.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 11:29 AM
05-12-2005 11:29 AM
Re: Login "login incorrect" w/ no oppertunity for password
Let you all know the results.
Any ideas of why chmod would do this? Was it something else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 02:27 PM
05-12-2005 02:27 PM
Re: Login "login incorrect" w/ no oppertunity for password
You could also risk removing all files in /usr and extracting the files off of a recent backup or the production system.
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
05-12-2005 03:24 PM
05-12-2005 03:24 PM
Re: Login "login incorrect" w/ no oppertunity for password
As a rule, 777 should *NEVER* be used for anything!!! New sysadmins often see the permission denied message and (very poor) Unix books will recommend this permission. Here are some issues with 777:
1. Because there is 7 for all other users on the syetem, every file can be trashed by any user and any directory can have it's contents destroyed, accidently or on purpose.
2. There are several special bit settings (1000, 2000 and 4000) which are critical for certain programs to run, not the least of which is login and passwd. The 777 setting wiped out these bits which is why you can never login again.
Permission denied should be dealt with on a specific file or directory, but changed only when there is a good reason. If tghe change was to make other users into sysadmins, read carefully the HP-UX Security book and many similar posts here in the ITRC about 'helping' the HP settings on system files and directories.
As fas as getting things back to normal, if you've a couple of free days, you can change each file and directory one by one, using the production system as a guide. As mentioned, restorin /usr from another server may cause even more problems. That's because /usr/lib and many system-dependent files are present in /usr and it's likely there are different patches on each system. ftp and rcp won't work because they won't run or they won't authenticate.
If you regularly made an Ignite tape backup of the new system, you can indeed restore your system. Otherwise, re-install from scratch.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 04:28 AM
05-17-2005 04:28 AM
Re: Login "login incorrect" w/ no oppertunity for password
Thanks
TBR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 04:31 AM
05-17-2005 04:31 AM
Re: Login "login incorrect" w/ no oppertunity for password
I don't believe you can restore just /usr from the install CD. Your best bet at this point would be to re-install.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 04:44 AM
05-17-2005 04:44 AM
Re: Login "login incorrect" w/ no oppertunity for password
Since this is a test box, you will save massive amounts of time by making an Ignite/UX backup of the production box and restoring it to the test box. Just change the hostname and IP address after installing the Ignite backup and you're 100% in sync (including patches and settings) with the production box.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 05:07 AM
05-17-2005 05:07 AM
Re: Login "login incorrect" w/ no oppertunity for password
To start by doing a chmod 777 on /usr you have modified the permission of /usr/bin/login which should be
-r-sr-xr-x 1 root bin 53248 Sep 13 2002 /usr/bin/login
Noticed the SUID?...
Setting this correctly should solve the logging issue...
As for the rest, I would think of using ignite in order to have an identical box if the idea were to match the production
(seems the fastest way to go...)
My 2 cents
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 08:13 AM
05-17-2005 08:13 AM
Re: Login "login incorrect" w/ no oppertunity for password
Now the best option would be to anaylse the entire /usr structure and keep changing persimission of all file. Thought it is painfull it is the only safest and reliable way to come out of this problem,
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 05:41 AM
05-19-2005 05:41 AM
Re: Login "login incorrect" w/ no oppertunity for password
Thanks to everyone.
As this endeavor was a learning experience, as well as a practical addition to my network, I consider the outcome a success. I tried each of your suggestions, and through this have a much better grip on how to recover from trouble situations in the future while the pressure was off. To repair the problem, I did end up reinstalling from scratch, but the suggested solutions lead me through recovery paths I would not have started down otherwise.
The box is not working perfictlet in its roll as a test/backup server for my production server. I feel much better knowing its there.
TBR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 05:43 AM
05-19-2005 05:43 AM