Forum Home
Press F1
 
Thread ID: 41315 2004-01-07 00:29:00 Autmounting or usermounting cd-rom's Chilling_Silently (228) Press F1
Post ID Timestamp Content User
205776 2004-01-07 00:29:00 Greetings,

Ive setup the family's PC running Gentoo Linux, but for the time being have a icons setup to mount/umount the cdrom using sudo.

Id rather not leave it as this...

Im wanting to get it setup so that their user (or any user, theirs is the only one on the PC) can mount/umount the cdrom.

Currently, here's my fstab line for the cdrom:
/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0

I emerged magicdev (They're running GNOME) but its not working. I tried it out on my PC earlier, and all I had to do was emerge magicdev and it worked fine?

chmod values for /dev/cdrom and /mnt/cdrom are 777

Any ideas?

Cheers


Chill.
Chilling_Silently (228)
205777 2004-01-07 02:21:00 If you want automatic detection and mounting, you can't use -t iso9660. Some CDs aren't iso9660. ;-) Use -t auto. That's probably a good idea anyway.

There was an auto CD mounter something like that installed by default in Mandrake 9. When I found it I killed it. I the computer doing things I haven't told it to do. I suppose I had to suid [b]mount buit I don't have security problems. B-)

What's emerge?
Graham L (2)
205778 2004-01-07 06:54:00 > If you want automatic detection and mounting, you
> can't use -t iso9660 . Some CDs aren't
> iso9660 . ;-) Use -t auto . That's probably a
> good idea anyway .

auto . . . Alright, I'll try that . . :-)

> There was an auto CD mounter something like that
> installed by default in Mandrake 9 . When I found it
> I killed it . I the computer doing things
> I haven't told it to do . I suppose I had to suid
> [b]mount buit I don't have security problems .
> B-)
Neither here . . . latest of all apps . . ;-) Its just they are illiterate enough, and scared enough of anything but the norm, so I'd like to make Linux as appealing as possible . Manually mounting/unmounting CD-Roms is not on their "todo" list ;-)

> What's emerge?

Portage, Its Gentoo's Package Management System (Well, Portage is, emerge is the command you execute to install an app) .

Basically it downloads the file for you, checks dependancies and downloads them too (If you allow it to - by default) and it then compiles them from source code, installs them, configures them, and removes any out-dated packages (If you are Upgrading) .

I'll try Auto . . Any other idea's if it doesnt work (PC is in use til 9pm) .

Cheers


Chill .
Chilling_Silently (228)
205779 2004-01-07 08:14:00 Sorry Graham, still telling me Ive gotta be root to mount? Chilling_Silently (228)
205780 2004-01-07 08:39:00 Possible solution that I have not tried:

1. Make a new group with all users required to mount the CD included.

2. Make the owner of the hardware device (/dev/cdrom) or whatever this group.

John
JohnD (509)
205781 2004-01-08 02:47:00 It's the mount command which is owned by root . This is for security reasons . If you are the system administartor of a multiuser OS, you don't usually want your "lusers" mounting and unmounting disks on the system box . It's different when you have one user at a time, sitting in front of the box (when, by definition, there is no security) . The "only" security problem is if you are connected to the Internet . ;-) I would say that malicious people "out there" would use more effective attacks than mounting/unmounting disks . So it's not really a problem suiding mount .

/mnt/cdrom is just like any other "system" directory . . . if it's got contents, anyone can use it . It may as well have 755 protection . No need for a group . The /dev/ nodes are special . . . they don't actually exist .

The "user" in the options might, though it shouldn't , affect the magicdev .

When I had this "magic" going, it annoyed me severely because it was interfering with my getting CD writing going . With the cdrecord using the IDE drive as an emulated-SCSI one and the system doing mounting automatically, I was finding the cdrom mounted multiple times . "umount" would come back, and the door would still not open . :_| So I shot it . And kudzu .

