Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: I don't want sudo on my system., Angel.< Next Oldest | Next Newest >
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: June 09 2005,14:58 QUOTE

Just to expand on my earlier answer the default sudoers' file looks like this

Code Sample
# sudoers file.




root    ALL=(ALL) ALL

knoppix ALL=NOPASSWD: ALL
dsl ALL=NOPASSWD: ALL


This means dsl can run anything using sudo with no password. You could change it to something like this:

Code Sample
# sudoers file.

Cmnd_Alias      SHUTDOWN = /usr/sbin/shutdown
Cmnd_Alias      HALT = /usr/sbin/halt
Cmnd_Alias      REBOOT = /usr/sbin/reboot

root    ALL=(ALL) ALL
dsl ALL=NOPASSWD: SHUTDOWN,HALT,REBOOT


This allows dsl to use sudo to shutdown/reboot without a password but restricts any other commands.

If you want to know more about the sudoers file try the sudoers' manual
Back to top
Profile PM 
5 replies since June 08 2005,13:42 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: I don't want sudo on my system.

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code