On 07/11 11:55 , Timothy Murphy wrote: > I want to archive backuppc on machine A to machine B. > (Both are running CentOS-5.6 .) > The problem is that backuppc has different UIDs on the 2 machines: > on A it is 101, on B it is 102. > > Now when I NFS mount /archive on machine B on /archive on machine A > I am told that /archive belongs to avahi-autoipd , > which has UID 102 on machine A. > > This seems to prevent backuppc from archiving onto /archive . > > Is there any simple way of changing a UID > (together with all the files it owns)?
vipw then vigr to edit the UIDs in /etc/passwd and /etc/group. You will need to do vipw -s and vigr -s to change the /etc/shadow and /etc/gshadow as well. Then use a command like 'find / -uid 102 -exec chown backuppc: {} \;' to change the ownership of all the files owned by UID 102 to whatever UID backuppc is. > Alternatively, is there a way of telling backuppc to ignore the UIDs? No. UIDs are the real identifying information that maps file ownership onto users. When you see a name like 'backuppc' associated with a file, it's because the 'ls' program (or whatever other one) did a lookup of the UID to the name in /etc/passwd. If you do a 'ls -n' it simply reports the UIDs and skips the name lookup step. -- Carl Soderstrom Systems Administrator Real-Time Enterprises www.real-time.com ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/