Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with sudo, plz help [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
neogen
Apprentice
Apprentice


Joined: 10 Oct 2004
Posts: 163

PostPosted: Sat Oct 16, 2004 9:26 pm    Post subject: problem with sudo, plz help [solved] Reply with quote

hi i've just emerge sudo, and well im having problem using it,
when i do:
Code:
sudo shutdown -r -t time now

it ask for a password, then i enter my root, password and it said incorrect password?, then i try entering my normal user password and that dont work either, am i missing something?


Last edited by neogen on Sat Oct 16, 2004 9:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
ravensix
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 220

PostPosted: Sat Oct 16, 2004 9:30 pm    Post subject: Re: problem with sudo, plz help Reply with quote

neogen wrote:
hi i've just emerge sudo, and well im having problem using it,
when i do:
Code:
sudo shutdown -r -t time now

it ask for a password, then i enter my root, password and it said incorrect password?, then i try entering my normal user password and that dont work either, am i missing something?


did you add your user in /etc/sudoers ?
_________________
Gentoo Powered:Reiser4|2.6 bootstrapped|NPTL|UDEV|2.6.11-nitro2+gnome
Linux registered user #366983
ravensix[at]gmail[dot]com
Back to top
View user's profile Send private message
neogen
Apprentice
Apprentice


Joined: 10 Oct 2004
Posts: 163

PostPosted: Sat Oct 16, 2004 9:33 pm    Post subject: Reply with quote

i dont think i did, all i did was install the sudo and try to use it as a normal user, so how would i set up normal user to used 'sudo'?
Back to top
View user's profile Send private message
ravensix
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 220

PostPosted: Sat Oct 16, 2004 9:35 pm    Post subject: Reply with quote

neogen wrote:
i dont think i did, all i did was install the sudo and try to use it as a normal user, so how would i set up normal user to used 'sudo'?


I just put
Code:

dan     ALL=(ALL) ALL


in my /etc/sudoers file, replace dan with your users name. then when it asks for your password, it is your users password, not roots.
_________________
Gentoo Powered:Reiser4|2.6 bootstrapped|NPTL|UDEV|2.6.11-nitro2+gnome
Linux registered user #366983
ravensix[at]gmail[dot]com
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20583

PostPosted: Sat Oct 16, 2004 9:39 pm    Post subject: Reply with quote

Moved from Other Things Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
neogen
Apprentice
Apprentice


Joined: 10 Oct 2004
Posts: 163

PostPosted: Sat Oct 16, 2004 9:42 pm    Post subject: Reply with quote

thankx ravensix, its working now.
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Sat Oct 16, 2004 10:33 pm    Post subject: Reply with quote

I got sick of all the typing - make an alias for it.
I set up a couple - "down" and "reboot".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum