[oi-dev] Ideas about fixing useradd -m
Udo Grabowski (IMK)
udo.grabowski at kit.edu
Thu Jul 28 08:17:38 UTC 2016
On 28/07/2016 09:04, Alexander Pyhalov wrote:
> There is an old issue (https://www.illumos.org/issues/263):
> useradd -m tries to create home directory under /home, but /home is auto-mounted
> from /export/home.
> For useradd -m to work, you should specify useradd -m -b /export/home ..., but
> users created in such way are not equivalent to initial user, which we get on
> install, as for them mapping in /etc/auto_home is not created.
> OI /dev had several patches to fix this:
> (263 useradd is unable to create home directory)
> ( 288 New homedirs should have auto_home entries)
> I think that these patches are too specific to be accepted in illumos-gate.
> What can we do with it? Perhaps we just remove all auto_home magic by default
> and create home directories under /export/home ?
> We also could set something like
> * localhost:/export/home/&
> in /etc/auto_home, but IIRC this leads to the following : if you try to access
> /home/bar you'll receive irritating error messages on console about missing
As you said, it's too specific. Users using NFS mounted directories
for /home have wildly different setups (we alone had three completely
different approaches in a decade), they know what they do. So the
best option is to leave it as it is, either the admin uses the -b
option, or don't use the -m option at all since he creates that
directory by different measures.
Dr.Udo Grabowski Inst.f.Meteorology & Climate Research IMK-ASF-SAT
KIT - Karlsruhe Institute of Technology http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5285 bytes
Desc: S/MIME Cryptographic Signature
More information about the oi-dev