Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-29-2003, 02:42 PM   #1
Registered: Jan 2003
Location: Ohio, USA
Distribution: RH 9.0 / Fedora Core 3
Posts: 58

Rep: Reputation: 15
Mounting Permissions

I've set the mounting permissions in my fstab to 'user' and also configured it to automount my card reader.

When I log on as a regular user, the card reader does mount automatically, and I can mount and unmount it using the disk management/user mount tool with no problem; however, when I try to mount the card reader from a terminal window I get the message that I have to be root to mount it. Likewise, if I mount it from the disk management/user mount tool and then try to umount from the shell, I get an error message.

I'm sure I could have explained this better ... but does anyone have any ideas why this would be happening?

My fstab line is like so:

dev/sda1 /mnt/card auto auto,user 0 0

I need it to work from the shell because I'm trying to get the card mounting/umount to work from a shell script. (R.H. 8.0)

Old 09-29-2003, 06:58 PM   #2
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
what happens when you use 'users' instead of 'user'? With the user option only the user who mounted can unmount it and I think when it mounts automatically, it gets treated as mounted by root. Another think to try is to use 'noauto' instead of 'auto' as an option.
Old 09-30-2003, 05:22 AM   #3
Registered: Jan 2003
Location: Ohio, USA
Distribution: RH 9.0 / Fedora Core 3
Posts: 58

Original Poster
Rep: Reputation: 15
That did it! Thanks....

I changed my fstab to

dev/sda1 /mnt/card auto users,auto 0 0

and that took care of it. I didn't try 'users' the first time because man fstab only mentioned the 'user' option ... man mount had more detail about the other options ...

Thanks for your time....



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
mounting and permissions kronchev Linux - Software 2 03-26-2005 05:28 AM
Mounting Permissions canuck_barlow Linux - Newbie 11 03-16-2005 10:33 PM
Mounting and Permissions ngreimel Linux - Newbie 3 08-10-2004 05:26 PM
Mounting /dev permissions??? footprint Linux - Software 1 09-20-2002 05:01 PM
Mounting permissions loganwva Linux - Networking 2 04-25-2002 05:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:19 AM.

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