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