El mié, 20-08-2008 a las 00:59 +0100, Sam Kuper escribió: > Dear list, > > I want my server to send me an email every time the su command is run. > Ideally, I would also like the email to tell me whether the command > was run successfully or not. I do not want to modify su itself, and it > is important to me that whatever changes I make will survive apt-get > upgrade commands without requiring intervention. What is the best way > to do this? If there are several good ways you can think of, please > could you list them all and, ideally, also give their advantages and > disadvantages. > > Many thanks indeed, > > Sam > > PS. I'm still pretty new to system administration, so forgive me if > I've missed something obvious.
Well, it sound like you [think you] need to give root access for someone to do something, and push it forward by not trusting her. You shouldn't give root access to someone you don't trust. Better yet, you shouldn't give root access to anyone. Considering that, sudo might be what you're looking for: http://www.gratisoft.us/sudo/intro.html man sudo man sudoers man visudo > -- Gabriel Parrondo GNU/Linux User #404138 GnuPG Public Key ID: BED7BF43 JID: [EMAIL PROTECTED] "The only difference between theory and practice is that, in theory, there's no difference between theory and practice."
signature.asc
Description: Esta parte del mensaje está firmada digitalmente