Technical article 104942

Can't assign a password to a user with useradd(ADM).

OpenServer 5.0.0

Written · Last revised

Problem

The man page for useradd(ADM) states that there is a password
option.  To use this option, I type:
# useradd -x "{ password 123abc}" testuser
This error message is then displayed:

error: useradd failed No such attribute password in class testuser user

Solution

The documentation for useradd(ADM) is incorrect. The password
option does not exist.  Below is a shell script that can be
used to assign a password to an existing user.
--------------------cut here---------------------------
#!/bin/osavtcl
# Here "user_name" is the name of the user who's password you
# are modifying and "new_password" is their new password.
# You must have "auth" authorization or be root to use this command.
ObjectAction {sco user} user_name setPassword new_password
-------------------cut here-----------------------------

From the Xinuos technical article database, record 104942. Reproduced with permission. The original is at www.sco.com/ta/104942, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.