| View previous topic :: View next topic |
| Author |
Message |
beso_1717 Apprentice

Joined: 19 Jul 2007 Posts: 263
|
Posted: Mon Dec 24, 2007 2:16 pm Post subject: udf permissions problem |
|
|
hi, when i try to load a dvd with udf filesystem on it hal recognizes it and prompts the window alert for the media. when i tell him to mount and open the directory for browsing i cannot access the directory due to it being reserved only for root. with root i can see the directory and read the dvd, but i cannot access it with the normal user in any way.
this happens only with udf dvds.
i think that this is a wrong permission issue and i'd like some help on how to set the permissions in the udev rules to be able to access the udf media as normal user. |
|
| Back to top |
|
 |
marrowhk Apprentice

Joined: 25 Jul 2007 Posts: 250
|
Posted: Tue Dec 25, 2007 2:31 am Post subject: |
|
|
Make sure you're a member of the plugdev group.
#nano -w /etc/group (as root)
| Code: | | plugdev:x:###:haldaemon,<username> |
No need to manually change udev rules, they are included for udf.
If you still have problems upgrade udevtools and udev to ~x86 and reboot. _________________ You'll always come back to GENTOOOOOOO ! (Trust me...) |
|
| Back to top |
|
 |
RoundsToZero Guru


Joined: 17 Nov 2003 Posts: 478 Location: New York, NY
|
Posted: Tue Dec 25, 2007 4:26 am Post subject: |
|
|
This sounds similar to something I've been seeing, but to check (assuming you are in fact in plugdev):
Are files owned by you and group root?
Are the permissions 0000 (d--------- for directories on the disc)?
Was it burned with K3b with the "enable UDF structures" button checked?
This is what made it happen for me. Apparently UDF support in it (specifically mkisofs) is in beta or something so there are issues. For some reason burning a video DVD in K3b (which also uses UDF) works fine but not data DVD. However in recent kernel revisions you can read past the 4 GB mark (to 4.4 on a single layer disc, more on double) on a plain ISO9660 filesystem data DVD, so maybe that's a workaround if you can't fix the UDF permissions problem. |
|
| Back to top |
|
 |
marrowhk Apprentice

Joined: 25 Jul 2007 Posts: 250
|
Posted: Tue Dec 25, 2007 5:02 am Post subject: |
|
|
In NERO for linux you'll experience no such problems, UDF works perfectly. _________________ You'll always come back to GENTOOOOOOO ! (Trust me...) |
|
| Back to top |
|
 |
beso_1717 Apprentice

Joined: 19 Jul 2007 Posts: 263
|
Posted: Tue Dec 25, 2007 12:47 pm Post subject: |
|
|
maybe i didn't make clear my problem:
udf works and burns well. mount can mount it without problems and i can read the disk from user root, i am in the usual plugdev and haldaemon group 444 priviledges and also in the cdrom group.
the problem is that normal user cannot access the media due to privilege problems.
what do i have to do to make udf readable also with normal user?
the settings said till now are all ok and still doesn't work. |
|
| Back to top |
|
 |
marrowhk Apprentice

Joined: 25 Jul 2007 Posts: 250
|
Posted: Wed Dec 26, 2007 2:12 am Post subject: |
|
|
Ohhhh, i see!
The defaults, as i have then seem to allow the user in the plugdev group to access UDF disks without problems. So, perhaps you have some persistent rules in UDEV which is stopping the defaults.
I'd do the following to rule this out:
1. #rm -Rf /etc/udev/*
2. #emerge udev
With the new (default) rules you should be okay! Reboot or restart udev. _________________ You'll always come back to GENTOOOOOOO ! (Trust me...) |
|
| Back to top |
|
 |
beso_1717 Apprentice

Joined: 19 Jul 2007 Posts: 263
|
Posted: Sat Dec 29, 2007 6:16 pm Post subject: |
|
|
| nope, doesn't work either.... |
|
| Back to top |
|
 |
marrowhk Apprentice

Joined: 25 Jul 2007 Posts: 250
|
Posted: Sun Dec 30, 2007 5:08 am Post subject: |
|
|
Okay, one last try. I think this has to do with your kernel. No harm in doing the following:
1. rebuild your kernel paying particular attention to the file systems (build in udf - not as a module)
2. reboot into the new kernel
3. re emerge udev
4. re emerge hal
5. reboot
6. insert UDF cd/dvd
7. #tailf /var/log/messages (look for messages when you load a udf cd/dvd)
8. # /etc/init.d/hald restart or eselect rc restart hald
look at the messages -  _________________ You'll always come back to GENTOOOOOOO ! (Trust me...) |
|
| Back to top |
|
 |
