On 2/18/26 05:58, Udo Grabowski (IMKASF) wrote:
On 18/02/2026 14:31, Carsten Grzemba via illumos-discuss wrote:
Because I havn't found an chproj command in Illumos or Solaris.  Are there still use cases for project Id's in files or filesystems? Which filesystems support project Id's? Where project Id of a file/ filesystem is stored. Or is this feature only available in filesystems which support extended attributes?

Can anyone help with information here?
...>      The project ID is an object-based attribute.  When upgrading an
     existing filesystem, objects without a project ID will be
     assigned a zero project ID.  When this feature is enabled, newly
     created objects inherit their parent directories' project ID if
     the parent's inherit flag is set (via chattr [+-]P or zfs project
     -s|-C).  Otherwise, the new object's project ID will be zero.  An
     object's project ID can be changed at any time by the owner (or
     privileged user) via chattr -p prjid or zfs project -p prjid.

Note that the referenced "chattr" command is a linux command that to my knowledge hasn't been ported to illumos, so the only real option for us is "zfs project".

The project id's referenced appear to be unrelated to the ones named by /etc/project, described in project(5), and present in process credentials.

Also, I may be missing something but there don't seem to be any controls on what project id an unprivileged user can set on a file they own which would seem to make quota evasion pretty trivial - in their current state, project quotas only seem to be suitable for cooperative resource tracking in a non-adversarial environment.

                                       - Bill


------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/Te013c603ab4f4b15-Mc74107ce39d6ede9943fdfab
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to