Bug #293

useradd/del/mod should be ZFS-aware

Added by Albert Lee about 8 years ago. Updated about 3 years ago.

Status:ResolvedStart date:2010-10-03
Priority:LowDue date:
Assignee:Albert Lee% Done:

0%

Category:OS/Net (Kernel and Userland)
Target version:oi_148
Difficulty: Tags:

Description

The user management tools should be enhanced to be able to create and destroy datasets for home directories on ZFS.


Related issues

Blocked by OpenIndiana Distribution - Bug #263: useradd is unable to create home directory Resolved 2010-09-26

History

#2 Updated by Garrett D'Amore about 8 years ago

This bug looks really nice. Probably should be moved to illumos-gate. I'd like this to get integrated there.

#3 Updated by Richard PALO about 8 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 )

#4 Updated by Albert Lee about 8 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.

#5 Updated by Albert Lee about 8 years ago

http://pkgdev.openindiana.org/~trisk/il_263_useradd_homedir/ is the current version, which uses libzfs instead of the unmentionable...

#6 Updated by Albert Lee almost 8 years ago

  • Status changed from In Progress to Resolved

Fixed in oi_148.

#7 Updated by Electric Monk about 3 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>

Also available in: Atom