Dear Friends
I am working on a script which enables and Disables the USB ports for mass storage devices. when it is need to disable I make entry /etc/modprobe.d/blacklist.conf blaclist usb_storage and when it is required to enable back i comment is this line by my script. And also i rename the module usb-storage.ko as per enable/disable.
This method is working fine for me. and my scripts results the desire (please avoid the typing mistakes).
Now I want ...?
Problem No. 1
suppose there are five standard users in my system (like abc , def, ghi, jkl, mno etc.) and as a administrator I have to enable the USB storage on for one particular user for example from five users only user abc should be able to use the USB storage devices in system rest all user should not. How can I do this ? does any third party tool or software is required for this job if yes the what ? if not then how can I do this ?
Problem No 2
when my user abc usages the USB stick in system, Script has to capture the hash and file name of all the data which has been copied/moved in to the system or copied/moved from the system to USB devices. and this script should be activated only when a USB device is plugged in. by any method.
Please help me as soon as possible ........... I will be glade ful to you
I am working on a script which enables and Disables the USB ports for mass storage devices. when it is need to disable I make entry /etc/modprobe.d/blacklist.conf blaclist usb_storage and when it is required to enable back i comment is this line by my script. And also i rename the module usb-storage.ko as per enable/disable.
This method is working fine for me. and my scripts results the desire (please avoid the typing mistakes).
Now I want ...?
Problem No. 1
suppose there are five standard users in my system (like abc , def, ghi, jkl, mno etc.) and as a administrator I have to enable the USB storage on for one particular user for example from five users only user abc should be able to use the USB storage devices in system rest all user should not. How can I do this ? does any third party tool or software is required for this job if yes the what ? if not then how can I do this ?
Problem No 2
when my user abc usages the USB stick in system, Script has to capture the hash and file name of all the data which has been copied/moved in to the system or copied/moved from the system to USB devices. and this script should be activated only when a USB device is plugged in. by any method.
Please help me as soon as possible ........... I will be glade ful to you
Comment