Trigger mail on rpm installation event
-
- Posts: 4
- Joined: 2017/09/25 02:59:35
Trigger mail on rpm installation event
Hi All,
Kindly help me with below query.
I want to create script for triggering email on rpm installation by any user.
If any user install rpm on CentOs machine then system should generate email containing username, rpm package and when it installed.
Kindly help me with below query.
I want to create script for triggering email on rpm installation by any user.
If any user install rpm on CentOs machine then system should generate email containing username, rpm package and when it installed.
Re: Trigger mail on rpm installation event
Your user would need root access to install surely?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 4
- Joined: 2017/09/25 02:59:35
Re: Trigger mail on rpm installation event
Thanks for reply.
I know that, if any user having sudo permission then user can install RPM Package.
I just want track all activity related to installation of any RPM package with using script.
I know that, if any user having sudo permission then user can install RPM Package.
I just want track all activity related to installation of any RPM package with using script.
Re: Trigger mail on rpm installation event
If you run logwatch you will get all sudo activity reported.
Re: Trigger mail on rpm installation event
The best way to do this is not to let them sudo anything. If you have specific commands that you want to allow them to execute, set up sudo to let them run that. Don't let them run anything.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 4
- Joined: 2017/09/25 02:59:35
Re: Trigger mail on rpm installation event
The users are linux administrator and they having root access. so to keep the track of package installation related activity without knowing them.
Guys please help
Guys please help
-
- Posts: 4
- Joined: 2017/09/25 02:59:35
Re: Trigger mail on rpm installation event
Guys please help
-
- Posts: 519
- Joined: 2012/06/26 14:20:47
Re: Trigger mail on rpm installation event
Is there some reason MartinR's suggestion of logwatch won't work for you?