Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-09-17 00:19:18

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 486

renaming a user

i have noticed many files in ~/.config have the actual user name or the full path of the user's home directory.  if i want to rename to user and rename the home directory to match (and do chown -hR if a userid number change was also involved) i presume i should also sed -i all those file to reflect the change (while no processes are running for this user).  but i have run across a difficulty.  file ~/.config/dbus/user is in a binary format.  if the name involves a different length, that could throw off lengths and offsets, corrupting the file.  any ideas or suggestions?

Offline

Board footer

Powered by FluxBB