Login
     
 
     
Articles:
List of all articles
List by categories
Search in articles
>> admin_tools
>> c
>> cli
>> database
>> debian
>> games
>> gnu
>> hardware
>> internet
>> linux
>> microsoft
>> network
>> os
>> php
>> programming
>> python
>> security
>> server
>> shell
>> text_editor
>> tools
>> web_dev
Links:
List all links
List by categories
Search in links
Online Tools:
>> gnuvd
Other Things:
Login
Admin
Pages
Blog
News
Guestbook
Contact
Sponsors:
None Yet!
Sponsor this project
That's not a valid item!!!
[ Source ]

This item is still in "Public Draft" mode. You are able to see the content but expect some errors and incomplete informations.

sudo

Created: 2007-11-28 23:19:00
Modified: 2009-05-23 11:32:00
Categories: os debian admin_tools
Keywords: sudo
Description:

This article talk about sudo.

Introduction

To change some things of sudo, you need to use the special visudo.

Give full admin rights to a user

Copy the example line of the root user and paste it just bellow. Then change the root user on that line so that it match with you're username. The final result looks like this:

# User privilege specification
root    ALL = (ALL) ALL
david   ALL = (ALL) ALL

Note: Giving a user full admin rights is really dangerous. The user will have the same rights as root! Note also that proceeding this manner to give someone full adming rights (ake root), you should proceed another way, change the uid and guid of the user to 0, such as root has.

Give some more rights to a user

toto    ALL = NOPASSWD: /sbin/shutdown, /sbin/reboot, /usr/sbin/s2disk

Or if you want to allow everyone some programs:

ALL     ALL = NOPASSWD: /sbin/shutdown, /sbin/reboot, /usr/sbin/s2disk

Sudo can type sudo shutdown and the system will shut down.

Resources

Comments leaved by users (total: 0)

No comments yet!

Add a comment

obfuscated letters
 
  • Do you know that you may use some special markup syntax to create header, italic, bold, styling and links and much more. See the sandbox for the markup language.
  • Do you need some other help?

[ Toggle on/off history ]

Item History:

268 | 2009-04-27 22:32:17 | view diff
No revision comment
269 | 2009-04-27 22:35:50 | view diff
No revision comment
270 | 2009-04-27 22:36:32 | view diff
No revision comment
271 | 2009-04-27 22:37:53 | view diff
No revision comment
272 | 2009-04-27 22:38:46 | view diff
No revision comment
340 | 2009-05-23 11:33:24 | view diff
No revision comment

Login:
User Name
Password

Last Articles
python stuff concerning python
2009-07-22 12:00:00
vim
2009-06-06 23:53:00
fluxbox
2009-05-23 12:42:00
setting up a toshiba satellite a110-178
2009-05-21 15:35:00
create a secure virtual private network with openvpn
2009-04-25 13:34:00
>>> Read more...

Last News
Released pyguicms 1.0.0-beta1
2008-06-02 21:20:00
guicms replaced by pyguicms
2008-04-27 17:39:00
pyguicms up and running and online
2007-11-29 22:31:00
>>> Read more...

Last Links
mxtoolbox
2009-09-25 17:54:00
minibikeshop
2009-09-05 12:43:00
magicbike
2009-09-05 12:40:00
systranet
2009-07-22 11:42:00
transfer big files
2009-07-22 11:42:00
>>> Read more...

Last Pages
sandbox
2008-09-07 22:30:00
about
2008-09-07 22:29:00
help
2008-09-07 22:25:00
welcome page
2008-09-07 18:27:00
python stuff to check
2007-12-03 00:16:00
>>> Read more...