You are not logged in.
Pages: 1
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
user or users option in fstab should help. Note, that there's a slight difference between those two (man mount).
Offline
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
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
Try 'mount /dev/cdroms/cdrom0' alone, without specyfing mount point ;-)
Offline
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
thanks! mounting without the targer dir works
Offline
Does the directory /mnt/cd exist and does the user have access rights?
I have nothing to say, and I am saying it.
Offline
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
Pages: 1