[sudo-users] sudo using bash scripts

Manjunatha, Jamuna Jamuna.Manjunatha at ironmountain.com
Mon Feb 9 11:05:35 EST 2009


Hi,

 

I have set up a sudo such that I have disabled “bash” for all the users,

So that every activity gets logged in /var/log/messages.

 

Now a user with sudo access has some bash scripts that require “bash” to run the scripts.

 

I can give him ONLY that access by modifying the /etc/sudoers file

But then what ever he does after typing “sudo bash” DOES NOT Get logged

 

Can I still give him “sudo bash” access & still be able to login all his activity after he becomes “sudo bash”??

 

OR

 

How do I go about modifying the bash script?? so every activity gets logged??

 

Any help would be greatly appreciated.

 

 

You guys have been very helpful..

 

Thanks a bunch!!

 

Jamuna

 


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