Thread: Wrong chmod!!
View Single Post
Old 16th February 2007, 13:02
martinfst martinfst is offline
Senior Member
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst

chown normally starts with the lowest numbered i-node. See this as a unique identifier. The way i-nodes are numbered differ from system to system, even if you use the same installation/distro.

If you want to compare everything manually, open three ssh sessions, one to your working system (system A), two to your corrupted system (system B). Type
cd /
ls -al | less
on screen of system A and one screen of system B. Compare each and every line. On the second screen of system B, use
chown right_user.right_group <full file name>
to set the owner/group correctly.
Do all this as user 'root'. Be prepared to work on this for about two days, depending how much you installed.
Reply With Quote