undcemcs02.und.edu
.~/public_html/test.php
.chmod
, for example:
shell> chmod 711 ~/../userid shell> chmod 711 ~userid/public_html shell> ls -all ~userid/public_html/ total 104 drwxr-xr-x 2 userid cslinux 4096 Jan 5 2017 ./ drwxr-xr-x 67 userid cslinux 4096 Mar 13 2016 ../ -rw-r--r-- 1 userid cslinux 4854 Nov 20 2014 a.out -rw-r--r-- 1 userid cslinux 5977 Jan 5 2017 index.html -rwx------ 1 userid cslinux 227 Nov 20 2016 test.php shell> chmod 755 ~userid/public_html/test.php shell> ls -all ~userid/public_html/ total 104 drwxr-xr-x 2 userid cslinux 4096 Jan 5 2017 ./ drwxr-xr-x 67 userid cslinux 4096 Mar 13 2016 ../ -rw-r--r-- 1 userid cslinux 4854 Nov 20 2014 a.out -rw-r--r-- 1 userid cslinux 5977 Jan 5 2017 index.html -rwxr-xr-x 1 userid cslinux 227 Nov 20 2016 test.php†Note that the newest system MAY not require this step because the one executes the script may be the owner himself or herself:
~/public_html/test.php,
http://shell.und.edu/~user.id/test.php
|
Doctor: You should take at least 10 glasses of water every day. Patient: It is impossible. Doctor: Why? Patient: I have only 4 glasses at home! |