Code: Select all
#chmod o-w /usr
And can someone please post the undo command as well, Thanks.
Code: Select all
#chmod o-w /usr
Code: Select all
ls -l
If not you can set it to that with this.drwxr-xr-x 11 root root 4096 Sep 26 09:38 usr
Code: Select all
sudo chmod 755 /usr
Code: Select all
abc@pc ~ $ cd /
abc@pc / $ ls -l
total 104
drwxr-xr-x 2 root root 12288 Oct 20 19:49 bin
drwxr-xr-x 3 root root 4096 Oct 20 19:59 boot
drwxr-xr-x 15 root root 4280 Oct 22 23:53 dev
drwxr-xr-x 138 root root 12288 Oct 23 01:23 etc
drwxr-xr-x 3 root root 4096 Sep 12 21:22 home
lrwxrwxrwx 1 root root 32 Sep 12 21:24 initrd.img -> boot/initrd.img-3.2.0-23-generic
lrwxrwxrwx 1 root root 33 Sep 12 21:14 initrd.img.old -> /boot/initrd.img-3.2.0-23-generic
drwxr-xr-x 24 root root 4096 Oct 20 19:49 lib
drwxr-xr-x 2 root root 4096 Oct 20 19:49 lib64
drwx------ 2 root root 16384 Sep 12 21:13 lost+found
drwxr-xr-x 3 root root 4096 Oct 23 01:23 media
drwxr-xr-x 2 root root 4096 Apr 19 2012 mnt
drwxr-xr-x 7 root root 4096 Sep 13 02:06 opt
dr-xr-xr-x 158 root root 0 Oct 22 23:52 proc
drwx------ 13 root root 4096 Sep 13 02:01 root
drwxr-xr-x 24 root root 820 Oct 22 23:54 run
drwxr-xr-x 2 root root 4096 Oct 20 19:56 sbin
drwxr-xr-x 2 root root 4096 Mar 5 2012 selinux
drwxr-xr-x 2 root root 4096 Apr 23 2012 srv
drwxr-xr-x 13 root root 0 Oct 22 23:52 sys
drwxrwxrwt 15 root root 12288 Oct 23 01:17 tmp
drwxr-xr-x 10 root root 4096 Apr 23 2012 usr
drwxr-xr-x 12 root root 4096 Oct 22 23:49 var
lrwxrwxrwx 1 root root 29 Sep 12 21:24 vmlinuz -> boot/vmlinuz-3.2.0-23-generic