PDA

View Full Version : Hard coded /home/knoppix into skel files



Andrew Foster
01-06-2003, 04:42 AM
Hi,

When adding a new user on a Knoppix system (most probably because you have installed it onto your hard drive), the string '/home/knoppix' will be incorrectly hard-coded into your configuration files (stuff in your home directory) because it is hard coded into /etc/skel

To do a simple find and replace, issue this command all on one line, while logged in as the new user. (Replace YOUR_USER_NAME with.. you guessed it ;)

for i in `grep -rlis \/home\/knoppix ~`; do perl -p -i -e
"s/\/home\/knoppix/\/home\/YOUR_USER_NAME/g" "$i"; done

Hope that helps,

- Andrew
<andrew at solutionsfirst.com.au>

RockMumbles
01-06-2003, 08:33 PM
Thanks worked like a charm!

rock

aay
01-07-2003, 06:13 AM
Andrew,

Thanks for the great tip.

raymond
03-09-2003, 09:00 AM
it didn't work for me... :( is this because i removed the user knoppix?

thx

raymond
03-09-2003, 09:08 AM
it didn't work for me... :( is this because i removed the user knoppix?

thx

soory my mistake....it works fine i used a wrong string....

work fine...... thx!