LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-13-2007, 09:51 PM   #1
uchuanng
LQ Newbie
 
Registered: May 2007
Posts: 11

Rep: Reputation: 0
super user password


i got problem here,
when i'm using the normal user login when i want 2 switch su account
i type
[user@ftp1 ~] $ su
Password: (i'm keyin root password)
su: incorrect password (but the root password is correct i keyin)
afterthat i close it, using root to login
and try to change su password
[root@ftp ~] $ passwd su
passwd:Unknown user name 'su'.

what problem with this?
 
Old 11-13-2007, 10:02 PM   #2
thebouv
Member
 
Registered: Aug 2007
Distribution: RHEL, Fedora, Ubuntu
Posts: 64

Rep: Reputation: 16
Quote:
Originally Posted by uchuanng View Post
i got problem here,
when i'm using the normal user login when i want 2 switch su account
i type
[user@ftp1 ~] $ su
Password: (i'm keyin root password)
su: incorrect password (but the root password is correct i keyin)
afterthat i close it, using root to login
and try to change su password
[root@ftp ~] $ passwd su
passwd:Unknown user name 'su'.

what problem with this?
su is not a user, su is the command you can use to switch to another user (including root).
 
Old 11-14-2007, 12:15 AM   #3
uchuanng
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
this 1 i know, i want to know to way to solve this problem..
 
Old 11-14-2007, 12:19 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Do you want to change the password of the root user? Please use capitalization and the spell checker. Maybe we don't understand what the question is due to the irc speak.

If you use Fedora Core, and use sudo, you need to enter in your own password instead of that of root.

If you are using Ubuntu, then use sudo and not su. The root account is disabled.

Also, please put your distro in the profile so that we know what the best advice might be.

Last edited by jschiwal; 11-14-2007 at 12:22 AM.
 
Old 11-14-2007, 12:28 AM   #5
uchuanng
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
but i'm using centos5
 
Old 11-14-2007, 12:43 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Try logging into a virtual console as root. If you can't then you probably forgot the password.
 
Old 11-14-2007, 01:11 AM   #7
uchuanng
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
i'm using the the root user login is no problem. i suspect the root password and su password is different. but i'heard somebody say su is totally root account.
 
Old 11-14-2007, 01:29 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Please capitalize the personal pronoun "I".

You might need to make yourself a member of the wheel group. You may not have permissions to su to root rather than root having a different password. You might try logging out of kde or gnome and log into one of the virtual terminals as root. Then use the passwd program to change the root password.

Also check the files in /etc/security. There may be a configuration file like access.conf that could be restricting access to the root account.
 
Old 11-14-2007, 04:45 AM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
As said, su is a command to switch to another user. You can use it to become any user (without a username it will 'make' you root). Read man su.

As you can login as root under normal circumstances, changing the root password will not help. See jschiwal's advise in the posts.
 
Old 11-15-2007, 01:40 AM   #10
uchuanng
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
i got it, su is stand for switch user.
but i have root password, how come i login locally can, but i'm using putty to login, then try to su root account, the error it come out.but it's correct password

system accept it when login and

when doing any thing required password

wht is the solution
 
Old 11-15-2007, 01:55 AM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
I don't know, but jschiwal gave some pointers in the earlier posts.
 
Old 11-17-2007, 09:57 PM   #12
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Are you accessing an Ubuntu machine? Root logins are disabled in that case. You need to be a member of the wheel group and use "sudo" instead. The /etc/security/access.conf settings can deny root access on remote terminals, but I don't know if that would effect "su". If you can login as root directly, try the "passwd" command to change the password, even if you change it to the same password (although there may be a PAM setting to deny repeating passwords). There may also be a policy that only allows certain members or groups to use "su". After logging in as root, enter "passwd" by itself to change the root passwd.

On some systems like Fedora Core, the "sudo" password is the same as your regular password. This allows you to give others permission to execute certain commands as root without having to reveal the root password.

Last edited by jschiwal; 11-17-2007 at 09:59 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changine the super user password swamprat Suse/Novell 1 01-25-2007 11:58 PM
How do i set my super user password? Nexxt Ubuntu 4 01-03-2007 11:36 AM
error (super user) password hero_19873 Linux - Newbie 4 05-02-2006 05:50 AM
Super user password in Knoppix 3.9 sfzab Linux - Software 2 12-26-2005 10:08 PM
Knoppix Super User password missing juhapa Linux - Software 2 05-22-2004 02:49 AM


All times are GMT -5. The time now is 09:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration