Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-08-2006, 01:54 AM   #1
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Rep: Reputation: 15
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.

Old 06-08-2006, 02:40 AM   #2
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
How do I log into file browser with sudo? Fasn8n Ubuntu 2 03-03-2006 03:51 PM
How to Log everything command in a root-shell started by SUDO dussel Linux - Security 13 02-21-2006 10:47 AM
Gnome system tools and sudo ahh Linux - Software 0 07-04-2005 09:47 AM
When does sudo.log archive itself? mmboam Linux - General 1 04-24-2001 01:40 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration