[sudo-users] sudo help with logging option enabled....
Jamuna.Manjunatha at ironmountain.com
Wed Jan 21 14:25:35 EST 2009
I did exactly what you mentioned.
I added a file called "sudonote" under /etc
& chmod 777 sudonote
Then added an entry like this /etc/sudoers file:
But it says syntax is wrong!!!
What should I do??
Please please help..
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
Cmnd_Alias VI = /usr/bin/vi
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
#%OPS ALL=(ALL) NOPASSWD: ALL
%OPS ALL=(ALL) ALL
Cmnd_Alias sudonote = /etc/sudonote
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
# Following entries were added by HP Insight Management Agents at
# Fri Jan 9 21:07:14 UTC 2009
# ---------------------- END -------------
The information contained in this email message and its attachments
only for the private and confidential use of the recipient(s) named
above, unless the sender expressly agrees otherwise. Transmission
of email over the Internet
is not a secure communications medium. If you are requesting or
the transmittal of personal data, as defined in applicable privacy
laws by means
of email or in an attachment to email you must select a more
secure alternate means of transmittal that supports your
obligations to protect such personal data. If the reader of this
message is not the intended recipient and/or you have received this
email in error, you must take no action based on the information in
this email and you are hereby notified that any dissemination,
misuse, copying, or disclosure of this communication is strictly
prohibited. If you have received
this communication in error, please notify us immediately by email
and delete the original message.
More information about the sudo-users