title: How to block USB storage devices in user space of Linux operating system programatically
body: <p>I have to develop functionality wherein, when USB storage device is connected to Linux machine, my password window will popup. And if user enters the password correctly, device will be proceeded for mounting. If password is wrong device should not be accessible to user. It's like endpoint protection for Linux operating systems.</p>
  
  <p>How can we achieve this in Linux user space only?</p>
  
  <p>Here I don't want to go for kernel mode programming as it is very much time consuming and involves issues related to distribution wide compatibility.</p>
  
  <p>Also the solution should be generic to all kernel versions and Linux distributions.</p>
  
  <p>Thanks in advance.</p>