Im gonna need some help restoring my ssh settings as i screwed everything up by calling this command:
chown -R user /
At the moment im not able to access the site through ssh/ftp since the ownership of all the files have been changed. I dont want to reset every ownership but if i could get ssh working i would be able to create a backup of my files and then get a clean install of ubuntu on my server.
Here is the error that i get when im trying to restart ssh:
/var/run/sshd must be owned by root and not group or world-writable.
Im running ubuntu 10.04 LTS. Any help is very much appreciated.
P.S. I am able to run ssh commands on a browser based AJAX console that my hosting company (linode) provides.
Thanks
chownalways has to be run as root (at least on my system. I don't know if this is configurable). So even if you're not logged in as root, you'd still be usingsudoor something whenever you run achowncommand. – David Zaslavsky Aug 25 '10 at 1:09