-
Categories
-
Tags/Keywords
HTML bash smb CSS Linux svn Windows blog.bigsmoke.us Subversion WordPress PHP Ubuntu WLB07051 nutrition zimbra MySQL XTerm Firefox van der Molen Debian samba RAID shell Apache SSH ssl VIM X metabolism Gentoo mod_rewrite Family plugin WWW DNS HTTP Ruby RuG Screen Javascript MediaWiki xen CLI T61 postfix -
Recent Posts
-
Recent Comments
Tag: safe_mode
NFSN PHP file write permissions in safe_mode
I've been causing some (security) concerns for myself by thoughtlessly using the dreaded 777 permissions for upload directories to allow the various PHP-based websites that I host at nearlyfreespeech.net to write files there. What this drastic anti-security measure didn't allow me to is to manage these uploaded files through SSH (and SCP/Rsync). In the chroot jail which I'm allowed to enter through SSH, I am ‘me’, while the files created from PHP end up being owned by user ‘web’. However, for some reason these files didn't get owned by group ‘web’ of which the ‘me’ user is a member. Also, I got into trouble with new directories that were being created by the upload scripts.
Read More »