Please, i am using Ubuntu 11.10 and I made a mistake in system directories, changed permissions of all content to 777. I was trying to correct some files, but i cant fix all directories and files. Can I return to default permissions??
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.
fdisk, format, reinstall, doo dah, doo dah. i.e.
some blanket chmod'ing and chowning in /etc is not going to fix this. you've made a proper mess of things, and a reinstall is the quickest and cleanest way to fix it RIGHT. any thing else, short of restoring content or images from backups is both a waste of time and incomplete.
chalk it up to experience (i've certainly hosed many an install learning), and move forward.
Let's do this from the terminal
In case you need to reset the permissions on sudoers, the permissions should be set to:
It is owned by root.root
I think most file system have permission of 755 for folders and 644 for files except for /bin which has executable files with root as owner.Hope this helps...