Thread: Wrong chmod!!
View Single Post
  #7  
Old 16th February 2007, 12: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
Default

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
Code:
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
Code:
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