Monday, May 18, 2009

Can you sudo ?

One of the big improvements that ubuntu has over other distributions is that it disables root account by default. So every time you have to do something as root, you have to run it as sudo. This by no means is an replacement to the man page, but some things that I found useful.

1. To change sudo prefs, try visudo. Don't edit sudoers manually, as visudo makes sure that the syntax checks out before you save.
2. To change default timeout try:
Defaults:your_user_name timstamp_timeout=7200
3. Other than that the file is pretty well self documented.

No comments:

Post a Comment