User Feedback :: adding a user in the livecd



I am trying to create a new dsl using the deb2dsl script, which requires a new user to be made. i cannot add a user to the live CD (0.9.1) with "cannot rewrite password file" message being received.
It is possible to add users in the Knoppix livecd.
Any way out of this?

It is definitely possible to add a new user to DSL...Try 'vipw' (know how to use vi, or set EDITOR=nano or something else first)

Try upgrading to DSL 0.9.3, and next time tell us 'how' you are trying to add the user =) via a script/command/vipw?

If its a linking problem, unlink the file...

Quote (tronik @ Feb. 05 2005,10:50)
It is definitely possible to add a new user to DSL...Try 'vipw' (know how to use vi, or set EDITOR=nano or something else first)

Try upgrading to DSL 0.9.3, and next time tell us 'how' you are trying to add the user =) via a script/command/vipw?

If its a linking problem, unlink the file...

I did a search and found these pointers

See these threads for help:
http://damnsmalllinux.org/cgi-bin....%shadow

http://damnsmalllinux.org/cgi-bin....%shadow

http://damnsmalllinux.org/cgi-bin....%shadow

But they do not say how I can add a new user to the liveCD and backup and save to the CD so that after that when i reboot the CD this new user is available.

The thing is apart from ftp and ssh, some apps need a special user - namely postgresql cannot be used without postgres user!

I am trying to make a postgresql dsl. When I apt-get the install fails as there is no user "postgres"

I tried adduser or useradd command. This problem is due to the password file not being writeable. It is a known bug which was not there in 0.8.0 - according to Roberts - but has come into the subsequent versions and hung on :-(

Adding users to liveCD, is right on the menu,  from the main menu: System->AddUsers
This was setup for temporary users for ftp or ssh access.

If you want to "keep" these users then take a look at the script /etc/init.d/ssh_addusers to see the files involved.

i read the /etc/init.d/dsl-config script. this executed at startup. part of it is:
Code Sample
 if checkbootparam "users"; then
     /etc/init.d/ssh_addusers
  fi

so users is a cheatcode you can add to you bootoptions to make the passwd, and group file writeable

Next Page...
original here.