You are not logged in.

#1 2010-06-17 15:17:59

archP4
Member
From: Kent, England
Registered: 2010-05-24
Posts: 18

Problem with root password when using sudo [SOLVED]

Hello,

When I login as root I have no problem but when I issue a command such as

sudo pacman -S firefox

It asks me for the root password, but refuses to accept my correct answer.

Is there somewhere else I need to let sudo know my root password?

Many thanks

Last edited by archP4 (2010-06-17 15:24:11)

Offline

#2 2010-06-17 15:19:31

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Problem with root password when using sudo [SOLVED]

sudo prompts you for your password, not root's password.

Offline

#3 2010-06-17 15:23:16

archP4
Member
From: Kent, England
Registered: 2010-05-24
Posts: 18

Re: Problem with root password when using sudo [SOLVED]

Oh right. I though sudo was to allow you to login as root to issue a single command? Never for the life of me thought it would want my password!

Thanks for the quick response!

Last edited by archP4 (2010-06-17 15:23:35)

Offline

#4 2010-06-18 02:25:26

herrvideman
Member
Registered: 2010-01-11
Posts: 111

Re: Problem with root password when using sudo [SOLVED]

FWIW you can set sudo to prompt you for the root password instead of your password as well.

Offline

#5 2010-06-18 02:33:12

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Problem with root password when using sudo [SOLVED]

herrvideman wrote:

FWIW you can set sudo to prompt you for the root password instead of your password as well.

Thereby defeating the purpose of sudo... At that point you may as well use 'su -c'

Offline

#6 2010-06-18 04:56:37

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Problem with root password when using sudo [SOLVED]

But that takes more characters and you have to quote the command you're calling. big_smile


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#7 2010-06-18 08:28:52

archP4
Member
From: Kent, England
Registered: 2010-05-24
Posts: 18

Re: Problem with root password when using sudo [SOLVED]

I'm happy to type my password. Thanks again chaps.

Offline

#8 2010-06-19 05:32:43

herrvideman
Member
Registered: 2010-01-11
Posts: 111

Re: Problem with root password when using sudo [SOLVED]

falconindy wrote:
herrvideman wrote:

FWIW you can set sudo to prompt you for the root password instead of your password as well.

Thereby defeating the purpose of sudo... At that point you may as well use 'su -c'

So the only purpose of sudo is to enable you to use your user password instead of your root password, which may or may not be shorter than the root password in the first place? hmmm

Offline

#9 2010-06-19 05:40:10

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: Problem with root password when using sudo [SOLVED]

On larger systems you may want to have a few people that can carry out commands as root but you don't want them to share /root or passwords.


The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#10 2010-06-19 10:18:31

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Problem with root password when using sudo [SOLVED]

And sudo is a lot more flexible than su, you can restrict which commands can be run by which users and groups..

Offline

Board footer

Powered by FluxBB