You are not logged in.
Pages: 1
Damn it,
My arch user (william) have uid 500
and today I installed debian and mount /home partition and I add user with this same name as user from arch ( I would like have this same settings for all programs)
but debian user has uid 1000 and now I can't open my home/william directory...
Question is simple: How set again that /home/william is directory for william with uid 500 ( arch william)...?
Offline
Remove the user on either arch or debian and recreate the user, and when it asks for which UID/GID to use, make sure you match those on debian or arch.
:?
Offline
ok, but when I remove user - the user directory will be dalated...?
Offline
ok, but when I remove user - the user directory will be dalated...?
Usage: userdel [options] LOGIN
Options:
-f, --force force removal of files, even if not owned by user
-h, --help display this help message and exit
-r, --remove remove home directory and mail spool
Offline
Instead of doing that, just change Arch's /etc/passwd file and edit the user william.
It should look similar to this
william:x:500:500:(may be something here, may not be):/home/william:/bin/bash
change it to be
william:x:1000:<default gid>:(may be something here, may not be):/home/william:/bin/bash
The 3rd field should be the new UID you want (1000), the 4th should be the default group ID, and the 5th should be your name (or a comment)
Offline
man usermod, look for the -u/--uid option (and -g/--gid, if necessary).
Offline
Pages: 1