Solved

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

Posted on 2001-06-08
3
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

732 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