Solved

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

Posted on 2001-06-08
3
295 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:
RQuadling 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now