Welcome to CRUX bug tracking.
FS#63 - Directory permissions are ignored
|
DetailsIf a package contains a directory with permissions different from an existing directory, the permissions are changed when the package is installed. But when the package is removed, the new permissions persist.
Obviously keeping track of directory permissions would require massive changes and complicate the code. So in order to keep it simple, I think the right approach is to detect such differences as conflicts at install time, since it will permanently affect the system and it\'s likely that the change isn\'t on purpose. |
This task depends upon
- a port changing one of its binaries to be suid root (or not suid root
anymore), or any other mode change
- a port (e.g. a daemon) changing to be run as nobody from root, thus
requiring its data file to be owned by nobody:nobody
- same problem: a port starting to use a particular group (think: video,
audio etc.) which previously used \'root\'
- human errors where a directory wasn\'t writable or a file not
executable, and fixed by the maintainer by changing a mode/ownership
of some files or directories
That\'s not to say that the feature shouldn\'t be added at all, but maybe we can find a different approach which doesn\'t have these annoyances
An example of one port that used to change directory permissions, there was vsftpd which would chown /var/ftp to root:root since the \'filesystem\' package had the same directory owned by ftp:ftp (IIRC)