You are not logged in.

#1 2007-06-05 12:27:23

linderox
Member
Registered: 2007-04-23
Posts: 48

synchronization uid and gid in the local network

i want to synchronize my local networds uids and gids on the different computers
1) i forget advantages of this operation.can you remember me smile ? (i have  ssh,samba,qmail servicies)
2) when i changed uid and gid in  /etc/passwd and /etc/group by chown,then all of folders and files bacame no accessable.
3)will i be a BILL user if i  connect  to computer1 from computer2 by ssh as PETER  (i have user PETER with gid=1050 uid=100 on one computer1 and BILL 1050:100 on another - computer2

Offline

#2 2007-06-05 18:47:37

George_K
Member
From: Russie, Saint-Pétersbourg
Registered: 2006-09-27
Posts: 75

Re: synchronization uid and gid in the local network

2) Use find:
find STARTDIR -uid OLDUID -print0 | xargs -0 chown YOURNAME
find STARTDIR -gid OLDGID -print0 | xargs -0 chgrp YOURGROUP
3) No. If you connect as PETER (ssh PETER@computer1) when you will be PETER smile. It doesn`t matter whoareyou at computer2.

Offline

Board footer

Powered by FluxBB