johnbo
Group: Members
Posts: 3
Joined: Jan. 2005 |
|
Posted: Jan. 13 2005,08:08 |
|
Hi,
I've been following this forum for the last couple of days as I've been trying the DSL 0.9.2. I'm very impressed, both with DSL and the forum.
I'm trying to build a box that will boot off a CD (easy), run a web server on fixed content (easy), and run an FTP server also with an initially fixed content (not so easy). There is no hardware, no USB, no display, no keyboard. Just a mini-ITX board, a CDROM and a network cable. This will eventually be used as a demo tool for our products.
It appears that the problem that I'm running into (other than a minor shortage of Linux/Unix background), is that I need to have a specific username and password that is usable on the FTP server.
If I create them using the UserAdd function in the menu's, everything is fine, but I can't do this at startup each time and I've read the warnings about trying to restore the various password file at startup. (I can't guarrentee that this will never have a hardisk installed).
I've tried the useradd function in the shell, but it doesn't seem to generate a valid password (this is a guess). I'm trying to supply it with a cleartext password string for the new user. When I try to open an ftp session at localhost, the password is refused.
I've also tried the adduser function in the shell. This will generate a valid user account, but will not run without user interaction (it prompts for various fields one of which is the passwd).
At this point the only thing that I can think of is to write a simple C program that calls the 'crypt' function and use that to get my non-cleartext password value.
Any thoughts?
Thanks,
johnbo
|