LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-29-2005, 08:19 PM   #1
onthos
Member
 
Registered: Aug 2004
Posts: 45

Rep: Reputation: Disabled
sudo woes!


Straight outta the box, and already I have a problem.

So far, there is only one thing I cannot do and it prevents me from doing many things. Sudo won't accept my root password. I noticed it first when I tried to view online updates. I receive this error:
Failed to run /usr/bin/update-manager as user root:
Wrong password.

I made sure the password was correct by opening a terminal and
$ su
Password:
#

Yes... it is the right password. But sudo doesn't think it is. Any suggestions?

EDIT: So I did a little searching around the forum and found out that the password I'm supposed to type in is my user password. I did that, but now the app won't run. I'm guessing it accepts my password, because it doesn't return an error message, but the update window doesn't show up.

Last edited by onthos; 11-29-2005 at 09:03 PM.
 
Old 11-29-2005, 08:56 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
i think you run sudo as the user, using the user password. root doesn't need to be sudo, it's already root.

Last edited by slackhack; 11-29-2005 at 08:57 PM.
 
Old 11-29-2005, 08:59 PM   #3
onthos
Member
 
Registered: Aug 2004
Posts: 45

Original Poster
Rep: Reputation: Disabled
Didn't get done editing in time... sorry slackhack.
Now I have a new problem.
 
Old 11-30-2005, 09:22 AM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
does it run as root? it may be a matter of opinion, but imho i dont think there's really any advantage to using sudo on a single-user box. if anything, it probably only reduces your security. if i were you i would forget about sudo and just use the root account for administration.
 
Old 11-30-2005, 07:07 PM   #5
onthos
Member
 
Registered: Aug 2004
Posts: 45

Original Poster
Rep: Reputation: Disabled
Everything runs fine as root. I don't know many app names so I was using the shortcuts on the panel. All of the shortcuts use gksudo (which I'm assuming is the gui sudo?). All I have to do though is make a shortcut on the desktop and check its properties to find out what app it is running.
 
Old 11-30-2005, 07:58 PM   #6
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Quote:
Originally posted by slackhack
does it run as root? it may be a matter of opinion, but imho i dont think there's really any advantage to using sudo on a single-user box. if anything, it probably only reduces your security. if i were you i would forget about sudo and just use the root account for administration.
Because any malicious hacker would know that your username is slackhack, but they would never guess to think there'd be a user called root...
 
Old 11-30-2005, 10:12 PM   #7
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Quote:
Originally posted by aysiu
Because any malicious hacker would know that your username is slackhack, but they would never guess to think there'd be a user called root...
are you being sarcastic?

how does having sudo protect against a hacker knowing you have a root account?
 
Old 11-30-2005, 10:37 PM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Quote:
Originally posted by slackhack
are you being sarcastic?

how does having sudo protect against a hacker knowing you have a root account?
From the Wiki:
Quote:
Every cracker trying to brute-force their way into your box will know it has an account named root and will try that first. What they don't know is what the usernames of your other users are.
 
Old 11-30-2005, 10:57 PM   #9
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Quote:
Originally posted by aysiu
From the Wiki:
and? if a hacker is able to get into your box as root using a brute force attack, they are going to be able to do that whether you have sudo or not, aren't they? unless some functionality was added to sudo that i don't know about, it doesn't protect you from a brute force attack against root, does it?

Last edited by slackhack; 11-30-2005 at 10:58 PM.
 
Old 11-30-2005, 11:12 PM   #10
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
The root account is not enabled in Ubuntu by default.
There is no root account.
You cannot log in as root.
If you know the sudo password and try to log in with the username root and the sudo password, you will not be able to do so.

So someone trying to "brute force" in would have to know two things--your username and your password (and not only your username, but on a multi-user computer, which one has access to sudo privileges).

In a typical root model (every other Linux distribution), there is always a user named root who can log in. Everyone knows this user exists and that root can do anything on the computer--thus only the root password is in need of figuring out.
 
Old 11-30-2005, 11:22 PM   #11
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Quote:
Originally posted by aysiu
The root account is not enabled in Ubuntu by default.
There is no root account.
You cannot log in as root.
If you know the sudo password and try to log in with the username root and the sudo password, you will not be able to do so.

So someone trying to "brute force" in would have to know two things--your username and your password (and not only your username, but on a multi-user computer, which one has access to sudo privileges).

In a typical root model (every other Linux distribution), there is always a user named root who can log in. Everyone knows this user exists and that root can do anything on the computer--thus only the root password is in need of figuring out.
i see, thanks for explaining that. i thought once the root password was cracked, that was it whether you have sudo or not.

a lot of services often don't allow root login (ssh, ftp, etc., or can be configured that way), so it also seemed to me that it might be easier to try cracking a box using random common user names, which i have heard people try to do. or you also see a lot of screenshots with usernames, or even someone just walking past your PC might see the username, etc. in that case, by using sudo you have added X amount of accounts with root privileges, depending on how many users are on the computer who have sudo. so theoretically that is more opportunities for root privileges to get cracked, if you see what i'm saying.

i still am not sold on the idea that username + password with sudo is automatically more secure, but i can see how it might be more of a challenge if you don't have the username. it seems kind of like "security through obscurity" though, if you think about it. i guess at the fundamental level, all security is through obscurity in that sense.

thx

Last edited by slackhack; 11-30-2005 at 11:25 PM.
 
Old 12-01-2005, 01:01 AM   #12
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Well, every security model has pros and cons.
The http://wiki.ubuntu.com/RootSudo entry on sudo is pretty evenhanded about those pros and cons. It doesn't make it sound as if a root model is death to security, and it doesn't put sudo on a pedestal.
 
  


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
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
About sudo alnreddy Linux - Security 3 06-13-2005 12:53 PM
sudo cgammel Linux - Newbie 2 11-30-2003 09:32 AM
need help with sudo mla Linux - Software 4 10-02-2003 11:05 AM
Using Sudo frostbite Linux - Newbie 7 08-09-2003 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:42 AM.

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