LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2007, 01:25 AM   #1
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Rep: Reputation: 0
USB Drive permission problem


I'm using the Debian distro. As of right now, whenever I insert a USB flash drive int the USB port, it get automatically mounted, and creates a new folder for it in the /media folder. The problem I'm having, is that the only person that has permission to access the drive once it's mounted, is the original account that I set up when I install Debian. I've tried to manually change it with "chmod", but it doesn't have an effect. I've also tried to add an entry in fstab to make it mount it with proper permissions, but it doesn't have an effect either. Here is the line that I added (which I pretty much copied straight from http://www.linuxquestions.org/questi...ions-330584/):

/dev/usb /media/flash auto users,umask=1000,rw,noauto 0 0

does anyone know how to fix this so that other users can insert their drives and use them like normal?

Last edited by jacobdm; 10-12-2007 at 01:28 AM. Reason: adding a reference
 
Old 10-12-2007, 01:39 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
man mount

try:

/dev/usb /media/flash auto user,umask=0000,rw,noauto 0 0

however, have you tried unmounting it and then manually mounting?
 
Old 10-12-2007, 02:10 AM   #3
jacobdm
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
After reading the manual, I tried typing "mount" to figure out what was going on, and I noticed that the usb drive was mounting as "dev/sdb1" so I changed the fstab line to the following and it works.

/dev/sdb1 /media/flash auto user,umask=0000,rw,noauto 0 0

As a note, I never did figure out how to manually unmount or mount it unless it is already correctly in the fstab file so that I could use "mount /dev/sdb1".
 
Old 10-12-2007, 02:51 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
well done.

The full mount command
# mount -t ext3 /dev/sdb1 /media/flash -o rw

/dev/sdb1 is the block-special device created for it by the udev system. It'll keep showing up there. With the mount command, you can specify the device and the mount-point.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB permission problem / Gphoto2 rutgerw Linux - Software 3 06-01-2006 10:47 AM
Installed USB 512MB flash drive(Permission Problem) Balarabay1 SUSE / openSUSE 17 04-12-2006 08:06 AM
Permission issues after installing external USB disk drive Maarten_Holland Linux - Newbie 2 02-01-2006 09:27 AM
Samba permission problem with NTFS drive g3m1n12281 Linux - Software 2 11-04-2005 09:00 AM
USB drive permission zakidad Linux - Newbie 9 06-19-2005 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration