Help answer threads with 0 replies.
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 05-16-2008, 12:45 AM   #1
LQ Newbie
Registered: May 2008
Posts: 16

Rep: Reputation: 0
Help with sudoers and sudolog

I added a user to the sudoers file. I understand I can add another log default to track every command run with the following command, but get 'command not found'

[username@hostname ~]$ Defaults logfile=/var/log/sudolog
-bash: Defaults: command not found

Thank you
Old 05-16-2008, 01:22 AM   #2
Registered: Sep 2007
Location: Shetland, UK
Distribution: Slackware, Mandrake, LFS
Posts: 59

Rep: Reputation: 16

Did you enter this command on a line in the sudoers file. This is where it should be.


Old 05-16-2008, 01:37 AM   #3
LQ Newbie
Registered: Jan 2008
Location: noida
Distribution: archlinux, slackware
Posts: 21

Rep: Reputation: 15
hey, the line you typed is not a command. This line should be present in the sudoers file.
To view the contents of the log file, use a pager: less /var/log/sudolog
Old 05-16-2008, 08:44 AM   #4
LQ Newbie
Registered: May 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you. I added the line to the sudoers file. Now when I try to see the log file I get

[username@hostname ~]$ /var/log/sudolog
-bash: /var/log/sudolog: No such file or directory

Two additional questions, 1\ how do I make sure the password the user is asked for when running a root command is his own and not the root password and 2\ does the line:

## Delegating permissions
Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp

in the sudoers file allow sudoers to modify the file through visudo? In that case, how do I change this permission for certain users not to be able to modify the sudoers file?

Thank you.


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
sudoers texerasmo Linux - General 3 08-04-2006 10:57 AM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 06:03 PM
Regarding SUDOERS hinetvenkat Linux - Networking 1 09-02-2005 02:47 PM
sudoers???? yenonn Slackware 6 02-10-2004 04:09 AM
Sudoers Fonke0412 Linux - Newbie 3 08-10-2003 04:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 AM.

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