Andrew Foster
01-06-2003, 05: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>
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>