-
Categories
-
Tags/Keywords
PHP CSS Firefox plugin xen WWW postfix VIM zimbra ssl Ubuntu shell DNS WLB07051 Family XTerm SSH blog.bigsmoke.us WordPress Debian mod_rewrite van der Molen Windows nutrition samba T61 Subversion MySQL HTTP bash Screen Ruby Linux metabolism smb svn RuG MediaWiki Javascript HTML CLI Apache X Gentoo RAID -
Recent Posts
-
Recent Comments
Tag: chmod
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 »