I am unable to "chown
" to username from UID.
For example:
123456789 123456789 jdoe
--------------------------------------
chown jdoe:jdoe jdoe
I get:
chown:invalid jdoe 'jdoe:jdoe'
but 'jdoe
' exists.
I am unable to "chown
" to username from UID.
For example:
123456789 123456789 jdoe
--------------------------------------
chown jdoe:jdoe jdoe
I get:
chown:invalid jdoe 'jdoe:jdoe'
but 'jdoe
' exists.
this gonna change owner of UID
directory to jdoe
cd ~
cd ..
sudo chown -R jdoe:jdoe UID/
I had this exact problem moving users from one system to another with different UID and GID. Linux used to allow users to have ids above 499. Now 999. Sigh
Anyway if you use numeric form in chmod
you won't get the absurd error message.
cd /home
chmod -R 1003.1003 joe
This verified on Ubuntu 20