howto change dsl password


Forum: Other Help Topics
Topic: howto change dsl password
started by: subarus

Posted by subarus on Jan. 08 2005,07:35
I cant believe I am asking this question, but I really do not know how to change password of user 'dsl'.  I DO KNOW how to add new user & assign password, I also know how to change password for 'root' using interactive command line.

I am trying to setup a headless server (ie no mouse, no keyboard, no monitor) to be used as fileserver, ssh server, vnc server, web server, ftp server and perhaps as firewall/proxy server) why headless? because I think I should be able to turn on the power switch and control the machine from anywhere.

using winiso, I can place DSL, samba.dsl, bootlocal.sh  in one cd. By editing the bootlocal I plan to config smb.conf, start ssh server + all other server daemons. but I realise that to connect to ssh server, I need password. I can add new user remotely, but the catch is I need to set root  password on server, but I cant do it on the machine with nohead!

I figure that my only hurdle to accomplish my goal is to find out how to configure a set of user/pass within bootlocal.sh script so that I can remote login to via ssh.

Does anybody know howto, USING BASH COMMAND SCRIPT (ie not interactive command line) to :
1)  set root password to a default (temporary)  password
2) add new user/pass
3) change dsl password

BTW I plan to run livecd with no boot options

Posted by mikshaw on Jan. 08 2005,08:14
I don't know about changing passwords non-interactively, but for adding a user:
useradd -p <password> -g <main group> -G <groups> -u <user id> -d <home directory> username

There are other options, but I didn't want to type it all out.

Posted by softgun on Feb. 05 2005,15:35
mikshaw,

I cannot add another user to the livecd and save the config. This is necessary to get some programs to work. The necessary files maybe read only?

Is this possible?

Posted by paultje3181 on Feb. 25 2005,12:17
passwd dsl will do the trick... Sorry, didn't read to well...
The files are all symlinks to /KNOPPIX/file.bla on the cd. That's why it is read-only

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.