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