Bug #9635

we should enable user after creation with zfs tests

Added by Igor Kozhukhov 6 months ago. Updated 3 months ago.

Status:ClosedStart date:2018-06-30
Priority:NormalDue date:
Assignee:Igor Kozhukhov% Done:

100%

Category:zfs - Zettabyte File System
Target version:-
Difficulty:Medium Tags:needs-triage

Description

we re using 'useradd' in zfs tests for some cases where we need to use different users, but as default, 'useradd' is creating disabled user.
we should enable user by: passwd -N user - before using it by 'su'

History

#1 Updated by Yuri Pankov 6 months ago

It's not disabled, it's locked, which doesn't prevent it from being used by calling 'su', you simply can't use it to log in.

#3 Updated by Igor Kozhukhov 6 months ago

Yuri Pankov wrote:

It's not disabled, it's locked, which doesn't prevent it from being used by calling 'su', you simply can't use it to log in.

i think illumos 'su' is broken with using locked/disabled account. on others platforms are you not able to do it.

#4 Updated by Yuri Pankov 6 months ago

Which "other" platforms exactly? And how exactly the user line looks like in /etc/shadow?

#5 Updated by Electric Monk 3 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 09b2abb464ff7bbef397718b20686211ee1f1ddb

commit  09b2abb464ff7bbef397718b20686211ee1f1ddb
Author: Igor Kozhukhov <igor@dilos.org>
Date:   2018-09-17T17:24:36.000Z

    9635 we should enable user after creation with zfs tests
    Reviewed by: John Kennedy <john.kennedy@delphix.com>
    Approved by: Joshua M. Clulow <josh@sysmgr.org>

Also available in: Atom