Board index » delphi » Changing unix password via TCP/IP Winsock (Delphi or C++)

Changing unix password via TCP/IP Winsock (Delphi or C++)

Quote
Angelos Vasdaris wrote:

> Does anyone knows how (and if) can I change a unix's host user
> password from a Winsock compatible application written in Delphi or
> C++ ?

> Is there a free/Shareware application available , to do this?

> Thanks a lot,

> angel.
> ************************************************************
> * Angelos Vasdaris               * Tel. +30-31-943061      *
> * SparkNet S.A. - System Manager * Fax  +30-31-943647      *
> *                                *                         *
> * e-mail: an...@spark.net.gr     * Al. Papanastasiou 56    *
> * http://www.spark.net.gr        * 54642, Thessaloniki, GR *
> ************************************************************

Before changing password you should be logged in. So, all you need is telnet.
You can emulate telnet protocol, it's quite simple, and do what you want then.

Best regards,
Alexander Osipov

 

Re:Changing unix password via TCP/IP Winsock (Delphi or C++)


Quote
Angelos Vasdaris wrote:

> Does anyone knows how (and if) can I change a unix's host user
> password from a Winsock compatible application written in Delphi or
> C++ ?

> Is there a free/Shareware application available , to do this?

> Thanks a lot,

> angel.

Before you change your password you sholud be logged in.
So, this application is called telnet.
You can emulate telnet protocol through TCP/IP, it's quite simple.
When logging, your program should use passwd to change password.

Alkexander Osipov

Re:Changing unix password via TCP/IP Winsock (Delphi or C++)


On Tue, 12 Mar 1996 08:01:50 GMT, an...@spark.net.gr (Angelos

Quote
Vasdaris) wrote:
>Does anyone knows how (and if) can I change a unix's host user
>password from a Winsock compatible application written in Delphi or
>C++ ?

>Is there a free/Shareware application available , to do this?

>Thanks a lot,

>angel.
>************************************************************
>* Angelos Vasdaris               * Tel. +30-31-943061      *
>* SparkNet S.A. - System Manager * Fax  +30-31-943647      *
>*                                *                         *
>* e-mail: an...@spark.net.gr     * Al. Papanastasiou 56    *
>* http://www.spark.net.gr        * 54642, Thessaloniki, GR *
>************************************************************

Contact the remote execute service and use the unix password prog to
change it.

If you have any further question I can mail you an example app.

Regards,
Kenneth Sklander,
sklan...@{*word*104}net.dk

Re:Changing unix password via TCP/IP Winsock (Delphi or C++)


Quote
Kenneth Sklander (sklan...@{*word*104}net.dk) wrote:

: On Tue, 12 Mar 1996 08:01:50 GMT, an...@spark.net.gr (Angelos
Quote
: Vasdaris) wrote:

:
: >Does anyone knows how (and if) can I change a unix's host user
: >password from a Winsock compatible application written in Delphi or
: >C++ ?
: >
: >Is there a free/Shareware application available , to do this?
: >
: >Thanks a lot,
:
: Contact the remote execute service and use the unix password prog to
: change it.
:
: If you have any further question I can mail you an example app.

I'd like to see this example.  Especially since the passwd program opens
/dev/tty to get the old and new passwords from the user.  Remote execute
won't have a tty.  Try running vi as a remote execute and see.  And no,
I/O redirection won't work for the same reason.

I suspect that if you REALLY want this to happen, you'll have to write
some service program on the Unix side that will change passwords for you.
But you're really opening a HUGE door to breakins unless you take appropriate
precautions.

  Chris
--

Re:Changing unix password via TCP/IP Winsock (Delphi or C++)


Quote
Alexander Osipov <s...@iis.nsk.su> wrote:
>Angelos Vasdaris wrote:

>> Does anyone knows how (and if) can I change a unix's host user
>> password from a Winsock compatible application written in Delphi or
>> C++ ?

>> Is there a free/Shareware application available , to do this?

>> Thanks a lot,

