| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-13-2007, 09:51 PM
|
#1
|
|
LQ Newbie
Registered: May 2007
Posts: 11
Rep:
|
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?
|
|
|
|
11-13-2007, 10:02 PM
|
#2
|
|
Member
Registered: Aug 2007
Distribution: RHEL, Fedora, Ubuntu
Posts: 64
Rep:
|
Quote:
Originally Posted by uchuanng
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).
|
|
|
|
11-14-2007, 12:15 AM
|
#3
|
|
LQ Newbie
Registered: May 2007
Posts: 11
Original Poster
Rep:
|
this 1 i know, i want to know to way to solve this problem..
|
|
|
|
11-14-2007, 12:19 AM
|
#4
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
|
11-14-2007, 12:28 AM
|
#5
|
|
LQ Newbie
Registered: May 2007
Posts: 11
Original Poster
Rep:
|
but i'm using centos5
|
|
|
|
11-14-2007, 12:43 AM
|
#6
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Try logging into a virtual console as root. If you can't then you probably forgot the password.
|
|
|
|
11-14-2007, 01:11 AM
|
#7
|
|
LQ Newbie
Registered: May 2007
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
|
11-14-2007, 01:29 AM
|
#8
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
|
11-14-2007, 04:45 AM
|
#9
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
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.
|
|
|
|
11-15-2007, 01:40 AM
|
#10
|
|
LQ Newbie
Registered: May 2007
Posts: 11
Original Poster
Rep:
|
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
|
|
|
|
11-15-2007, 01:55 AM
|
#11
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
I don't know, but jschiwal gave some pointers in the earlier posts.
|
|
|
|
11-17-2007, 09:57 PM
|
#12
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:28 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|