LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-06-2003, 09:13 AM   #1
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
root can only mount/umount


snocked@slackware:~$ umount /dev/cdrom
umount: only root can unmount /dev/cdrom from /mnt/cdrom

How do I grant users the ability to mount/umount?

I already tried changing the group of /dev/cdrom to users so users could mount/umount, but that didnīt work.

Last edited by snocked; 08-06-2003 at 09:14 AM.
 
Old 08-06-2003, 09:28 AM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You need to modify the CDROM line in the /etc/fstab file.
On the line in the 4th column, there are options seperated by commas, add user.
It should look something like this:
Code:
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,user,ro 0 0
 
Old 08-06-2003, 09:28 AM   #3
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Rep: Reputation: 30
in /etc/fstab you got your cdrom line something like this
Code:
/dev/cdrom       /mnt/cdrom       iso9660     noauto,ro   0   0
edit to this
Code:
 /dev/cdrom       /mnt/cdrom       iso9660     noauto,user,ro   0   0
 
Old 08-06-2003, 09:29 AM   #4
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Rep: Reputation: 30
then you be able to mount and umount
 
Old 08-06-2003, 09:49 AM   #5
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Original Poster
Rep: Reputation: 30
thank you both
 
Old 04-22-2004, 03:32 AM   #6
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
I did this but it still doesn't work. Here is my fstab:

...
/dev/hdc /mnt/cdrom auto user,sync,ro,iocharset=iso8859-1 0 0
...

Anyone know what's missing?

Thanks,
Vince
 
Old 04-22-2004, 05:56 AM   #7
spacer
LQ Newbie
 
Registered: Apr 2004
Location: Somewhere in Space
Distribution: RedHat
Posts: 10

Rep: Reputation: 0
What error are u getting ?
Also check the permissions of the directory /mnt/cdrom
 
Old 04-22-2004, 08:14 AM   #8
silver2003
LQ Newbie
 
Registered: Apr 2004
Location: Romania
Distribution: RedHat 7.3
Posts: 28

Rep: Reputation: 15
the mount and umount are commands, you should set new permisions for those commands that are located in /bin/mount and /bin/umount.

To change the permisions you use the following command :

chmod 777 /bin/mount /bin/umount

and now every user of your machine can mount and umount.

And try to change the owner of those comands.

OR try to copy this comands from /bin/mount /bin/umount to /usr/bin.

CYA

Last edited by silver2003; 04-22-2004 at 08:21 AM.
 
Old 04-22-2004, 01:34 PM   #9
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
I don't understand, why do regular users need write permission to use mount and umount? Right now they're both set at -rwsr-xr-x (4755)

My /mnt/cdrom directory is set at drwxr-xr-x (755)

My error message was:
umount: only root can unmount /dev/hdc from /mnt/cdrom
 
Old 04-22-2004, 02:52 PM   #10
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
If root mounted it in the first place, then only root can unmount it, I believe.
 
  


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
mount and umount problem salahuddin_66 Debian 3 05-03-2005 07:49 AM
mount / umount problems d1l2w3 Linux - Hardware 6 03-14-2005 04:23 PM
mount/umount devit Linux - General 4 02-19-2004 12:37 PM
Serious mount/umount problems... Veratien Linux - Software 8 03-23-2003 05:05 PM
mount and umount wr3ck3d Linux - Newbie 4 12-14-2002 04:04 PM


All times are GMT -5. The time now is 12:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration