Other Help Topics :: DSL now boot as root...



Hi all
i got a dsl system frugal installed; it was used to start as user "dsl" and then start x automatically

now, to make it light and fast booting, i tweaked the KNOPPIX image file adding to it some programs, libs, apps, and modification (so i don't need to backup all this thing and booting is very fast) (1)
but then whenever it start does'nt start with user dsl, but start in shell with user "root"
if i give
Code Sample
su - dsl
it change to user dsl, and start x.

this is a problem arised from some errors in "tweaking KNOPPIX image" or there is another reason?
if i correct this problem will be other serious related problems, or will be all solved?
and then, how can i solve this (and make dsl user auto start and start x automatically)?

ty for help

When you tweaked the image, did you copy the files with cp or tar? Cp does not copy hidden files while tar does, I think there are some .bash_profile's and .bashrc's you might have missed, one is even in the root of the image.
The file /KNOPPIX/.bash_profile (not /home/dsl/.bash_profile) switches you to user 'dsl' automatically at the end of the boot process.
Quote (mikshaw @ April 14 2008,10:38)
The file /KNOPPIX/.bash_profile (not /home/dsl/.bash_profile) switches you to user 'dsl' automatically at the end of the boot process.

Mmmmhhhh yeah
there is no /KNOPPIX/.bash_profile file so this is the problem
maybe i did something wrong while tweaking the KNOPPIX (maybe using cp in lieu of tar, as curaga said :) i need to check the script i used to extract it... )

well, ok, tyvm now i got something to start again :)

ps: of course i suppose i could just copy /KNOPPIX/.bash_profile from another dsl system, but the problem will be for other files like .bashrc and some other... right?

You could just copy all hidden files from another install, for example boot DSL livecd and do a search:
Quote
find / -name ".*"

Next Page...
original here.