Unix Technical Forum

[newbie] mounting an ext2fs dvd-ram as a user

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 07:40 PM
lemke_juergen@yahoo.de
 
Posts: n/a
Default [newbie] mounting an ext2fs dvd-ram as a user

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 07:40 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: [newbie] mounting an ext2fs dvd-ram as a user

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
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 07:40 PM
lemke_juergen@yahoo.de
 
Posts: n/a
Default Re: mounting an ext2fs dvd-ram as a user


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
> ----------------------------------------------------------------------


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com