View Full Version : [ubuntu] Cant su or sudo with ssh
twooton
March 6th, 2009, 09:02 AM
I just set up a new linux server with the latest server release. When I go to ssh into the computer remotely, I log in with the administrative user your first set up. They I try to switch to root with su, which asks me for the password. When I enter the password it says auth failed. Then i try sudo su root, or sudo su, and nothing happens at at, its acts as if I just hit the enter button with no command present. Everything works fine when try to su on the server itself (without ssh). Any ideas?
threetimes
March 6th, 2009, 09:25 AM
You shouldn't use su with ubuntu, just use sudo command
genset
March 6th, 2009, 09:30 AM
try using sudo -i
it gives u a root shell
matey3
March 6th, 2009, 10:22 AM
I think you should first passwd root then do su or sudo.
usually if you take the default install, linux does not allow you to create root login, if you take the advanced setup (F6) when booting with the CD then it will allow you.
seems like the root has not been setup yet?
cdenley
March 6th, 2009, 10:37 AM
Then i try sudo su root, or sudo su, and nothing happens at at, its acts as if I just hit the enter button with no command present.
Are you sure you don't have a root shell now. After you enter your password once, by default you won't be prompted for it again until after 15 minutes.
sudo su
whoami
The su command, when not run as root, prompts for the root password. There is no root password in ubuntu for security reasons.
I think you should first passwd root then do su or sudo.
No, he shouldn't.
http://ubuntuforums.org/showthread.php?t=716201
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.