LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-08-2006, 01:54 AM   #1
binary_0011
Member
 
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.


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

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


Reply


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


All times are GMT -5. The time now is 10:23 AM.

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