- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cannot su or login as root, but can telnet.
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
12-12-2001 11:51 AM
12-12-2001 11:51 AM
I know some of the following is bad practice, but why I cannot do it is puzzling.
Basically here is what I can do:
Telnet to the box and login as root.
Telnet to the box and login as a normal user.
Login to CDE as a normal user
Here is what I cannot do:
login as myself, su to root
it says "sorry"
login as myself, type login
it says "login incorrect"
Try to login to CDE as root
it says "long incorrect; please try again"
Weird huh? This is driving me nuts. This only started happening on a reboot of the box, which is an A-class running 11.0. It is a trusted system.
This wouldn't be that bad, except that I cannot su to root. As root, I can su to a normal user just fine.
Any ideas?
Thanks,
Andy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:01 PM
12-12-2001 12:01 PM
Re: Cannot su or login as root, but can telnet.
This can be the result of the trusted system settings. See this if helps:
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90121/B2355-90121_top.html&con=/hpux/onlinedocs/B2355-90121/00/00/8-con.html&toc=/hpux/onlinedocs/B2355-90121/00/00/8-toc.html&searchterms=trusted%7csystem&queryid=20011212-120132
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:13 PM
12-12-2001 12:13 PM
Re: Cannot su or login as root, but can telnet.
I cannot change root's password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:15 PM
12-12-2001 12:15 PM
Re: Cannot su or login as root, but can telnet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:17 PM
12-12-2001 12:17 PM
Re: Cannot su or login as root, but can telnet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:23 PM
12-12-2001 12:23 PM
Re: Cannot su or login as root, but can telnet.
What is in /etc/securetty? That file affects the use off the root account.
Since your system is trusted. Go into SAM -> Users Highlight root and modify security policies. Enable password aging, but set all 4 values to 0 (thereby implicitly disabling the aging). This will modify the /tcb/files/auth/r/root file and put in the proper fields if they do not exist or are corrupt. Then go back to the main user screen and see if root is deactivated. If so activate it (I don't think you will find that it was decactivated).
Let us know,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:41 PM
12-12-2001 12:41 PM
Re: Cannot su or login as root, but can telnet.
Can you login as root on console and change password.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:55 PM
12-12-2001 12:55 PM
Re: Cannot su or login as root, but can telnet.
No special chars in roots passwd
Cannot change password from the console, but can login.
(This is a web console btw)
Tried your suggestion Craig, no go.
I also do not have a /etc/securetty file.
I have not tried going back to an untrusted system.
I will do this as kind of a last resort
My question is, why does telnet work and nothing else? Does the telnet daemon auth a user a different way?
Thanks,
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:57 PM
12-12-2001 12:57 PM
Re: Cannot su or login as root, but can telnet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 12:58 PM
12-12-2001 12:58 PM
Re: Cannot su or login as root, but can telnet.
# PAM configuration
#
# Authentication management
#
login auth required /usr/lib/security/libpam_unix.1
su auth required /usr/lib/security/libpam_unix.1
dtlogin auth required /usr/lib/security/libpam_unix.1
dtaction auth required /usr/lib/security/libpam_unix.1
ftp auth required /usr/lib/security/libpam_unix.1
OTHER auth required /usr/lib/security/libpam_unix.1
#
# Account management
#
login account required /usr/lib/security/libpam_unix.1
su account required /usr/lib/security/libpam_unix.1
dtlogin account required /usr/lib/security/libpam_unix.1
dtaction account required /usr/lib/security/libpam_unix.1
ftp account required /usr/lib/security/libpam_unix.1
#
OTHER account required /usr/lib/security/libpam_unix.1
#
# Session management
#
login session required /usr/lib/security/libpam_unix.1
dtlogin session required /usr/lib/security/libpam_unix.1
dtaction session required /usr/lib/security/libpam_unix.1
OTHER session required /usr/lib/security/libpam_unix.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 01:30 PM
12-12-2001 01:30 PM
Re: Cannot su or login as root, but can telnet.
Good think I have hair to pull out. :)
Thanks,
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 01:39 PM
12-12-2001 01:39 PM
Re: Cannot su or login as root, but can telnet.
Sound like there are two things happening
and not one. Your own account sound like
it has been locked. You can use 'modprpw'
to unlock it.
# /usr/lbin/modprpw -k username
With the 'root' account you could try expiring
the passwd again using 'modprpw'
# /usr/lbin/modprpw -w root
Be careful when running this in the root
account.... Make sure you have at least one
other session if something goes wrong.
In the attached link is the man pages
-Michael
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xebf46c96588ad4118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:34 PM
12-12-2001 02:34 PM
Re: Cannot su or login as root, but can telnet.
I tried both, now I cannot telnet in.
I do have a couple of telnet sessions in as root. I'll see if I can reactivate root.
I still cannot change the password and it did not tell me that the password has expired.
Thanks,
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 07:13 AM
12-13-2001 07:13 AM
Re: Cannot su or login as root, but can telnet.
As soon as I unconverted and tried to login as root it asked me to change the password and I just used the same one.
I guess the trusted db file for root was corrupt or maybe had some goofy access parameters.
Thanks so much for all your help,
Andy