beso_1717 Apprentice

Joined: 19 Jul 2007 Posts: 263
|
Posted: Sun Jan 06, 2008 3:34 pm Post subject: |
|
|
nope, no way it can work.
the messages i get are:
Jan 6 16:27:02 [kernel] [ 283.745167] UDF-fs: Partition marked readonly; forcing readonly mount
Jan 6 16:27:02 [kernel] [ 283.790108] UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'K3b data project', timestamp 2007/12/19 19:29 (103c)
Jan 6 16:27:02 [hald] mounted /dev/sr0 on behalf of uid 1000
Jan 6 16:27:11 [hald] unmounted /dev/sr0 from '/media/K3b data project' on behalf of uid 1000
Jan 6 16:28:01 [hald] mounted /dev/sr0 on behalf of uid 1000
Jan 6 16:28:01 [kernel] [ 310.898884] ISO 9660 Extensions: Microsoft Joliet Level 3
Jan 6 16:28:01 [kernel] [ 310.902001] ISO 9660 Extensions: RRIP_1991A
Jan 6 16:28:17 [hald] unmounted /dev/sr0 from '/media/K3b data project' on behalf of uid 1000
i continue to insist that there's a problem somewhere in the udev permission rules but i cannot find the one reffering to udf. i'll try looking for some other info about it on the web when i get to have some spare time. thanks again for the help. |
|
| Back to top |
|
 |
marrowhk Apprentice

Joined: 25 Jul 2007 Posts: 250
|
Posted: Mon Jan 07, 2008 11:24 am Post subject: |
|
|
No, i don't think so. UDF works fine for me as a user on a ~x86 system. _________________ You'll always come back to GENTOOOOOOO ! (Trust me...) |
|
| Back to top |
|
 |
thorheimdall n00b

Joined: 08 Dec 2005 Posts: 53 Location: Quebec
|
Posted: Mon Feb 18, 2008 3:09 am Post subject: |
|
|
I have exactly the same problem than beso_1717. As a normal user, I cannot access UDF DVD content. The DVD shows up with permisions "d---------" in /media. I can see the DVD content as root.
Has someone found the solution for this problem? |
|
| Back to top |
|
 |
chalex20 n00b

Joined: 27 Sep 2006 Posts: 27
|
Posted: Mon Feb 18, 2008 9:59 pm Post subject: |
|
|
Recent mkisofs versions have problems with --graft-points and UDF. If graft points are actually used, UDF permissions on the root directory are "zeroed". _________________ Regards,
Alex Chudnovsky. |
|
| Back to top |
|
 |
beso_1717 Apprentice

Joined: 19 Jul 2007 Posts: 263
|
Posted: Sun Feb 24, 2008 6:10 pm Post subject: |
|
|
| chalex20 wrote: | | Recent mkisofs versions have problems with --graft-points and UDF. If graft points are actually used, UDF permissions on the root directory are "zeroed". |
how does this influence my problem with udf not being readable from non root user?! i've still haven't been able to fix this issue. |
|
| Back to top |
|
 |
chalex20 n00b

Joined: 27 Sep 2006 Posts: 27
|
Posted: Sun Feb 24, 2008 6:43 pm Post subject: |
|
|
| beso_1717 wrote: | | chalex20 wrote: | | Recent mkisofs versions have problems with --graft-points and UDF. If graft points are actually used, UDF permissions on the root directory are "zeroed". | how does this influence my problem with udf not being readable from non root user?! i've still haven't been able to fix this issue. | You may try downgrading to cdrtools 2.01. _________________ Regards,
Alex Chudnovsky. |
|
| Back to top |
|
 |
beso_1717 Apprentice

Joined: 19 Jul 2007 Posts: 263
|
Posted: Sun Feb 24, 2008 9:25 pm Post subject: |
|
|
| chalex20 wrote: | | beso_1717 wrote: | | chalex20 wrote: | | Recent mkisofs versions have problems with --graft-points and UDF. If graft points are actually used, UDF permissions on the root directory are "zeroed". | how does this influence my problem with udf not being readable from non root user?! i've still haven't been able to fix this issue. | You may try downgrading to cdrtools 2.01. |
how does cdrtools influence how an already written udf dvd is readable when mounted by hald?! |
|
| Back to top |
|
 |
chalex20 n00b

