Re: Several users need to work in the same directory
Rico Secada wrote: > I know that the user can chmod the files he just created manually and > then set the execution bit, but in our case the developers sometimes > upload several new files using sftp, and I am wondering if they really > have to logon again using ssh and then manually set the execution bit > on every single newly uploaded file? > Why do the files need the execution bit? Are they scripts? And what kind of scripts, because even php files need not have the execute bit to be executed by a web server. Anyway, I don't think there is an automated way to create files that have the execute bit set. You can install some kind of daemon to monitor the directory for new files and change permissions, or a cron job. -- You have a reputation for being thoroughly reliable and trustworthy. A pity that it's totally undeserved. Eduardo M KALINOWSKI edua...@kalinowski.com.br -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Several users need to work in the same directory
On Sat, Mar 28, 2009 at 05:37:07PM +0100, Rico Secada wrote: > I know that the user can chmod the files he just created manually and > then set the execution bit, but in our case the developers sometimes > upload several new files using sftp, and I am wondering if they really > have to logon again using ssh and then manually set the execution bit > on every single newly uploaded file? sftp doesn't do well with permission bits. What about using rsync instead? The file is still transferred with ssh but all the attributes are preserved. Whould sudo help? Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Several users need to work in the same directory
Hi. Currently I am setting up a webserver and several people (developers) need access to the /var/www/our_domain directory. There also exists other users which shouldn't have access to the web files. Now first I thought about making the "our_domain" directory owned by "www-data" and "developer" group, and then have the permission set to 570, but I then discovered that when a user from the developer group creates a new file inside /var/www/our_domain, then it only inherits the group but not the group permissions. I then asked the user to change his umask, but at most he will be able to create a file with rw- and NOT with the execution bit set, thus making it impossible to run the file from the web server. I then changed everything back to root.developer, and then had the directory run with 775, but again whenever the user creates a file inside the directory the execution bit isn't set. I know that the user can chmod the files he just created manually and then set the execution bit, but in our case the developers sometimes upload several new files using sftp, and I am wondering if they really have to logon again using ssh and then manually set the execution bit on every single newly uploaded file? I hope I make sense. How is this normally handled? Best regards. Rico -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org