- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unknown user error with Hpux
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
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
тАО05-16-2010 11:50 PM
тАО05-16-2010 11:50 PM
Unknown user error with Hpux
Any suggestion, I keep having User unknown error whenever I tried to switch to root in hpux. See details below.
$ su -
dbadum... User unknown
D060AHE... User unknown
cannot open /no/such/directory/dead.letter: No such file or directory
gbaheq01:/ #
Based on the suggestion from the forum, I have done the following:
# chmod go-w / /etc /etc/mail /var /var/spool /var/spool/mqueue
# chown root / /etc /etc/mail
and also
# vi /etc/mail/sendmail.cf
(and add right after the line #O DontBlameSendmail=safe)
O DontBlameSendmail=safe
But the error is still there. Any suggestion will be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 12:12 AM
тАО05-17-2010 12:12 AM
Re: Unknown user error with Hpux
any scripts in /.profiole ???
what is "su root" output ??
same error or anything else ??
Gudluck
Prasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 12:17 AM
тАО05-17-2010 12:17 AM
Re: Unknown user error with Hpux
What do these commands show:
# pwck
# grpck
# /usr/lib/sendmail -bv root
# tail /var/adm/syslog/mail.log
# tail /var/adm/syslog/syslog.log
Also, can an ordinary user read the password
file (permissions 444 or 644)?
Is your su(1M) command really the one
that comes with the OS (in trusted
PATH)? I get very nervous when users
run "su -". I strongly recommend:
/bin/su - root
Corrupt pwgrd(1M) password and group
hashing and caching daemon can create funny
errors.
Well, we can come up with more ideas,
but lets see what the ebove commands reveal.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 01:16 AM
тАО05-17-2010 01:16 AM
Re: Unknown user error with Hpux
It seems like you are using a customised su command.Normally if you are doing su - from a normal user it should prompt for root account password.
Post this:-
#file `which su`
which
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 02:02 AM
тАО05-17-2010 02:02 AM
Re: Unknown user error with Hpux
The permission on the password file is 644
The users that run su ├в are define in the /etc/sudoers file
gbaheq01:/bin # cat su
/usr/local/bin/sudo su.original "$@"
The output is attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 02:44 AM
тАО05-17-2010 02:44 AM
Re: Unknown user error with Hpux
Start with correcting these errors:
a) Invalid Unix accounts:
G495AHE:*:1186:20:Venkata Nareshbabu:/home/G495AHE:/bin/bash
Optional shell file not found
H184AHE:*:335:20:Emma Sevar:/home/H184AHE:/usr/bin/sh
Login directory not found
Y069AHE:*:340:20:Ed Tanner:/home/Y069AHE:/usr/bin/sh
Login directory not found
D080AHE:*:345:20:Scott Rumbold:/home/D080AHE:/usr/bin/sh
Login directory not found
...
b) Non-existent email alias or address dbadum:
May 17 10:02:32 gbaheq01 sendmail[23440]: KAA23440: to=dbadum, delay=00:00:00, mailer=local, stat=User unknown
May 17 10:02:32 gbaheq01 sendmail[23440]: KAA23440: from=D060AHE, size=183, class=0, pri=30183, nrcpts=1, msgid=<201005170902.KAA23440@gbah eq01.gb.tntpost.com>, relay=root@localhost
May 17 10:02:32 gbaheq01 sendmail[23440]: KAA23440: to=D060AHE, delay=00:00:00, mailer=local, stat=User unknown
c) If you allow user to execute su(1M) without SUDO, what happens:
# /bin/su - root
If you get the same error, then your root's profile is funny.
Let's see what happens next.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 03:23 AM
тАО05-17-2010 03:23 AM
Re: Unknown user error with Hpux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 04:39 AM
тАО05-17-2010 04:39 AM
Re: Unknown user error with Hpux
The sudoers file is for the sudo command and has nothing to do with su. Im fact, if you have sudo installed, you should not be using su at all. Your system administrator probably installed sudo for security and reliability. Is there a reason that you don't use it?
And as noted in the errors reported by the pwck command, there is no /bin/bash on your system. If it has been installed, change the shells for the users with /bin/bash to the correct path (hint: chsh command).
As far as the errors during su - logins, you'll have to turn on shell tracing in /etc/profile and root's .profile to locate which commands are producing the errors and fix each one.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 06:43 AM
тАО05-17-2010 06:43 AM
Re: Unknown user error with Hpux
How do I turn on shell tracing in /etc/profile and root's .profile to locate which commands are producing the errors and fix each one.
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2010 06:50 AM
тАО05-17-2010 06:50 AM
Re: Unknown user error with Hpux
Put this line at the beginning og "/etc/profile" and ".profile"
set -x
You will see the result of the execution of each command in these files.
Regards,