I always make a /cdrom directory and fix /etc/fstab appropriately . Then I can use mount /cdrom and umount /cdrom . See if the family can handle that degree of complexity . :D When playing music CDs, of course those can't be mounted . How does magicdev cope with that?
Graham L (2)
205782 2004-01-08 04:07:00 > It's the mount command which is owned by root .
> This is for security reasons . If you are the system
> administartor of a multiuser OS, you don't usually
> want your "lusers" mounting and unmounting disks on
> the system box . It's different when you have one
> user at a time, sitting in front of the box (when, by
> definition, there is no security) . The
> "only" security problem is if you are connected to
> the Internet . ;-) I would say that malicious people
> "out there" would use more effective attacks than
> mounting/unmounting disks . So it's not really a
> problem suiding mount .
The family were the biggest threat to the PC's security/wellbeing :p
At least Im not worried about the blaster Virus for the time being . . . the worst they can do is rf -rf ~/
I doubt they'll do that though . . . We're talking the family took it to heart when they lost "My Documents" for "Family's Home" . . . :p

> /mnt/cdrom is just like any other "system" directory
> . . . if it's got contents, anyone can use it . It may
> as well have 755 protection . No need for a group .
I ran chmod -R 777 /mnt
That way the NTFS HDD (Soon to become Ext3 when I get nfs setup on my Jabber server) gets R/W permissions too, although there are still limitations with the kernel writing to it . . . It does the trick .

> The /dev/ nodes are special . . . they don't actually
> exist .
Yeah, this I know, but you can still chown audio /dev/dsp, and then chmod 700 /dev/dsp to restrict access to sound (Cyberchuck was rather bummed out when he found the user I'd given him ssh access to wasnt in the audio group :p) .
Dodgy FDD like in the family's PC that doesnt always work? If the FDD throws a wobbly, the /dev/fd0 entry goes until next reboot . . . .

> The "user" in the options might, though it shouldn't
> , affect the magicdev .
This is what Im thinking, I'll try chown cdrom /dev/cdrom (After Ive made a group called 'cdrom' and put family into it of course) and see how that goes . . .

> When I had this "magic" going, it annoyed me severely
> because it was interfering with my getting CD writing
> going . With the cdrecord using the IDE drive as an
> emulated-SCSI one and the system doing mounting
> automatically, I was finding the cdrom mounted
> multiple times . "umount" would come back, and the
> door would still not open . :_| So I shot it . And
> kudzu .
Hate Kudzu . . . If its worth doing right, do it yourself . . . or something to that effect :p
Dont get me wrong, great program, but not on my system ;-)
Ive not enabled ide-scsi on my PC or the family's, gotta try and find out how to burn without ide-scsi loaded in the 2 . 6 kernel :-)

> I always make a /cdrom directory and fix
> /etc/fstab appropriately . Then I can use
> mount /cdrom and umount /cdrom . See if
> the family can handle that degree of complexity . :D
> When playing music CDs, of course those can't
> be mounted . How does magicdev cope with that?

Okay . . . I'll give that a shot when I get home and try John's idea of changing ownership :-)

. . . Only an hour to go of work :D

Thanks guys


Chill .
Chilling_Silently (228)
205783 2004-01-08 04:08:00 > > When playing music CDs, of course those
> can't
> > be mounted . How does magicdev cope with that?

Just thinking about that . . . I can rip audio CD's fine . . . Cant play them with the GNOME cd player thingy whatsit . . .

Have a few Audio-CD Players you could recommend i try?
Chilling_Silently (228)
205784 2004-01-08 10:30:00 Sorry guys, still no joy... :-(

Ive made /cdrom and changed the /etc/fstab entries to use it. Restarted X for the settings to change in magicdev in GNOME...

Still wants me to be root :-(
Chilling_Silently (228)
205785 2004-01-09 00:41:00 Try #chmod +s /bin/mount (assuming mount is in /bin ... it might be in /sbin ;-)) Graham L (2)
1 2 3