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: 862

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 523.69 KiB (Peak: 550.93 KiB) ]