LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-13-2005, 09:31 PM   #1
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Rep: Reputation: 30
Allowing anyone to mount /mnt/cdrom


When trying
Code:
 mount /mnt/cdrom
I get:
Quote:
mount: only root can mount /dev/cdrom on /mnt/cdrom
.

My /etc/fstab looks like:

Quote:
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
Which is how the default installation made it.

Will removing the "owner" tag allow anyone to mount this device at this mount point?

Edit: root can use mount /mnt/cdrom obviously.
 
Old 06-13-2005, 09:45 PM   #2
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Related: Mount permissions

This is my /etc/fstab:
Quote:
/dev/hda3 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda4 /transfer vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/hda4 is the partition I use to transfer files between my Slackware 9.1 OS and my Win XP Pro OS. (Apparently Linux, maybe just Slack, has problems writing to NTFS.) Root can access /transfer and add files to the directory or take files from it. However, no one else can. I try to chmod /transfer, to no avail. I assume this is because /transfer is a link, and link's permissions are not used. /dev/hda4 is a special block device link as well though. So how do I change permissions for this situation?
 
Old 06-14-2005, 12:15 AM   #3
Sledge
Member
 
Registered: Nov 2003
Distribution: Fedora Core 6
Posts: 76

Rep: Reputation: 15
Add the 'users' option to the line in your fstab.
 
Old 06-14-2005, 03:04 AM   #4
mohit dhawan
Member
 
Registered: Mar 2005
Posts: 92

Rep: Reputation: 15
and also add umask=0000
 
Old 06-14-2005, 09:14 PM   #5
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
/dev/hda4 /transfer vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0

should be:

/dev/hda4 /transfer vfat defaults,users 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,users,ro 0 0

??

Also, I have no idea where umask=000 would go. Sorry.
 
Old 06-15-2005, 12:06 AM   #6
mohit dhawan
Member
 
Registered: Mar 2005
Posts: 92

Rep: Reputation: 15
/dev/hdd /mnt/cdrom auto pamconsole,fscontext=system_ubject_r:removable_t,exec,noauto,managed 0 0
this is how my fstab looks

also see the permisiiion of the /mnt/cdrom directory
 
Old 06-15-2005, 09:29 PM   #7
gdivens51
Member
 
Registered: Aug 2003
Location: Asheville,NC
Distribution: Vector
Posts: 58

Rep: Reputation: 15
mine doesn't have users but user

# /etc/fstab: static file system information.
#
# <device> <mount point> <type> <options> <dump> <pass>
/dev/hda1 / reiserfs defaults 0 1
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat user,noauto 0 0
/dev/hdc /cdrom iso9660 user,noauto,ro 0 0
/dev/fd0 /mnt/floppy vfat user,noauto 0 0
/dev/hdc /mnt/cdrom iso9660 user,noauto,ro 0 0
 
  


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 point /mnt/cdrom does not exist. njbrain Linux - General 4 02-13-2007 07:01 PM
what are other mount options for vcd for /mnt/cdrom? sirpelidor Linux - General 4 12-04-2003 03:25 PM
/mnt/cdrom & /mnt/scd0 locks up machine RIgimp75 Mandriva 7 09-01-2003 09:32 PM
How to release /dev/cdorm or mount point (/mnt/cdrom) after doing this : norman68 Linux - Software 3 07-02-2003 06:07 PM
How to release /dev/cdorm or mount point (/mnt/cdrom) after doing this : norman68 Linux - General 1 07-02-2003 12:14 PM

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

All times are GMT -5. The time now is 10:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration