Welcome |
---|
Welcome to refracta You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today! |
jheaton5 wrote:Wouldn't it work to just copy the .* files from the old user's home dir to the new user's home dir?
for i in $(grep -r "/home/$oldname" /home/$newname/.config | awk -F":" ' { print $1 }')
do
sed -i "s/\/home\/$oldname/\/home\/$newname/g" "$i"
check_exit
done
jheaton5 wrote:Wouldn't it work to just copy the .* files from the old user's home dir to the new user's home dir?
fsmithred wrote:It's a known deficiency....
su
cp -r /home/mainuser/.config /home/seconduser/
chown -R seconduser:/seconduser /home/seconduser/.config
Users browsing this forum: No registered users and 0 guests