Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| 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. |
|
 |
02-22-2006, 12:54 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2004
Location: Romania
Distribution: RH, SuSE, Slackware, Debian - would like to test many ;-)
Posts: 11
Rep:
|
"su root" fails when I connect with normal user thru SSH
Hi everyone.
I'm running a Trustix 2.2 (fedora based) machine at work and I need to remote connect on it from outside. So I configures ssh to do the job.
But, if I connect using a normal user (from the users group), the machine does not allow me to "su" or "su root" - the error message is "incorrect password".
If I set the "enable root login" line to "yes" in sshd_config, I am able to ssh straight with root, but I can't "su" with that line set to "yes" or "no" either.
I am absolutely sure the root password I am providing IS the correct one (since I can use it locally or if I ssh with root).
Sometimes the system won't allow me to "su" even locally - would that be just a system bug or are there any settings that I should be aware of, at least for ssh? I did updated all my installed packages just today (the problem was even before I did that and it's still present).
Thanks,
Alin Faur.
|
|
|
|
02-22-2006, 12:56 PM
|
#2
|
|
Member
Registered: Sep 2002
Location: Cincinnati
Distribution: Debian GNU/Linux
Posts: 310
Rep:
|
Try one of the following:
su -
su - <user>
|
|
|
|
02-22-2006, 01:26 PM
|
#3
|
|
LQ Newbie
Registered: Jun 2004
Location: Romania
Distribution: RH, SuSE, Slackware, Debian - would like to test many ;-)
Posts: 11
Original Poster
Rep:
|
thanks for the tip.
i could do that, it asked for the password, but i still get "incorrect password". i know for sure it's not incorrect... 
|
|
|
|
02-22-2006, 03:47 PM
|
#4
|
|
Member
Registered: Sep 2002
Location: Cincinnati
Distribution: Debian GNU/Linux
Posts: 310
Rep:
|
Try logging in with root (eg: root@your.server.ip) and changing the password with the passwd command. While you're in as root, consider the following.
Just a tip for the future: I recommend putting your normal user into the sudoers file and using sudo instead of switching back and forth with su.
|
|
|
|
02-22-2006, 11:11 PM
|
#5
|
|
LQ Newbie
Registered: Jun 2004
Location: Romania
Distribution: RH, SuSE, Slackware, Debian - would like to test many ;-)
Posts: 11
Original Poster
Rep:
|
Thanks! I'll try that.
|
|
|
|
02-22-2006, 11:26 PM
|
#6
|
|
Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
In some distro, to use "su", your user have to be in the wheel group. Take a look at /etc/group 
|
|
|
|
| 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 05:07 PM.
|
|
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
|
|