Hi,
I've done this silly thing. How can I bring old setting/permissions back.
Thanks advance
ubuntu@ubuntu:~$ sudo chmod 444 /var/www
[sudo] password for ubuntu:
ubuntu@ubuntu:~$ ls -l /var/www
ls: cannot access /var/www/index.html: Permission denied
ls: cannot access /var/www/http: Permission denied
total 0
d????????? ? ? ? ? ? http
-????????? ? ? ? ? ? index.html
ubuntu@ubuntu:~$ sudo chmod 751 /var/www
ubuntu@ubuntu:~$ ls -l /var/www
ls: cannot open directory /var/www: Permission denied
ubuntu@ubuntu:~$ su root
Password:
su: Authentication failure
ubuntu@ubuntu:~$ sudo chown root /var/www
ubuntu@ubuntu:~$ ls -l /var/www
ls: cannot open directory /var/www: Permission denied