Bug #9635

we should enable user after creation with zfs tests

Added by Igor Kozhukhov about 2 months ago. Updated about 2 months ago.

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

0%

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 about 2 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 about 2 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 about 2 months ago

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

Also available in: Atom