Hi all guys.
I'm having this problem. I've several external usb hd with ext4 fs
I'm trying to automatic mount it using the udev rules
The problem is on the permission: need the rw for also for the normal users and not only for root.
Now, i've read many articles on the web, but still can not solve the problem.
First i've tried with umask, but then i understand that it doesnt work with ext fs
Then the only things that seems working around the web is to chown the mountpoint, but that means i've to run the chown command inside the rules, because everytime the usb is disconnected the directory is deleted:
$this->bbcode_second_pass_code('', '# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
')
Also the rw permission need to be active for the whole group of four users
There's any other method to do that?
Any idea
