Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: howto change dsl password, this is not a faq question,< Next Oldest | Next Newest >
subarus Offline





Group: Members
Posts: 75
Joined: May 2004
Posted: Jan. 08 2005,07:35 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 08 2005,08:14 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
softgun Offline





Group: Members
Posts: 120
Joined: Dec. 2004
Posted: Feb. 05 2005,15:35 QUOTE

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?
Back to top
Profile PM 
paultje3181 Offline





Group: Members
Posts: 2
Joined: Feb. 2005
Posted: Feb. 25 2005,12:17 QUOTE

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
Back to top
Profile PM 
3 replies since Jan. 08 2005,07:35 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: howto change dsl password

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code