Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137073 - pmount 0.9.6 / 0.9.11 mounts udf fs as root.root
Summary: pmount 0.9.6 / 0.9.11 mounts udf fs as root.root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Project Gentopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-17 05:56 UTC by Sebastian Schubert
Modified: 2006-08-17 02:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Schubert 2006-06-17 05:56:35 UTC
pmount (version 0.9.6 and 0.9.11 tested) mounts udf filesystems (here a dvd ram) as root.root in opposite to eg fat which is mounted 'user'.users. The default umask 007 makes it unusable for the user. This is the case with hal 0.5.5 and 0.5.7.

sebschub@satux /media $ pmount /dev/hdb
sebschub@satux /media $ pmount /dev/sda
sebschub@satux /media $ ls -l
insgesamt 22
drwxr-xr-x  2 root     root     48 10. Jun 16:11 dvd
drwxr-xr-x  2 root     root     48 10. Jun 16:11 dvdram
drwxrwx--- 11 root     root    468 10. Jun 20:29 hdb
drwx------  4 sebschub users 22016  1. Jan 1970  sda
sebschub@satux /media $ cd  hdb
bash: cd: hdb: Keine Berechtigung
sebschub@satux /media $ cd sda
sebschub@satux /media/sda $


Workaround: mount with umask 000:

sebschub@satux /media/sda $ cd ..
sebschub@satux /media $ pumount /dev/hdb
sebschub@satux /media $ pmount -u 000 /dev/hdb
sebschub@satux /media $ ls -l
insgesamt 22
drwxr-xr-x  2 root     root     48 10. Jun 16:11 dvd
drwxr-xr-x  2 root     root     48 10. Jun 16:11 dvdram
drwxrwxrwx 11 root     root    468 10. Jun 20:29 hdb
drwx------  4 sebschub users 22016  1. Jan 1970  sda
sebschub@satux /media $ cd hdb
sebschub@satux /media/hdb $

The problem is that written data is now stored as root.root and not usable with the next mount (except for root of course)!
Comment 1 igch 2006-08-17 00:00:42 UTC
Specifically regarding the umask, the UDF default is hard-coded in fs.c as reported here:

http://forums.gentoo.org/viewtopic-p-3253765.html#3253765

According to what appears to be a Debian bug report --

http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=348080;msg=22

-- the versions 0.9.12 and up use a default of 000 for the UDF umask.  Unfortunately, you will note that none of these happen to be in Portage yet.

I do not know why UDF mounts are owned by root when pmount gives ownership for all other filesystems to the calling user.  It looks like the author of pmount, Martin Pitt, does understand English fluently, so perhaps someone could ask him. . . .
Comment 2 Sebastian Schubert 2006-08-17 02:02:26 UTC
I have just tried pmount 0.9.13 by renaming the 0.9.11 ebuild and hoping everything goes fine. Well, it did. My DVD RAM are still root.root but the permission are 777. The problem of wrong permissions after re-mount described above is solved as well.
Comment 3 Steev Klimaszewski (RETIRED) gentoo-dev 2006-08-17 02:52:55 UTC
I put pmount 0.9.13 in portage a bit earlier, not sure when exactly, but once it shows up on packages.gentoo.org it should be available to all, Thanks for letting me know it works for you (renaming was all that was needed) - Closing since you report it works :)