LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Unable to write to a automounted USB drive by a normal user. (https://www.linuxquestions.org/questions/linux-general-1/unable-to-write-to-a-automounted-usb-drive-by-a-normal-user-758133/)

vsumanth10 09-27-2009 06:47 PM

Unable to write to a automounted USB drive by a normal user.
 
Hi,

I have this requirement of automounting USB drives in RHEL 5.2 64 bit machine whenever a normal user plugs in and be able to write to it. I have been able to satisfy the below requirements except the 1st and the 5th one with the default rule set which comes along with udev - 50-udev.rules. The USB automounts in read only mode and only root have write permissions to it. By default, the USB's are always mounted to /media/disk. I even went through the udev man pages and several forms but couldn't find a solution. Any help over this is highly appreciated.

1. must mount the usb drive and be writable by the console user
2. must not be writable be non-console users. (preferably not readable, either).
3. Must open a window when the drive is inserted and the drive should appear on the gnome desktop.
4. Must allow the user to umount the drive by right-clicking the drive icon on the desktop.
5. Optionally, it should mount the drive using the name of the drive as shown in the drive properties dialog on Windows.



Regards,
Sumanth

bigrigdriver 09-27-2009 07:15 PM

I'm not certain, but I think your udev rule needs MODE="0660" to give root and users read-write access.

vsumanth10 09-27-2009 11:32 PM

I have given MODE="0664" in udev rules.. Still the users are unable to write.


All times are GMT -5. The time now is 08:25 PM.