- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- login denied for all users
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
Discussions
Discussions
Discussions
Forums
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
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
тАО09-22-2006 06:50 AM
тАО09-22-2006 06:50 AM
The only change I did was to enable nsswitch.conf and pointed out to read files before DNS for hosts.
Question is, is there a possebility that I've got junk characters in my nsswitch.conf that can prevent login authorization?
I luckley had one session as a non root user up and if I try to do su - I got in return something like the following "User ID not known to the system" Feels like password authenticaztion is swrewed up in some way.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2006 06:53 AM
тАО09-22-2006 06:53 AM
Re: login denied for all users
cat /etc/nssswitch.conf file and see for any errors. What is syslog says?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2006 07:13 AM
тАО09-22-2006 07:13 AM
Re: login denied for all users
It sounds like you may have corrupted the nsswitch.conf file, or at least updated the passwd: feild.
It might be that you'll need to reboot into single user mode and make sure that the 'passwd' line reads . . .
passwd: compat
or
passwd: files
But before you do that, what are the permissions on the /etc/nsswitch.conf file? A normal user should be able to cat out the contents. You say you have a session open? If you can, post the resolts of . . .
cat /etc/nsswitch.conf
And while your at it, see if you have the . . .
/etc/nsswitch.compat
/etc/nsswitch.files
/etc/nsswitch.hp_defaults
/etc/nsswitch.nis
/etc/nsswitch.nisplus
. . . as backups.
Regards,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2006 07:15 AM
тАО09-22-2006 07:15 AM
Re: login denied for all users
Also try to login in single user mode and see if you can undo your changes.
Also see if you can change the root password, maybe the /etc/passwd got screw up.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2006 07:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2006 08:12 AM
тАО09-22-2006 08:12 AM
Re: login denied for all users
1) James Balanos Rojas has right, Boot en single mode. you don't need to enter passwd.
once the system is up => mount -a
=> passwd root => ENTER YOUR PASSWD
2)if you have many UNIX servers , perhaps you can connect from another server with rlogin (not secure).
Best Regards
Jean-Louis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2006 07:31 PM
тАО09-22-2006 07:31 PM
Re: login denied for all users
I've tried to reached concole prompt but since it is a VPAR server I only manage to reache some kind of MON> prompt and I dont know how to get a login prompt from there.
The other issue is we have a job running on the server this weekend so I cant reboot the server just yet. But I figured I boot into single user mode and then either remove nsswitch.conf or just edit it and remove any trace of junk in it.
--- Jim: Permissions on the nsswitch.conf is r--r--r--. Unfortunately the session which is still logged on is at work so I cant reach the server from home, so I cant post the output of ls /etc/nsswitch.* nor the output of cat nsswitch.conf but It should read like this (prompted from my other VPAR instance which I still can log into)
#
# /etc/nsswitch.hp_defaults:
#
# @(#)B11.23_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
passwd: compat
group: compat
hosts: files dns [NOTFOUND=return] nis [NOTFOUND=return]
ipnodes: dns [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: nis [NOTFOUND=return] files
As said earlier I've only changed the hosts entry.
My /etc/hosts files is something like this (picked from my memory)
192.168.1.10 servera.lindex.se servera
192.168.1.11 serverb.lindex.se serverb
127.0.0.1 localhost loopback
As you can figure First VPAR instance is serverA and this is the server I cant reach and the other VPAR instance is serverB which I still can log into.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2006 03:19 AM
тАО09-23-2006 03:19 AM
Re: login denied for all users
passwd: files
hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns
Then verify that nslookup can find an entry in /etc/hosts, and also an entry in your DNS server.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2006 09:31 PM
тАО09-23-2006 09:31 PM
Re: login denied for all users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 03:52 AM
тАО09-24-2006 03:52 AM
Re: login denied for all users
==========================
If you have other vpar's running on the same partition then you can do this way:
vpar1:\$ vparreset -p vpar2 -h
Vpar2 will be halted.
vpar1:\$ vparboot -p vpar2 -o "is"
will reboot vpar2 into single user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 05:22 AM
тАО09-24-2006 05:22 AM
Re: login denied for all users
Must say I really dont like the only way to reboot my second VPAR is to crash it (vparreset) But hey, it did the job.