fmagoufis
Dec 4 2002, 12:44 PM
All of a sudden, i cannot use the su - comman. When i run it and type in the correct superuser password, it says password incorrect.
Why
Joey
Dec 4 2002, 12:51 PM
Out of sheer curiousity, why on earth are you using telnet?
SSH is a wonderful thing.
http://www.ssh.orghttp://www.openssh.org
fmagoufis
Dec 6 2002, 01:57 PM
Even if i use ssh to connect i still cannot do a su -. The server is at my work in another office.
Any help would be appreciated.
Corey
Dec 6 2002, 03:12 PM
Well, I'm not sure with telnet (because I use mostly SSH), but you may have to set telnet up to allow for remote root login. I know with ssh, you have to set it in the config file in order for you to ssh -l root .
fmagoufis
Dec 10 2002, 02:57 PM
i tried fixing the config file, but anytime i run su - , I get wrong password.
chrisw
Dec 10 2002, 04:15 PM
It could be that you are not in the group: wheel
this group is used for people who can su -
to root. Therefore if you are not in the group wheel
you can not su - to root. Check the group file
and see if there is a list of names besides root,
if root is even listed..and if there is a list of
user names...see if you are in that list....if not
you wont be able to su to root
if you are not in the list try getting someone
who can su to root and add you to the group
fmagoufis
Dec 11 2002, 11:25 AM
i am on the group. what next?
could it be a rights issue?
chrisw
Dec 11 2002, 01:42 PM
if you are in the group wheel then
you should be able to su - to root
check to see if the file "su" which
is in /etc/pam.d/
directory has the group set to wheel
just look for a line that has
the following
10
- or -
wheel
if so,
i dont know of anything off hand that is
keeping you from su'ing to root.
fmagoufis
Dec 12 2002, 01:30 PM
everything looks good.
Where to look next?
chrisw
Dec 12 2002, 05:48 PM
im not sure where to look next....
you sure you are typing in the correct
password for root?
fmagoufis
Dec 13 2002, 10:09 AM
absolutely typing in the correct password.
Corey
Dec 13 2002, 11:21 AM
The only other thing I can think of is, try to type your password just in plain site on the command line before you "su -". Make sure that it appears right there, the only thing I can think of is that your keyboard is mapped wrong through your telnet(ssh) program. Have you tried just typing "su" rather then "su -" ? As well, have you tried to enable remote root login, and just logged in as root rather then su'in?
fmagoufis
Dec 22 2002, 01:58 PM
how do I enable remote root login?
chrisw
Dec 22 2002, 10:23 PM
if you are running redhat
you enable remote root login by editing the sshd.config file
in /etc/sshd folder
change permit root login from no to yes
the save the file...then restart ssh
by typing
/etc/rc.d/init.d/sshd restart
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.