Bug #293
useradd/del/mod should be ZFS-aware
Added by Albert Lee over 10 years ago. Updated over 5 years ago.
0%
Description
The user management tools should be enhanced to be able to create and destroy datasets for home directories on ZFS.
Related issues
Updated by Albert Lee over 10 years ago
- Status changed from New to In Progress
Updated by Garrett D'Amore over 10 years ago
This bug looks really nice. Probably should be moved to illumos-gate. I'd like this to get integrated there.
Updated by Richard PALO over 10 years ago
Albert Lee wrote:
http://pkgdev.openindiana.org/hg/mq_onnv-gate/file/012800500db7/oi-issue-293-useradd_zfs
Not sure, but it seems that this mechanism only allows inherited dataset properties for those that are create-time only ... therefore coming from the parent (typically /export/home).. how to set these ?
pass in the options via -o or perhaps via a script?
Also, how would it deal with parent dataset (potentionally in a different pool) which may have the property canmount=off in order to alias, for example, /export/home.
(see http://docs.sun.com/app/docs/doc/819-5461/gdrcf?l=en&a=view )
Updated by Albert Lee over 10 years ago
Richard PALO wrote:
Albert Lee wrote:
http://pkgdev.openindiana.org/hg/mq_onnv-gate/file/012800500db7/oi-issue-293-useradd_zfs
Not sure, but it seems that this mechanism only allows inherited dataset properties for those that are create-time only ... therefore coming from the parent (typically /export/home).. how to set these ?
pass in the options via -o or perhaps via a script?
Adding the ability to specify creation properties would be a useful feature, but would probably require an interface change. Maybe this can be the subject of another RFE.
Also, how would it deal with parent dataset (potentionally in a different pool) which may have the property canmount=off in order to alias, for example, /export/home.
(see http://docs.sun.com/app/docs/doc/819-5461/gdrcf?l=en&a=view )
The created dataset will be a child of the dataset currently mounted at the parent of the path specified as the home directory, regardless of which pool it belongs to. Allowing the specification of a dataset name rather than a path is a possibility, but it would have to be automatically converted to a path unless the previous interface changes are introduced.
Updated by Albert Lee over 10 years ago
http://pkgdev.openindiana.org/~trisk/il_263_useradd_homedir/ is the current version, which uses libzfs instead of the unmentionable...
Updated by Albert Lee over 10 years ago
- Status changed from In Progress to Resolved
Fixed in oi_148.
Updated by Electric Monk over 5 years ago
git commit 7fc68ddf208200ddeef6f09e60ab0fbf0e919fea
commit 7fc68ddf208200ddeef6f09e60ab0fbf0e919fea Author: Albert Lee <trisk@omniti.com> Date: 2015-10-01T19:45:16.000Z 293 useradd/del/mod should be ZFS-aware Portions contributed by: Alexander Pyhalov <apyhalov@gmail.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com>