Archive for October, 2003
move back one directory
Friday, October 3rd, 2003cd ..
remove file(s)
Friday, October 3rd, 2003rm -f myfile
rm -f myfile*
(will remove a file or multiple files without prompting)
rm -R myfolder
(will remove folders)
forbidden access apache userdir
Thursday, October 2nd, 2003After setting UserDir (in /etc/httpd/conf/httpd.conf) to use public_html (so that user accounts would have a website at servername/~username) I was getting a “forbidden” message when attempting to browse to the directory or files within it.
Fixed by:-
- setting permissions of user directory to 711:-
# chmod 711 /home/username
- setting permissions of public_html to 755:-
# chmod 755 /home/username/public_html
- stopping apache:-
# /etc/rc.d/init.d/httpd stop
- starting apache:-
# /etc/rc.d/init.d/httpd start
There are security implications for the above, but I won’t go into it here