- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to login as root
Operating System - HP-UX
1752800
Members
5812
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-25-2011 02:59 AM
тАО05-25-2011 02:59 AM
unable to login as root
Hi all,
I am facing login issue with root. I am unable to sudo or su -
Please find the below output after entering the different command.
In addition, root password is not accepting after su -
Please help me to resolve the issue.
$ /usr/local/bin/sudo su -
sudo: unknown uid: 20034
$ id
uid=20034() gid=6001(unxinfra)
$ id root
uid=0() gid=3(sys) groups=6001(unxinfra)
$
$ grep 20034 /etc/passwd
kzkt963:vuisokBEbdbb.,A.dV:20034:6001:744/I/075091//thota.venkat.g.INC000000711214:/home/kzkt963:/bin/ksh
$
$ grep root /etc/passwd
root:1bd1RlC9JFld6:0:3:866/F/*AZUX01/IBM/root Super-User,,,:/:/sbin/sh
$
$ ll /etc/passwd
-r--r--r-- 1 0 sys 15544 May 24 10:36 /etc/passwd
$
$ uname -a
HP-UX zcux06 B.11.00 A 9000/800 1520716597 two-user license
Thanks in advance,
Santhosh
I am facing login issue with root. I am unable to sudo or su -
Please find the below output after entering the different command.
In addition, root password is not accepting after su -
Please help me to resolve the issue.
$ /usr/local/bin/sudo su -
sudo: unknown uid: 20034
$ id
uid=20034() gid=6001(unxinfra)
$ id root
uid=0() gid=3(sys) groups=6001(unxinfra)
$
$ grep 20034 /etc/passwd
kzkt963:vuisokBEbdbb.,A.dV:20034:6001:744/I/075091//thota.venkat.g.INC000000711214:/home/kzkt963:/bin/ksh
$
$ grep root /etc/passwd
root:1bd1RlC9JFld6:0:3:866/F/*AZUX01/IBM/root Super-User,,,:/:/sbin/sh
$
$ ll /etc/passwd
-r--r--r-- 1 0 sys 15544 May 24 10:36 /etc/passwd
$
$ uname -a
HP-UX zcux06 B.11.00 A 9000/800 1520716597 two-user license
Thanks in advance,
Santhosh
santhosh
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2011 04:11 AM
тАО05-25-2011 04:11 AM
Re: unable to login as root
Check your /etc/nsswitch.conf file, and make sure that the passwd line lists "files" as the first source.
The call in question here is "getpwnam()" and it's evidently running into trouble somewhere.
Try using Perl to access the /etc/passwd:
perl -e 'print join(":", getpwuid(0))'
It'll probably give the same results as su, but it'd be an interesting experiment in any case.
Maybe there's some sort of formatting problem in the /etc/passwd that's tripping things up. Your gcos field looks too clever by half.
The call in question here is "getpwnam()" and it's evidently running into trouble somewhere.
Try using Perl to access the /etc/passwd:
perl -e 'print join(":", getpwuid(0))'
It'll probably give the same results as su, but it'd be an interesting experiment in any case.
Maybe there's some sort of formatting problem in the /etc/passwd that's tripping things up. Your gcos field looks too clever by half.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2011 05:19 AM
тАО05-25-2011 05:19 AM
Re: unable to login as root
There is definitely something funny about accessing the /etc/passwd file. In the UID portion of the 'id' command output above, no user name is shown. It should say 'uid=0(root)' and 'uid=20034(kzkt963)'.
The suggestion above about checking nsswitch.conf is good.
I would also run 'pwck' to check the /etc/passwd file to make sure there is nothing wrong with it.
The suggestion above about checking nsswitch.conf is good.
I would also run 'pwck' to check the /etc/passwd file to make sure there is nothing wrong with it.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP