Solved

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

Posted on 2001-06-08
3
297 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 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