Hello. I have this problem : I ,when logged as root, changed permissions of the /usr file to 777. Now I cannot connect to root account anymore or to server manager. Directly at server computer it says that login is incorrect. When trying to access by other computers via Putty, I get "connection refused". How do I change back the permissions back when I cannot log to root? Without reinstalling the server.
/usr is not a file, it is a directory. Why would you want to change it to 777 ? It should be 0755 and should never need touching.
If you changed permissions recursively (through all the /usr/* directories) you may be in for a big job.
Please tell us what was the exact command you used ?
Next. Did you change anything else ?
Although you can reset the root password, it may not fix your problems depending on what you did to your server.
You should be able to boot the machine in single mode and reset your root password.
Reboot.
Press Esc to stop the automatic timeout.
Select the top kernel and press 'a' to append to the kernel line
On the next screen add the word
'append' 'single' to the end of the line then press enter to boot.
This drops you to single mode.
Type:
passwd root
to change your password.
shutdown -r now
Once you have got your root password back I think you need to try the server manager and change the admin password to get them back in sync correctly.
B. Rgds
John