Jump to content

Featured Replies

Posted

Hi All,

 

I have read several online threads regarding umask, and its a great way to enforce default permissions, but I need more!

 

The process is, a user drop a file on my server via FTP, then a server process needs to read, and execute the file.

 

The user account and the application account is different accounts, but the do belong to the same group.

 

This means that I also cannot do a chmod 775 as the application user because I'm not the owner.

 

In the end the only way was to schedule a cron as root to set chmod 775 permissions recursively on the directories.

 

This is not my preferred method, and I would like something more concrete without dependencies like knowing the root password or cron daemon that needs to be running.

 

Is there no way to create a "trigger" of some sort that executed as soon as a file is received from a specific user or in a certain directory?

 

Regards

Stephan (slushpuppy)

 

Continue reading...

Join the conversation

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

Guest
Reply to this topic...