Project

General

Profile

Bug #293

useradd/del/mod should be ZFS-aware

Added by Albert Lee almost 9 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
OS/Net (Kernel and Userland)
Target version:
Start date:
2010-10-03
Due date:
% Done:

0%

Estimated time:
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 directoryResolved2010-09-26

Actions

History

#2

Updated by Garrett D'Amore almost 9 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 almost 9 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 almost 9 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 almost 9 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 over 8 years ago

  • Status changed from In Progress to Resolved

Fixed in oi_148.

#7

Updated by Electric Monk almost 4 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 PDF