- sudo apt-get install pmount
- Add a file automount.rules in /etc/udev/rules.d with these lines
- ACTION=="add",KERNEL=="sda*", RUN+="/usr/bin/pmount --sync --umask 000 %k"
- ACTION=="remove", KERNEL=="sda*", RUN+="/usr/bin/pumount %k"
- Then run this:
- udevadm control --reload-rules
a guest Jul 12th, 2015 152 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data