Joined: 27 Sep 2006 Posts: 27
|
Posted: Sun Feb 24, 2008 9:58 pm Post subject: |
|
|
| beso_1717 wrote: | | how does cdrtools influence how an already written udf dvd is readable when mounted by hald?! | It would prevent the DVDs you write in the future from being compolsed incorrectly. It is nothing to be done with the DVDs already written except rewriting them. _________________ Regards,
Alex Chudnovsky. |
|
| Back to top |
|
 |
beso_1717 Apprentice

Joined: 19 Jul 2007 Posts: 263
|
Posted: Mon Feb 25, 2008 8:27 am Post subject: |
|
|
| chalex20 wrote: | | beso_1717 wrote: | | how does cdrtools influence how an already written udf dvd is readable when mounted by hald?! | It would prevent the DVDs you write in the future from being compolsed incorrectly. It is nothing to be done with the DVDs already written except rewriting them. |
they're dvd+r and not rw. udf is just the filesystem of these dvds because i've stored on them files bigger than 2gb each.
ps. by the way, i've used cdrtools 2.01 when i've wrote the dvds... this is a permission problem somewhere, since my user is in the cdrom and cdrw group.... |
|
| Back to top |
|
 |
chalex20 n00b

Joined: 27 Sep 2006 Posts: 27
|
Posted: Mon Feb 25, 2008 9:22 am Post subject: |
|
|
| beso_1717 wrote: | | they're dvd+r and not rw. udf is just the filesystem of these dvds because i've stored on them files bigger than 2gb each. | Sorry for being confusing. I've meant "rewriting the content anew, upon new empty disks". _________________ Regards,
Alex Chudnovsky. |
|
| Back to top |
|
 |
beso_1717 Apprentice

Joined: 19 Jul 2007 Posts: 263
|
Posted: Mon Feb 25, 2008 9:52 am Post subject: |
|
|
| chalex20 wrote: | | beso_1717 wrote: | | they're dvd+r and not rw. udf is just the filesystem of these dvds because i've stored on them files bigger than 2gb each. | Sorry for being confusing. I've meant "rewriting the content anew, upon new empty disks". |
as i've already told you, i was using cdrtools 2.01 (i've read the k3b instructions to use that version due to some udf problems in newer versions) and effectively the dvd are readable, but only as root. the same thing happened with ntfs support through fuse: i was able to read and write on the filesystem as root, but not as user and the same happens with reiserfs on an external hd:
i'm able to read and write as root, but i'm only able to read as user. this is strange since the filesystem is mounted from user's hald and not from root's one. |
|
| Back to top |
|
 |
dalek Veteran


Joined: 19 Sep 2003 Posts: 1353 Location: Mississippi USA
|
Posted: Sat Jul 12, 2008 9:13 am Post subject: |
|
|
I'm having the same issue I think. Here is my info:
| Code: | [I--] [ ] app-cdr/cdrtools-2.01.01_alpha34
[-P-] [ ] app-cdr/k3b-0.12.17
[I--] [ ] sys-fs/udev-119
[I--] [ ] app-misc/hal-info-20070618 (0)
[I--] [ ] sys-apps/hal-0.5.9.1-r3 (0)
[I--] [ ] sys-fs/udev-119 (0)
|
Also tried:
| Code: | | [-P-] [M~] app-cdr/cdrtools-2.01.01_alpha42 (0) |
That didn't help either. I also disabled ivman with no change. I use KDE 3.5.9 for my desktop.
I can see it as root but not as a user. Other things I have noticed. When no DVD is inserted:
| Code: | root@smoker / # ls -al /media/
total 1
drwxr-xr-x 6 root root 248 2008-07-12 03:54 .
drwxr-xr-x 24 root root 560 2008-07-10 12:40 ..
drwxrwxr-x 2 root users 48 2006-10-25 06:23 floppy
-rw-r--r-- 1 root root 0 2008-07-12 03:43 .hal-mtab
-rw------- 1 root root 0 2008-07-12 03:54 .hal-mtab-lock
drwxrwxr-x 2 root users 48 2006-10-25 04:00 hdc
drwxrwxr-x 2 root users 48 2008-07-04 14:21 hdd
-rw-r--r-- 1 root root 0 2008-07-12 01:48 .keep_sys-apps_hal-0
root@smoker / # |
When I have a DVD inserted I get this:
| Code: | root@smoker / # ls -al /media/
total 3
drwxr-xr-x 6 root root 248 2008-07-12 03:54 .
drwxr-xr-x 24 root root 560 2008-07-10 12:40 ..
drwxrwxr-x 2 root users 48 2006-10-25 06:23 floppy
-rw-r--r-- 1 root root 0 2008-07-12 03:43 .hal-mtab
-rw------- 1 root root 0 2008-07-12 03:54 .hal-mtab-lock
drwxrwxr-x 2 root users 48 2006-10-25 04:00 hdc
d--------- 2 root root 112 2008-07-12 03:08 hdd
-rw-r--r-- 1 root root 0 2008-07-12 01:48 .keep_sys-apps_hal-0
root@smoker / # |
It changes the permissions whenever I insert the DVD. Here is my fstab line for the DVD:
| Code: | | /dev/hdd /media/hdd auto noauto,users 0 0 |
and when a DVD is inserted mount reports this:
| Code: | | /dev/hdd on /media/hdd type udf (rw,noexec,nosuid,nodev) |
I have a CD burner on here too. I basically set them both up the same way. The CD works just fine but the DVD does not.
Any ideas?
 _________________ My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case |
