Project

General

Profile

Actions

Bug #9635

closed

we should enable user after creation with zfs tests

Added by Igor Kozhukhov about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2018-06-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

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'

Actions #1

Updated by Yuri Pankov about 3 years 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.

Actions #3

Updated by Igor Kozhukhov about 3 years 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.

Actions #4

Updated by Yuri Pankov about 3 years ago

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

Actions #5

Updated by Electric Monk about 3 years ago

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

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>

Actions

Also available in: Atom PDF