Jump to content

Recommended Posts

Posted

I have a directory that I allow users to upload stuff to with a java ftp applet, but I want all their files to be uploaded with certain permissions so that a cron script of mine can come by later and resize their images. The script works, the ftp works, but the script fails on any files they upload because of permission issues. Is there a way I can change the umask on this directory so that when files are uploaded with the ftp applet, they are accessable later on by my script without me manually going in and chmod'ing everything after the fact?

 

www.bop123.com to get a glimpse of what I've built using this.

 

Thanks

Posted

You have probably already looked for this solution but have you checked if the applet allows you to change the permissions after uploading the file?

 

That's the only way I can think of, because, at least as far as I know, there's no way of changing the umask of files or directories :lol:

Posted

Yeah, I have emailed the makers of the applet at Jscape (jscape.com) and they have told me its not possible with the applet. I guess I'd have to set the umask of the individual ftp user that is logging in through the ftp applet, so that any new directories created by that ftp user get created with certain permissions. Is it possible to change the umask of ftp users created through cpanel?

Posted

I don't think that's possible either but submit a help desk ticket explaining your situation and perhaps the techs have a solution for your problem.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...