LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-22-2006, 12:54 PM   #1
AlinFaur
LQ Newbie
 
Registered: Jun 2004
Location: Romania
Distribution: RH, SuSE, Slackware, Debian - would like to test many ;-)
Posts: 11

Rep: Reputation: 0
"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.
 
Old 02-22-2006, 12:56 PM   #2
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Try one of the following:

su -
su - <user>
 
Old 02-22-2006, 01:26 PM   #3
AlinFaur
LQ Newbie
 
Registered: Jun 2004
Location: Romania
Distribution: RH, SuSE, Slackware, Debian - would like to test many ;-)
Posts: 11

Original Poster
Rep: Reputation: 0
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...
 
Old 02-22-2006, 03:47 PM   #4
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
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.
 
Old 02-22-2006, 11:11 PM   #5
AlinFaur
LQ Newbie
 
Registered: Jun 2004
Location: Romania
Distribution: RH, SuSE, Slackware, Debian - would like to test many ;-)
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks! I'll try that.
 
Old 02-22-2006, 11:26 PM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
In some distro, to use "su", your user have to be in the wheel group. Take a look at /etc/group
 
  


Reply



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
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 02:05 PM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 02:11 PM
normal user want to perform "init 6" by using " sudo acbenny Linux - General 3 08-08-2004 07:41 AM
Accessing windows drive from my "normal" user. At0mic_PC Slackware 6 08-01-2003 11:33 PM
su wont work, cant "su root" as a normal user lukeorun Linux - General 5 10-17-2002 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration