LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-01-2005, 08:29 AM   #1
ricardo_ok
Member
 
Registered: Jan 2004
Location: Oklahoma, USA
Distribution: Slackware! Of Course!!
Posts: 78

Rep: Reputation: 15
giving users permission to mount a CD


I'm having problems giving my users the ability to mount /dev/cdrom to /mnt/cdrom. when I try to mount a cd as a user other than root I egt an error message that says only root can mount /dev/cdrom to /mnt/cdrom.
 
Old 11-01-2005, 08:37 AM   #2
herbc
Member
 
Registered: May 2004
Location: United States
Distribution: Slackware 10.0
Posts: 72

Rep: Reputation: 15
My /dev/cdrom line in /etc/fstab looks like this

/dev/cdrom /mnt/cdrom iso9660 noauto,unhide,user,exec,ro 0 0

Users mount and umount just fine. Do you have 'user' among your mount options?
 
Old 11-01-2005, 08:40 AM   #3
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Rep: Reputation: 16
man mount:

(iii) Normally, only the superuser can mount file systems. How-
ever, when fstab contains the user option on a line, 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 command
mount /dev/cdrom
or
mount /cd
For more details, see fstab(5)
 
Old 11-01-2005, 08:42 AM   #4
ricardo_ok
Member
 
Registered: Jan 2004
Location: Oklahoma, USA
Distribution: Slackware! Of Course!!
Posts: 78

Original Poster
Rep: Reputation: 15
I do now. that was oe things I han't thought to check. I just finished installing a couple days ago and it has been probably two years since I have had a working computer that had Slack on it(much less any other linux), and I had forgotten the options in the fstab file from my unix days back in the army. Well, thanks so very much!!
 
Old 11-03-2005, 12:58 PM   #5
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
To add a clarification to the use of user in the fstab is this quote from the mount man page.

Quote:
Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount, then use users instead of user in the fstab line.
Dennisk
 
  


Reply



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
giving users and group permission on proftp kafnir Linux - Networking 1 06-07-2004 08:38 AM
Giving permission to /backup partition Micro420 Linux - Newbie 2 03-22-2004 06:08 PM
giving normal users mount capabilites J.Q. Monkey Linux - Security 4 02-11-2004 10:53 AM
giving a user poweroff permission Goatdemon Slackware 7 07-19-2003 06:21 AM
giving users permission to mount dai Linux - General 2 08-02-2002 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:32 PM.

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