create user

hi all,
We would create a user account automatically from our Apps. !?
Do anybody know a C-function, to use for setting the entrys in
/etc/passwd
/etc/shadow
like /bin/passwd username , but automatically and not interactive?


Joerg Hering
Chief Developer VDR
e-mail: jhering@avecs-bergen.de
privat: hering.ruegen@t-online.de

AVECS Bergen GmbH
Billrothstraße 11a
D-18528 Bergen auf Rügen

Tel.: +49 3838 2119101
Fax: +49 3838 2119105
URL: http://www.avecs-bergen.de


These files may be edited with any editor. Therefor you can easily write a
program that would open(), read(), write() and close() those files,
providing it has sufficient privlege. I.E. is run as root.

Bill Caroselli


“Jörg Hering” <jhering@avecs-bergen.de> wrote in message
news:3B77D467.12209CCB@avecs-bergen.de
hi all,
We would create a user account automatically from our Apps. !?
Do anybody know a C-function, to use for setting the entrys in
/etc/passwd
/etc/shadow
like /bin/passwd username , but automatically and not interactive?


Joerg Hering
Chief Developer VDR
e-mail: jhering@avecs-bergen.de
privat: hering.ruegen@t-online.de

AVECS Bergen GmbH
Billrothstraße 11a
D-18528 Bergen auf Rügen

Tel.: +49 3838 2119101
Fax: +49 3838 2119105
URL: http://www.avecs-bergen.de


well one problem is still there: password encryptio - I remember there
is some code snippets und
usr/free at least for qNX 4
Jörg

“Bill Caroselli (Q-TPS)” schrieb:

These files may be edited with any editor. Therefor you can easily write a
program that would open(), read(), write() and close() those files,
providing it has sufficient privlege. I.E. is run as root.

Bill Caroselli

“Jörg Hering” <> jhering@avecs-bergen.de> > wrote in message
news:> 3B77D467.12209CCB@avecs-bergen.de> …
hi all,
We would create a user account automatically from our Apps. !?
Do anybody know a C-function, to use for setting the entrys in
/etc/passwd
/etc/shadow
like /bin/passwd username , but automatically and not interactive?


Joerg Hering
Chief Developer VDR
e-mail: > jhering@avecs-bergen.de
privat: > hering.ruegen@t-online.de

AVECS Bergen GmbH
Billrothstraße 11a
D-18528 Bergen auf Rügen

Tel.: +49 3838 2119101
Fax: +49 3838 2119105
URL: > http://www.avecs-bergen.de


Dr. Jörg Kampmann - IBK-Consult for Real-Time and Embedded Systems
D-31228 Peine - Tel.:+49-177-276-3140 - Fax: +49-5171-13385
http://www.ibk-consult.de
===== QNX is the better Choice for Real-Time: http://www.qnx.com ====

Yes, in order to set the password by software, you also need the encryption
library that are available on QNX site. With these, you can encrypt a
password in a crypted password ascii string and use it to update the
/etc/shadow file appropriately.

Note that there is an oshadow and an opasswd file in /etc/ but I don’t know
if you need to worry about them or not.

Be carefull because I think that there are two versions of the encryption
libraries because a way was recently found to decrypt password and QNX had
to change the encryption mechanism. You might have to ask questions to QNX
about which you should use. Or try them on your system and youll figure out
quick enough which one is compatible with your software and which one is
not…

“Joerg Kampmann” <joerg.kampmann@ibk-consult.de> wrote in message
news:3B77F72A.E73B8AB5@ibk-consult.de

well one problem is still there: password encryptio - I remember there
is some code snippets und
usr/free at least for qNX 4
Jörg

“Bill Caroselli (Q-TPS)” schrieb:

These files may be edited with any editor. Therefor you can easily
write a
program that would open(), read(), write() and close() those files,
providing it has sufficient privlege. I.E. is run as root.

Bill Caroselli

“Jörg Hering” <> jhering@avecs-bergen.de> > wrote in message
news:> 3B77D467.12209CCB@avecs-bergen.de> …
hi all,
We would create a user account automatically from our Apps. !?
Do anybody know a C-function, to use for setting the entrys in
/etc/passwd
/etc/shadow
like /bin/passwd username , but automatically and not interactive?


Joerg Hering
Chief Developer VDR
e-mail: > jhering@avecs-bergen.de
privat: > hering.ruegen@t-online.de

AVECS Bergen GmbH
Billrothstraße 11a
D-18528 Bergen auf Rügen

Tel.: +49 3838 2119101
Fax: +49 3838 2119105
URL: > http://www.avecs-bergen.de


Dr. Jörg Kampmann - IBK-Consult for Real-Time and Embedded Systems
D-31228 Peine - Tel.:+49-177-276-3140 - Fax: +49-5171-13385
http://www.ibk-consult.de
===== QNX is the better Choice for Real-Time: > http://www.qnx.com > ====