Unix Technical Forum

I can not su to root on my Sun Solaris 9 (SPARC) box, even with the correct password

This is a discussion on I can not su to root on my Sun Solaris 9 (SPARC) box, even with the correct password within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Could someone help me out with my problem / issue? I would greatly appreciate and be thankful for any ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-06-2008, 07:47 AM
Kevin Shen
 
Posts: n/a
Default I can not su to root on my Sun Solaris 9 (SPARC) box, even with the correct password

Could someone help me out with my problem / issue? I would greatly
appreciate and be thankful for any help and / or guidance that anyone
can give me.

I recently upgraded the OS on my Sun box from Solaris 8 to Solaris 9
(SPARC platform). When I login as a regular user and then switch my
login user id to root (using the su - ) command, I am not able to log
in as root. I used the correct root password but still am not able to
successfully su to root. I get the following error, when I attempt to
su to root, in the listing below:


Mon Dec 29 18:28:26 #whoami
kshen
Mon Dec 29 18:28:28 #su -
Password:
su: incorrect password


I have the following configured and running on my Sun box. I am
running an Ultra 1 140, with 512 MB of RAM, an externally attached
SCSI hard drive array, and a 100 Base-T S-Bus Network card. Yeah, I
must admit that this box may be slow for Solaris 9, but it works well
for what it is primarily being used for- as an NFS / SAMBA (SMB) file
server. I am using NIS / YP for my authentication and this Sun box is
NOT neither running as an NIS master nor as an NIS slave server. The
NIS server that this Sun box "ypbind's to" is a Red Hat Linux 9 box.
I am using the standard PAM-based authentication on this Sun box and
am not using Kerebros of any one of those new authentication schemes /
protocols.

In addition the user id in my listing, "kshen" is an account that is
being propagated through the NIS / YP Linux server. Also, this user,
kshen is in the following groups, as shown in the listing below:


Mon Dec 29 18:28:36 #group Mon Dec 29 18:28:36 #groups kshen
kshen : wheel xgrp company


I have also modified my /etc/groups file and added a group, wheel and
reassigned the group staff id # from 10 to 11, my /etc/groups file, as
shown below:


root::0:root
other::1:
bin::2:root,bin,daemon
sys::3:adm,bin,root,sys
adm::4:root,adm,daemon
uucp::5:root,uucp
mail::6:root
tty::7:root,adm
lp::8:root,lp,adm
nuucp::9:root,nuucp
wheel::10:root:+
staff::11:+
daemon::12:root,daemon
sysadmin::14:
smmsp::25:smmsp
nobody::60001:
noaccess::60002:
nogroup::65534:
+:::


I had the same type of setup mentioned above, except that it was
running on Solaris 8 and had no problems to su - to root from a
regular authenticated user. Does anyone know what may be wrong with
my setup? Is there something that I may have overlooked or is there
something that I am missing, in order to get things to work properly?
Again, I would greatly appreciate any help and / or guidance regarding
this issue. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-06-2008, 07:47 AM
Bart Somers
 
Posts: n/a
Default Re: I can not su to root on my Sun Solaris 9 (SPARC) box, even withthe correct password



Kevin Shen wrote:
> Could someone help me out with my problem / issue? I would greatly
> appreciate and be thankful for any help and / or guidance that anyone
> can give me.
>
> I recently upgraded the OS on my Sun box from Solaris 8 to Solaris 9
> (SPARC platform). When I login as a regular user and then switch my
> login user id to root (using the su - ) command, I am not able to log
> in as root. I used the correct root password but still am not able to
> successfully su to root. I get the following error, when I attempt to
> su to root, in the listing below:
>
>
> Mon Dec 29 18:28:26 #whoami
> kshen
> Mon Dec 29 18:28:28 #su -
> Password:
> su: incorrect password
>
>



> In addition the user id in my listing, "kshen" is an account that is
> being propagated through the NIS / YP Linux server. Also, this user,
> kshen is in the following groups, as shown in the listing below:
>


I've seen this before, but just the other way around.
After a patchcluster-install on a Sol8 box, my nsswitch.conf pointed to
NIS for authentication, but we don't have a NIS hanging around.
Maybe after your upgrade, your nsswitch.conf is pointing to files
instead of nis.

Bart

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-06-2008, 07:48 AM
tbutler@dev.null
 
Posts: n/a
Default Re: I can not su to root on my Sun Solaris 9 (SPARC) box, even with the correct password

KevinWinstonShen@netscape.net (Kevin Shen) writes:

> I have also modified my /etc/groups file and added a group, wheel and

....
> +:::



Do you have "group: compat" specified in your nsswitch.conf file,
with a similiar entry for passwd if you're using the old "+" syntax
for NIS there as well? (See passwd(4) and group(4))

I've seen this cause unexpected problems, but I can't recall exactly
how they manifested themselves.

All that being said, I just tried adding "+:" to /etc/passwd and
"+:::" to /etc/group, and wasn't able to reproduce your problem.

tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com