Solved

How do I send commands to a unix box from delphi...

Posted on 2001-06-08
3
303 Views
Last Modified: 2012-05-07
Is there a way that I can send commands to a unix box from a delphi application?  I need to have the users change thier password when it expires, but do not want them to all log into the unix box via telnet (would be more trouble than it's worth).  Thanks.

Michael W. Bourlier
0
Comment
Question by:bourlier
3 Comments
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 170 total points
ID: 6168125
I would suggest that there is no easy way to do this, but I think, as long as you can run a program from within windows that resides on the unix box, then you are on a winner.

To me, this requires something like Samba. There are probably others, but this is all I know about (only about!).

So. The program on the unix box COULD simply be the program to change password. My concern is how does the unix box know that the new password is valid and not simply anything?

i.e. Why can't I change "root"'s password to "easy"?

I suspect you have to supply the old and new passwords.

This is not a solution, but a possible way of doing things.

I suspect you will need a unix program to actually change the password, but you should be able to call it from a pc with a connection to the server.

Regards,

Richard.
0
 
LVL 14

Expert Comment

by:AvonWyss
ID: 6168154
bourlier, why not make a delphi program which interfaces via TELNET to the unix box but gives the user a nice frontend for that?
0
 
LVL 5

Expert Comment

by:Jeff_2
ID: 6168871
Listening...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question