>> angel.
>Before changing password you should be logged in. So, all you need is telnet.
>You can emulate telnet protocol, it's quite simple, and do what you want then.
>Best regards,
>Alexander Osipov

Ahh! - But once your logged in various unixs will ask you to change
your password in different ways after it have expired. Most
administrators don't like to set a login as 'never expired', so has
anyone got an app which can handle AIX,HP/UX,SCO and DG/UX etc
different dialog's and their dirrent security levels.

Or have I got this totally wrong ?

I'm going mad trying to handle all the exceptions....

Cheers Tony Drake.

Re:Changing unix password via TCP/IP Winsock (Delphi or C++)


Quote
In article <4i3aup$...@aglaia.forthnet.gr> an...@spark.net.gr (Angelos Vasdaris) writes:
>From: an...@spark.net.gr (Angelos Vasdaris)
>Subject: Changing unix password via TCP/IP Winsock (Delphi or C++)
>Date: Tue, 12 Mar 1996 08:01:50 GMT
>Does anyone knows how (and if) can I change a unix's host user
>password from a Winsock compatible application written in Delphi or
>C++ ?
>Is there a free/Shareware application available , to do this?
>Thanks a lot,
>angel.
>************************************************************
>* Angelos Vasdaris               * Tel. +30-31-943061      *
>* SparkNet S.A. - System Manager * Fax  +30-31-943647      *
>*                                *                         *
>* e-mail: an...@spark.net.gr     * Al. Papanastasiou 56    *
>* http://www.spark.net.gr        * 54642, Thessaloniki, GR *
>************************************************************

Install Eudora's poppassd. It's a server process that allows you to change
passwords (with a FTP-likedialog) through TCP port 106 on a Unix host.
All you have to do is write a client that is able to communicate with the
server side (that shouldn't be to difficult with the help of winsock
components).

Maurice Steyvers
Systemsprogrammer
University of Maastricht, NL

Re:Changing unix password via TCP/IP Winsock (Delphi or C++)


Quote
>: >Does anyone knows how (and if) can I change a unix's host user
>: >password from a Winsock compatible application written in Delphi or
>: >C++ ?
>: Contact the remote execute service and use the unix password prog to
>: change it.
>I suspect that if you REALLY want this to happen, you'll have to write
>some service program on the Unix side that will change passwords for you.
>But you're really opening a HUGE door to breakins unless you take appropriate
>precautions.

No more so than enabling a telnet daemon, I would have thought. To
change the password, you would still need to send your old password
(to identify yourself) and your new password at some point. I think a
specification should be drawn up in an RFC.

This would be useful to me because I could then write a client that
could change all my logins to all of my various boxes at once to save
me changing them all manually each month.

Alternative solution: Some kind of authentication server. I believe I
saw something like this for Linux. When a program needs to check
password for a user, it could send the username/password to a server
which would then say yes or no. You only need maintain one password
for many boxes that way.

--
Rossi Gee
e-mail: ro...@vale.co.uk

Re:Changing unix password via TCP/IP Winsock (Delphi or C++)


Quote
r...@rossigee.demon.co.uk (Rossi Gee) wrote:
>Alternative solution: Some kind of authentication server. I believe I
>saw something like this for Linux. When a program needs to check
>password for a user, it could send the username/password to a server
>which would then say yes or no. You only need maintain one password
>for many boxes that way.

I have written some LINUX stuff that authenticates via a NT server for
FTP, SMB, POP, PPP, so there is no passwords on the linux box.

Re:Changing unix password via TCP/IP Winsock (Delphi or C++)


Eudora and the poppasswd server are available from ftp.qualcomm.com.
I you can't get the free copies of Eudora I can send to you.

Good luck.
--
                        Lucho Fuentes Cerda
     INFOPAC S.A.       System, Network and DB Manager
Una Empresa del Grupo   Av. Vic. Mackenna 1130, Santiago, Chile
   Indumotora - ADP     Voice: 56(2)551 1924, Fax: 56(2)551 6994

Other Threads