LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo and denying to system log. (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-and-denying-to-system-log-452652/)

binary_0011 06-08-2006 12:54 AM

sudo and denying to system log.
 
i want to allow andrew to execute all commands so i added this to the sudoers file

andrew all=(all) all


but i also want to prevent andrew from editing the system log. wat is the easiest way?

will be appreciate if the method work for sun os.


thanks.

J.W. 06-08-2006 01:40 AM

Quote:

Originally Posted by binary_0011
i want to allow andrew to execute all commands .... but i also want to prevent andrew from editing the system log

You can't have both, sorry.

No offense but allowing regular users to "execute all commands" is a very poor idea, because it's a lot easier than you might think to accidentally hose up your system to the point that it cannot be recovered. Bottom line, if you want to allow andrew to run all commands, you might as well tell him to log in as root and give him the root password.

Again, it's a poor idea. Keep root and the regular users separated.


All times are GMT -5. The time now is 07:59 PM.