Users and Groups ID

Francois frmas at free.fr
Sun Jun 22 14:25:23 UTC 2008


Hello, I need help on that subject.
I have one computer (personal) running Fedora. On this one, I have the 
login "ken", with ID 501, and I belong to the group "users", whose ID is 
100
On my laptop, I have installed Ubuntu (my first steps with Ubuntu ;-) ). 
There, my login is still "ken", but the ID given by Ubuntu is "1000", and 
user "ken" belongs to group "ken" with ID 1000

When I want to copy files from that computer (personal) to the laptop and 
vice versa, I can't. Permission denied.

So i have to change the ID on the laptop for user "ken".
First I did what to run : "usergroup -G users -a ken"
That way I added "ken" to group "users".
Once done, I said using the GUI, that the main group for "ken", is "users", 
not the "ken" group. But still user "ken" belongs to both groups, "users" 
(the main one), and "ken".
Now I have to change the ID for user "ken" on the laptop. Is it ok if I run 
that command  :
usermod -u 501 ken
find / -user 1000 - exec chown ken {} \;

Then : 
cd /home/ken
chown -R ken.users *
chown -R ken.users .*

Is it correct ?
Thank you. Francois

-- 




More information about the ubuntu-users mailing list