|
| Back to top |
|
 |
prozzaks n00b

Joined: 18 Aug 2005 Posts: 7
|
Posted: Tue Aug 12, 2008 2:40 am Post subject: Dreaded d--------- |
|
|
Before mount :
| Code: | root@darkmule:~$ ls -lhd /mnt/dvd
drwxr-xr-x 2 root root 4.0K 2006-08-25 01:09 /mnt/dvd |
Mounting :
| Code: | root@darkmule:~$ mount /dev/cdrom3 /mnt/dvd
mount: block device /dev/hda is write-protected, mounting read-only |
After mount :
| Code: | root@darkmule:~$ ls -lhd /mnt/dvd
d--------- 3 root root 196 2008-08-11 19:30 /mnt/dvd |
Looks familiar?
Fortunately, the data is still readable by root (Otherwise I would have foam coming out of my mouth while stumping on the stupid disks). Still, I'm far from happy.
I'm guessing from what is written and my own experience that this is a problem while authoring the UDF filesystem to be burned on the DVD. It doesn't matter how the disk is mounted (hal, pmount, mount). The result is always the stupid d---------. Inside the mount folder the permissions of the files are set to -r--r--r-- and the owner is whatever user that has been specified while mounting (i.e.: mount -o uid=myuser /dev/cdrom /mnt/dvd), but the folders are stuck with d---------.
In K3B there is an option labeled as "Preserve file permissions (backup)". I'm going to try this. I might end up wasting another DVD. I'll post the result over here so other people won't have to waste the precious storage space of their disks if this doesn't work.
Sudden idea! I'll tell K3B only to generate an image and I will mount that image! That should tell us if it's the filesystem itself or even the UDF kernel driver.
Result :
| Code: | Used version of mkisofs does not have large file support.
Files bigger than 2GB cannot be handled. |
This is sure getting on my nerves fast!
Is guess I'll won't have to choice to waste a DVD to see if the K3B option could be the problem.  |
|
| Back to top |
|
 |
prozzaks n00b

Joined: 18 Aug 2005 Posts: 7
|
Posted: Tue Aug 12, 2008 2:44 am Post subject: Wasted another DVD |
|
|
I though it wanted to use mkisofs just to create the ISO file when I used the "Only create image in K3B", but it turn out that it was needed even to burn. Another DVD wasted! I wanted to burn a 4.3GB file.
Yippy doo daa!
So... mkisofs provided by cdrtools-2.01.01_alpha34 doesn't support files larger than 2GB.
Last edited by prozzaks on Tue Aug 12, 2008 2:47 am; edited 1 time in total |
|
| Back to top |
|
 |
dalek Veteran


Joined: 19 Sep 2003 Posts: 1353 Location: Mississippi USA
|
Posted: Tue Aug 12, 2008 2:45 am Post subject: |
|
|
Actually it is a kernel bug with udf from what I have been told on the mailing lists. If you mount the DVD as a iso9660, it works like a charm. I'm not sure when this will be fixed but we are not alone. Others have the same issue.
 _________________ My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case |
|
| Back to top |
|
 |
prozzaks n00b

Joined: 18 Aug 2005 Posts: 7
|
Posted: Tue Aug 12, 2008 2:54 am Post subject: |
|
|
| dalek wrote: | | Actually it is a kernel bug with udf from what I have been told on the mailing lists. If you mount the DVD as a iso9660, it works like a charm. I'm not sure when this will be fixed but we are not alone. Others have the same issue. |
Thank you for the info!  |
|
| Back to top |
|
 |
prozzaks n00b

Joined: 18 Aug 2005 Posts: 7
|
Posted: Tue Aug 12, 2008 2:55 am Post subject: Feeling happy |
|
|
Feeling happy... about not having stumped on my DVDs.  |
|
| Back to top |
|
 |
|