Can't get access to USB drives as normal user
Q I have a couple of pen drives for transferring files between my Windows laptop and my Mandrake 10.1 PC. I can get read access to the pen drive as user but whatever I do, I cannot get write access to the removable drive as a user, only as root. I cannot change the group to my sharing group or my user, and owner remains as root. Even logged in as root I am told that I do not have enough permissions to change the group/ownership of mnt/removeable. When I change permissions it is still inaccessible when I return to user and ownership is returned to root. I have also been unable to transfer it to a sharing group. I have tried running the partitioner and allowing write access to all users but this also fails. I understand that if I install SUSE 9.2 I will get full read/write access but is there a less dramatic answer?
A You can allow users to mount and write to devices by modifying the /etc/fstab file. A typical fstab entry that permits user mounting of files is:
/dev/sdb1 /mnt/usb-key ext3 defaults,user 0 0
The user option allows the device to be mounted by a non-root user, who can then write data to the USB device. Remember to umount the device before unplugging it from the machine, otherwise you risk potential data corruption due to files not being written completely.
Related solutions
- User account in Ubuntu being refused sudo access
- Can't access Windows hard drives in Mandriva
- Allow normal user accounts to install packages
- Block Apache access from malicious user agents and spiders
- Default permissions for sg0 won't let me access it



Copyright 2012 Future Publishing Limited (company
registered number 2008885), a company registered
in England and Wales whose registered office is at
Beauford Court, 30 Monmouth Street, Bath, BA1 2BW, UK