Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
24
rated 0 times [  24] [ 0]  / answers: 1 / hits: 4773  / 3 Years ago, sun, september 5, 2021, 1:42:24

We are running more than 600 Ubuntu systems in our company. It is a data centre so we have certain policies. We have disabled the usage of storage devices in all the Ubuntu systems. However we would like to configure email alerts. If someone inserts storage devices, we should get an email Alert with subject as below,



Email Alert:


STORAGE DEVICE FOUND on IP: 172.29.35.18



Note:



  • Where as for Windows system, we have certain policies applied in our DC. So there is no problem with Windows system.

  • We need to receive alerts for Ubuntu system also. Any way to accomplish the above task would be great.


Update:



  • Few things i would like to clarify, If the user disconnects the network cable and if the user uses usb for data transfer? I know that i wont get any intimations but later if they connect network is it possible to get those pending notifications??

  • Some uses usb for charging their mobile phones, is it possible get email notifications for that also??


More From » email

 Answers
0

The way to do this is to use a udev rule which will apply to all USB storage devices from any manufacturer. For the email part, note that Ubuntu Desktop does NOT include any command-line email client, so unless you wish to install one, the notification script should communicate directly via raw SMTP commands to your local mail server.


[#35358] Sunday, September 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
llael

Total Points: 209
Total Questions: 102
Total Answers: 118

Location: Rwanda
Member since Fri, May 5, 2023
1 Year ago
;