Talk:Users and groups
Username change tips
On 2nd though I'm unsure about the edit "Merging "change a user's login name" + Username change tips".
Now it should be correct, "Change a user's login name or home directory" is in one chapter, together with the infos + warning about the change on a actual user. Ua4000 (talk) 19:13, 23 June 2017 (UTC)
Unclear to me: Change a user's login name or home directory
This instructions from the page could be clearer:
To change a user's home directory:
# usermod -d /my/new/home -m username
-m option also automatically creates the new directory and moves the content there.
# ln -s /my/new/home/ /my/old/home
Make sure there is no trailing
Can we add an example? Say username is
archie and old home folder was
/mnt/sda3/home/archie. New home directory shall become
/home/archie. So, according to the instrcutions:
# usermod -d /home/archie archie
(Not using -m because files shall stay at
Then create a link from former home directory
/mnt/sda3/home/archie to the new one
# ln -s /home/archie/ /mnt/sda3/home/archie
However then there is a link in
archie that points to
/home/archie. Shouldn't it be the other way around? So when the system looks up
/home/archie instead it will go to
- The tip assumes that the
-mflag was used. This is indicated in the first sentence: "You can create a link from the user's former home directory to the new one." -- Lahwaacz (talk) 21:02, 26 October 2017 (UTC)
It is a good idea to add a column with the default gid to every group in the wiki table ? e.g. what is group 102 ?
# ls -la /usr/share/polkit-1 # drwxr-x--- 1 root 102 44 Dec 22 02:14 rules.d
Also I found in my cups directory files owned by 9xx. My first idea was to look in the wiki article...