Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building a site using the Yii framework. It's hosted on Ubuntu and I'm developing on Windows. When I upload changes to the live site (via filezilla), I need to change permissions on folders or files, upload the files, then change the permissions back. It's time consuming. Is there a way to change permission for a specific period of time, say 1 hour? So after an hour, they will change back?

share|improve this question
up vote 0 down vote accepted

You can change the permissions using a small bash script. In the beginning of your script, you place the command to change the permissions, then you use the command sleep 3600 (for an hour) and you continue the script with the commands to change permissions back.

Another way that looks better to me would be to let the permissions for normal operation and use ACL to allow the user you use for the file transfer.

share|improve this answer
ACL worked perfectly. Thanks for saving me lots of time:) – Mark Nov 4 '12 at 12:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.