[Bug 1674164] Re: DVDs with restricted permissions are unreadable for normal user (regression?)

Phillip Susi psusi at ubuntu.com
Wed Apr 12 14:06:03 UTC 2017


"differently correct" is no less a lie than "alternative facts".  Your
recorder is broken, period.  Complain to the manufacturer to fix their
firmware or see if they already have an update.  Printed DVDs use the
correct permissions.  UDF also goes on rewritable media, optical or
flash or otherwise, and the correct permissions need to be retained or
you end up with either files that are never executable or always
executable, and no ability to write protect files.

That said, it might be a reasonable workaround to detect the somewhat
silly situation of the root directory not being readable by anyone and
then override the permissions, only under that condition.  Or perhaps
there is a unique device string in the UDF header that identifies this
particular broken burner that can key on it.  What does blkid -p
/dev/sr0 have to say about this disc?


** Package changed: util-linux (Ubuntu) => udisks2 (Ubuntu)

** Changed in: udisks2 (Ubuntu)
   Importance: Undecided => Low

** Changed in: udisks2 (Ubuntu)
       Status: Invalid => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1674164

Title:
  DVDs with restricted permissions are unreadable for normal user
  (regression?)

Status in udisks2 package in Ubuntu:
  Triaged

Bug description:
  I'm using 16.10. I have a DVD with strange permissions for the root
  folder:

  michele at cassandra:~$ ls -l /media/michele
  total 2
  d--x--x--- 3 michele michele 88 gen  1  2004 SONY_DVD_RECORDER_VOLUME

  The DVD is readable e.g. on windows but with ubuntu while I can access
  it as root:

  root at cassandra:~# ls -l /media/michele/SONY_DVD_RECORDER_VOLUME/
  total 4
  dr-xr-xr-x 2 michele michele 3628 gen  1  2004 VIDEO_TS

  I cannot as the non-root user that is logged in when I insert the
  disk:

  michele at cassandra:~$ ls -l /media/michele/SONY_DVD_RECORDER_VOLUME
  ls: cannot open directory '/media/michele/SONY_DVD_RECORDER_VOLUME': Permission denied

  Looking at the mount options it seems to me that this is a regression
  for bug #10550. The options used by udisks2 are:

  root at cassandra:~# mount |grep SONY
  /dev/sr0 on /media/michele/SONY_DVD_RECORDER_VOLUME type udf (ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,uhelper=udisks2)

  while my understanding from bug #10550 is that I should have also
  mode=0777 and dmode=0777

  And indeed this works:

  root at cassandra:~# mount -t udf -o
  ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,uhelper=udisks2,mode=0777,dmode=0777
  /dev/sr0 ~michele/z

  michele at cassandra:~$ ls -l ~michele/z
  total 4
  drwxrwxrwx 2 michele michele 3628 gen  1  2004 VIDEO_TS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1674164/+subscriptions



More information about the foundations-bugs mailing list