I found this from another site a while back:
New user often gets confused with Linux security permissions. Simple mounting of a USB flash drive as a normal user (non-root) can be hard task.
Truth:
The mount command can be issued only as the root user.
Solution:
Give permission to normal user to mount a USB pen or flash drive.
#1: Create a directory #2: Find out USB drive name Output of fdisk -l command: Quote:
Disk /dev/hdb: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2432 19535008+ 83 Linux
/dev/hdb2 2433 2554 979965 82 Linux swap / Solaris
/dev/hdb3 2555 6202 29302560 83 Linux
/dev/hdb4 6203 9733 28362757+ 5 Extended
/dev/hdb5 6203 9733 28362726 83 Linux
Disk /dev/sda: 256 MB, 256901120 bytes
8 heads, 62 sectors/track, 1011 cylinders
Units = cylinders of 496 * 512 = 253952 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 1011 250697 b W95 FAT32
| In the above output, /dev/sda1 is my flash drive.
#3: Open /etc/fstab file
Append following line: Code: /dev/sda1 /mnt/usbdrv auto noauto,user,rw,exec 0 0
#4: Save the file and login as the normal user:
Last edited by devils casper; 05-07-2007 at 08:21 PM..
Reason: added 'code' tags.
|