Root ownership of UDF fs (with patch)
Hello, I seems that this list is the appropriated place to discuss udftools. If it is not, please accept my apologies. In the current state of udftools, it is impossible (in Linux, at least) for an user without root access to format and use udf disks. That is because once formated with 'mkudffs /dev/whatever', the cdrom has a filesystem whose root directory belongs to root. Then, to write to the cdrom, the user must: a. be root and use it; or b. be root, # mount /dev/whatever /mnt/whatever # chown <username>:<groupname> /mnt/whatever # umount /mnt/whatever and the use it as a normal user. There would be two ways to solve this problem: 1. Linux udf filesystem honor the uid=... and gid=... options for mount. Then, a nice fstab would be /dev/pktcdvd0 /mnt/cdpkt udf user,noauto,uid=useruid,gid=usergid 0 0 (uid=useruid and gid=usergid seem to be undocumented, but work very well, substituting useruid and usergid by the current values of the user which is mounting the filesystem). 2. Do like mke2fs, that is, set the ownership and group of the root filesystem to the ones of the user who created it. Attached is a simple patch to mkudffs (udftools 1.0.0b3) that provides this behavior. Anyway, having both 1. and 2. is also nice, as having the correct ownership in the media is some sort of signature (I know, it is 'spoofable'). Regards, Joao Luis M. Assirati.
participants (1)
-
Joao Luis Meloni Assirati