This is a discussion on [newbie] mounting an ext2fs dvd-ram as a user within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi everyone! I have an dvd-ram disk I occasionally append some data to. It is formatted as ext2fs. In ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi everyone! I have an dvd-ram disk I occasionally append some data to. It is formatted as ext2fs. In my /etc/fstab, the relevant line reads /dev/cdrom /mnt/cdrom auto noauto,users,rw,noatime 0 0 The mount point and device files look like: # ls -l /dev/cdrom lrwxrwxrwx 1 root root 8 2006-04-08 22:19 /dev/cdrom -> /dev/sr0 $ ls -ld /mnt/cdrom /dev/sr0 brw-rw---- 1 root cdrom 11, 0 1999-04-13 00:24 /dev/sr0 drwxrwxr-x 2 root cdrom 48 2006-06-12 23:56 /mnt/cdrom $ groups wheel disk audio video cdrom scanner users floppy I would like to be able to modify files on the filesystem residing on /mnt/dvdram using my regular, non-root account. Is this possible? The moment I mount the dvd from my regular account, the permissions to /mnt/cdrom get changed: $ mount /mnt/cdrom $ mount [...] /dev/sr0 on /mnt/cdrom type ext2 (rw,noexec,nosuid,nodev,noatime) $ ls -ld /mnt/cdrom drwxr-xr-x 3 root root 2048 2006-10-31 17:39 /mnt/cdrom $ touch /mnt/cdrom/a touch: cannot touch `/mnt/cdrom/a': Permission denied Logged in as root, I can create/remove files from /mnt/cdrom without any problems. So the problem must have something to do with permissions, is that right? Thank you in advance for any help! Juergen |
| |||
| lemke_juergen@yahoo.de wrote: > I would like to be able to modify files on the filesystem residing on > /mnt/dvdram using my regular, non-root account. Is this possible? The > moment I mount the dvd from my regular account, the permissions to > /mnt/cdrom get changed: I've never done this with a DVD-RAM, but with ordinary disks, you would need to change the permission and/or ownership of the disk's "root" directory (/mnt/cdrom/. in this case) after it has been mounted. Might be worth trying. -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems and Network analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ---------------------------------------------------------------------- |
| ||||
| Thank you, Sylvain, that did the trick. Juergen On Oct 31, 6:40 pm, Sylvain Robitaille <s...@alcor.concordia.ca> wrote: > lemke_juer...@yahoo.de wrote: > > I would like to be able to modify files on the filesystem residing on > > /mnt/dvdram using my regular, non-root account. Is this possible? The > > moment I mount the dvd from my regular account, the permissions to > > /mnt/cdrom get changed:I've never done this with a DVD-RAM, but with ordinary disks, you would > need to change the permission and/or ownership of the disk's "root" > directory (/mnt/cdrom/. in this case) after it has been mounted. Might > be worth trying. > > -- > ---------------------------------------------------------------------- > Sylvain Robitaille s...@alcor.concordia.ca > > Systems and Network analyst Concordia University > Instructional & Information Technology Montreal, Quebec, Canada > ---------------------------------------------------------------------- |