You are not logged in.

#1 2005-03-26 21:21:17

cuallito
Member
Registered: 2005-03-26
Posts: 21

Mouning CD without su to root?

I have a bunch of archival CDs, which I use often, is there anyway I can mount/umount without having to swich back and forth to root?

Offline

#2 2005-03-26 21:22:54

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Mouning CD without su to root?

user or users option in fstab should help. Note, that there's a slight difference between those two (man mount).

Offline

#3 2005-03-26 21:24:02

smith
Member
From: Crescent City, CA
Registered: 2005-02-19
Posts: 77

Re: Mouning CD without su to root?

Do you have user as an option for your cdrom device in /etc/fstab?  If so, then anyone who is in the user group can mount the device.


I have nothing to say, and I am saying it.

Offline

#4 2005-03-26 22:05:31

cuallito
Member
Registered: 2005-03-26
Posts: 21

Re: Mouning CD without su to root?

my fstab:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0
tmpfs                  /tmp          tmpfs     defaults            0      0

/dev/cdroms/cdrom0     /mnt/cd   iso9660   ro,users,noauto,unhide   0      0
/dev/cdroms/cdrom0     /mnt/dvd  udf       ro,users,noauto,unhide   0      0
/dev/floppy/0          /mnt/fl   vfat      users,noauto             0      0

/dev/discs/disc0/part2 swap swap defaults 0 0
/dev/discs/disc0/part3 / reiserfs defaults 0 0
/dev/discs/disc0/part1 /boot ext3 defaults 0 1
/dev/discs/disc0/part4 /win ntfs defaults 0 0

fox is my normal user

[fox@myhost ~]$ mount /dev/cdroms/cdrom0 /mnt/cd
mount: only root can do that

fox is in the "users" group

[fox@myhost ~]$ cat /etc/group
root::0:root
bin::1:root,bin,daemon,fox
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:fox
disk::6:root,fox
lp::7:daemon,fox
mem::8:fox
kmem::9:fox
wheel::10:root,fox
ftp::11:fox
mail::12:fox
smmsp::25:fox
audio::92:fox
optical::93:fox
nobody::99:fox
users::100:fox
slocate:x:21:fox

so howcome I can't mount as fox?

Offline

#5 2005-03-26 22:19:20

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Mouning CD without su to root?

Try 'mount /dev/cdroms/cdrom0' alone, without specyfing mount point ;-)

Offline

#6 2005-03-26 22:24:23

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: Mouning CD without su to root?

did you fix your network? if you did, please post that in that thread so people know if the problem is solved or not,

and for mounting as user you can try this:

# chmod 4755 /bin/mount

arch + gentoo + initng + python = enlisy

Offline

#7 2005-03-26 22:31:42

cuallito
Member
Registered: 2005-03-26
Posts: 21

Re: Mouning CD without su to root?

thanks! mounting without the targer dir works

Offline

#8 2005-03-26 22:35:24

smith
Member
From: Crescent City, CA
Registered: 2005-02-19
Posts: 77

Re: Mouning CD without su to root?

Does the directory /mnt/cd exist and does the user have access rights?


I have nothing to say, and I am saying it.

Offline

#9 2005-03-27 05:58:44

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Mouning CD without su to root?

You can only mount the device to the default mount point as a normal user (the one in fstab) you cannot pick the mount point.

Offline

Board footer

Powered by FluxBB