Quote:
	
	
		
			
				
					Originally Posted by  sortie
					 
				 
				Well, I just want a way around it for people on those type servers without setting uncommon file permissions.  I could make directories chmod 4777 and that would solve the problem, but I'd rather stick to things that people beter understand.  Everybody understands chmod 0777.  And some servers might actually flag chmod 4777 and plenty of servers will not let a perl script run as setgid.   
 
Any suggestions? 
			
		 | 
	
	
 Your script will have to test/set the umask, then change the settings, accordingly.  Herein lies the problem:  If your FTP user is not your Apache/Web 'running as' user, you can't do it through a browser.
So, since you're using Perl, I'd look into Net::FTP, and create a form where they re-enter their FTP username, password, and all of that, and it logs in, and issues SITE CHMOD commands for them.