User accounts

bridged with qdn.public.qnx2
Post Reply
John Burgess

User accounts

Post by John Burgess » Tue Mar 25, 2003 9:44 pm

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.

Bill Caroselli

Re: User accounts

Post by Bill Caroselli » Wed Mar 26, 2003 12:03 am

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.

Pascal Simler

Re: User accounts

Post by Pascal Simler » Wed Mar 26, 2003 1:51 am

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
<TAB>password in clear text
<TAB>UserId.GroupId
<TAB>Home dir
<TAB>Login script
<Blank line>

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.

John Burgess

Re: User accounts

Post by John Burgess » Wed Mar 26, 2003 5:22 pm

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

--John B.

Bill Caroselli

Re: User accounts

Post by Bill Caroselli » Wed Mar 26, 2003 5:40 pm

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.

Post Reply

Return to “qdn.public.qnx2”