[sudo-users] sudo help with logging option enabled....
Manjunatha, Jamuna
Jamuna.Manjunatha at ironmountain.com
Wed Jan 21 14:25:35 EST 2009
Hi Don,
I did exactly what you mentioned.
I added a file called "sudonote" under /etc
------------
#!/bin/false
exit 0;
------------
& 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
#
Defaults !lecture,tty_tickets,!fqdn
# 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
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
mgr-user
ALL=NOPASSWD:/sbin/shutdown,/usr/bin/sv,/usr/local/servermanager/clear-e
rror-state.rb
Defaults:mgr-user !syslog
#Defaults:OPS !syslog
# Following entries were added by HP Insight Management Agents at
# Fri Jan 9 21:07:14 UTC 2009
%hpsmh ALL=NOPASSWD:/etc/init.d/snmpd
%hpsmh ALL=NOPASSWD:/usr/bin/snmptrap
# ---------------------- END -------------
The information contained in this email message and its attachments
is intended
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
have requested
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
mailing list