Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-17-2004, 05:24 PM   #1
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Rep: Reputation: 15
How do I give mounting permissions?

I have a new Iomega ZIP 100 USB drive, and for some reason, only the administrator can access it or mount it. And even then, I need to use GTKzip.

I think what I need to do for others to access it is to give mounting permissions to all useres (because whenever I try to do it outside of root it gives me a permissions error).

What I suppose I'm trying to ask do I set read/write/execute permissions to directories, mounting and devices? (I know I should already know this, but...I haven't had alot of time to learn Linux lately)
Old 04-17-2004, 06:07 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
According to man mount

(iii) Normally, only the superuser can mount file systems. However,
when fstab contains the user option on a line, then anybody can mount
the corresponding system.

Thus, given a line
/dev/cdrom /cd iso9660 ro,user,noauto,unhide
any user can mount the iso9660 file system found on his CDROM using the
mount /dev/cdrom
mount /cd
For more details, see fstab(5). Only the user that mounted a filesys-
tem can unmount it again. If any user should be able to unmount, then
use users instead of user in the fstab line. The owner option is simi-
lar to the user option, with the restriction that the user must be the
owner of the special file. This may be useful e.g. for /dev/fd if a
login script makes the console user owner of this device.
Old 04-17-2004, 07:17 PM   #3
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Further than that, if you use the users option (ie the plural of user) then it won't matter which user mounted it, any other user can umount it.

You may also want to look into setting the UID or MASK for the filesystem.
Old 04-20-2004, 09:05 PM   #4
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Original Poster
Rep: Reputation: 15
I added this line to the end of fstab:

/dev/sda /media/zip0 auto ro,noauto,user,exec 0 0

And, like magic, everything suddenly recognized /media/zip0 exactly the way I wanted them to.
However, everytime I try and access zip0 the zip drive makes some noise, but all I get is an error saying it doesn't know what the filesystem for the zip disk is.

First, where do I specify the filesystem for a device (as in, what part of the fsab entry), and
Second, what is the filesystem for a zip drive?

Forgot to mention...

There is a line in fstab that looks like it has to do with a usb device.

usbdevfs /proc/bus/usb usbdevfs noauto 0 0

Is this important for the zip drive?

Last edited by TheMusicGuy; 04-20-2004 at 09:08 PM.
Old 04-20-2004, 09:16 PM   #5
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Original Poster
Rep: Reputation: 15
Nevermind, I found the answer in another thread...

Thanks everybody!


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
How to give permissions for users....... manikantha Linux - General 1 03-17-2005 04:27 AM
give users permissions to write dragosp Linux - Security 2 09-12-2004 06:53 AM
Not able to give execute permissions needanyhelp? Linux - General 4 08-20-2004 05:19 AM
How do i give permissions on ftp server? Soujiro Linux - Software 1 04-22-2004 11:27 PM
Is there a simple way to give all permissions frontier1 Linux - General 3 02-28-2003 08:55 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:11 PM.

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