Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Adding users or changing passwords.
Ref. No. QNX.000010040
Category(ies) Installation, Configuration
Issue How do you add and delete users in QNX OS?
Solution The passwd utility allows a login password to be changed or a new username to be created.

If you are changing your password, passwd prompts for the old password and then for the new password.  The new password must be entered twice, to avoid typing mistakes.  Only the owner or the superuser may change a password.

The superuser (root) may use this utility to create a new user account by entering:

    passwd new_user_name

When creating a new user account, passwd will prompt for information, such as the user's group list, home directory, and shell.  The /etc/default/passwd file lets you modify passwd's behavior to suit local requirements.  The /etc/passwd file contains the following fields, separated by colons:

username:has_passwd:userid:groupid:misc:home_directory:initial_command

To delete a user, simply remove the entry for the user in /etc/passwd file.  The second field will contain a * which means there is a password associated with this user.  For forgotten passwords, simply remove this second field and run the passwd utility to choose a new one. 

See also: passwd utility in the Utilities documentation on line:

QNX RTP:
http://support.qnx.com/support/docs/neutrino_qrp/utilities/p/passwd.html

QNX4:
http://support.qnx.com/support/docs/qnx4/utils/p/passwd.html