User accounts

Sorry for these basic questions. QNX people say QNX 2 documentation is NLA.

Steps for user account creation in QNX 2? How is a password
created/changed? How does one get an app to start automatically after login
such as what one can do with a .cshrc or .login file in *nix? Are there
hidden files in QNX2 and how do I list them?

–John B.

John Burgess <allegroceo@hotmail.com> wrote:

Sorry for these basic questions. QNX people say QNX 2 documentation is NLA.

Steps for user account creation in QNX 2? How is a password
created/changed? How does one get an app to start automatically after login
such as what one can do with a .cshrc or .login file in *nix? Are there
hidden files in QNX2 and how do I list them?

Assuming that you can log in as root (superuser) then you can run the
passwd utility (I think, It’s been a long time since I worked in QNX2)

I think that after you log in in QNX 2 the shell executes ‘.profile’
in your home directory. If not, also try ‘.kshrc’.

The OS doesn’t ahve like a hidden attribute that I remember. But any
files start with a dot ‘.’ will be hidden by the ls/dir/files command
unless you are root. If you are non-root, try ls -a to list all
including hidden files.

If I’m wrong because it’s been so long since I’ve worked on QNX2
someone else will be happy to point out my errors. They always are.

Hello,

I think you’re right for QNX4 or QNX6 Bill, but not QNX2. User account
management in QNX2 is completely different of what you find in QNX4, QNX6 or
other *nix. It’s NOT posix.
In QNX2 the user’s are configured in the /etc/pass file.
It’s a text file and each user consists of 6 lines as bellow :

Account
password in clear text
UserId.GroupId
Home dir
Login script

UserId and groupId are number’s beetwen 1 and 255 where 255 is the root
user/group.
Example :

pascal
secret
255.255
3:/user/pascal
ec 3:/config/pascal.sh

bill
againsecret
2.1
3:/user/bill
ec 3:/config/bill.sh

There’s no OS utility to add/change/remove user account’s ( like adduser,
passwd ). You have to modify the /etc/pass file yourself

Pascal



“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:b5qqp1$j48$1@inn.qnx.com

John Burgess <> allegroceo@hotmail.com> > wrote:
Sorry for these basic questions. QNX people say QNX 2 documentation is
NLA.

Steps for user account creation in QNX 2? How is a password
created/changed? How does one get an app to start automatically after
login
such as what one can do with a .cshrc or .login file in *nix? Are there
hidden files in QNX2 and how do I list them?

Assuming that you can log in as root (superuser) then you can run the
passwd utility (I think, It’s been a long time since I worked in QNX2)

I think that after you log in in QNX 2 the shell executes ‘.profile’
in your home directory. If not, also try ‘.kshrc’.

The OS doesn’t ahve like a hidden attribute that I remember. But any
files start with a dot ‘.’ will be hidden by the ls/dir/files command
unless you are root. If you are non-root, try ls -a to list all
including hidden files.

If I’m wrong because it’s been so long since I’ve worked on QNX2
someone else will be happy to point out my errors. They always are.

Thanks a bunch. That clears up a lot of things for me.

–John B.

Pascal Simler <simler@wanadoo.fr> wrote:

Hello,

I think you’re right for QNX4 or QNX6 Bill, but not QNX2. User account
management in QNX2 is completely different of what you find in QNX4, QNX6 or
other *nix. It’s NOT posix.
In QNX2 the user’s are configured in the /etc/pass file.
It’s a text file and each user consists of 6 lines as bellow :

Your right of course. Sorry.
I did double check and we were using the passadmin from Martin Zimmer
at /usr/free2/quantum/passadmin on QUICS. That’s why I didn’t remember
editing that file.