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
Pages: (2) </ [1] 2 >/

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

reply to topic new topic new poll
Topic: adding a user in the livecd, adding users is not allowed in the live< Next Oldest | Next Newest >
softgun Offline





Group: Members
Posts: 120
Joined: Dec. 2004
Posted: Feb. 05 2005,11:06 QUOTE

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





Group: Members
Posts: 182
Joined: Dec. 2004
Posted: Feb. 05 2005,15:50 QUOTE

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...


--------------
-william
atlanta, GA, USA

DSL 1.0+2.4.27/sata : P4 2.4norwood : 512ddr2 : nvgf4ti4200-64 : 128mbLexar Jumpdrive Elite
Back to top
Profile PM WEB 
softgun Offline





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

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 :-(
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Feb. 05 2005,17:49 QUOTE

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.
Back to top
Profile PM WEB 
henk.1955 Offline





Group: Members
Posts: 41
Joined: Feb. 2005
Posted: Feb. 05 2005,19:51 QUOTE

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
Back to top
Profile PM WEB 
6 replies since Feb. 05 2005,11:06 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: adding a user in the livecd

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