-3

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.

J. Chomel
  • 8,193
  • 15
  • 41
  • 69

2 Answers2

0

this gonna change owner of UID directory to jdoe

cd ~
cd ..
sudo chown -R jdoe:jdoe UID/
Ebrahim Poursadeqi
  • 1,776
  • 2
  • 17
  • 27
0

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

Obsidian
  • 3,719
  • 8
  • 17
  • 30