do not match uid and gid of user dir (/home)

evgeniymx

Verified User
Joined
Mar 21, 2011
Messages
19
Hi!

after the transfer of users from one server to another, and extracting archives, each user folder in the directory / home does not match the uid and gid.

Ie uid - is the user name and gid - access.

how to fix?
 
re

ex.:

drwx--x--- 6 user1 access 4096 Mar 23 04:01 user1
drwx--x--- 4 user2 access 4096 Mar 23 04:01 user2
drwx--x--- 8 user3 access 4096 Mar 23 04:02 user3
 
ex.:

drwx--x--- 6 user1 access 4096 Mar 23 04:01 user1
drwx--x--- 4 user2 access 4096 Mar 23 04:01 user2
drwx--x--- 8 user3 access 4096 Mar 23 04:02 user3

Hi,

You can change the ownership with the command as :

chown <username>.<username> <filename>

Thanks.
 
Back
Top