Chuck Peters on Fri, 7 Dec 2001 20:00:19 +0100 |
On Fri, 7 Dec 2001, Jason Wertz wrote: > I maintain a web site with another individual and we each have our own > server accounts we use to update web pages. We both belong to the same > group but we have individual user accounts. All web pages are owned by > one of us and our common group. > > Permissions are set to 664 so that we should be able to edit each > other's files and upload over the others files. The problem is we > can't upload over each others files...when the remote file is owned by > the other person... (using the windows version of non-free SSH, it has > the best windows gui and we're non-profit so it's free to us) but > we're in the same group and the group has the same permissions as the > owner. Does the remote machine first delete the old file and rewrite > the new file (only the owner should be able to delete a file right?)? > Does it open the file for overwriting? Why is this not working? Use the user group scheme. Most Linux distros are setup so this will work ok, the umask setting needs to be 002 and each user needs to be assigned their own group. On Debian I set parameters for adding users in /etc/adduser.conf Add the users to a group, for example webdocs, you can use an existing group or better yet create one. Then add the setgid bit to the document root that you want the users to share. For example the following would set up the document root and proper permissions. mkdir /var/www/foobar chgrp webdocs /var/www/foobar chmod g+ws /var/www/foobar Then make sure you add the users to the webdocs group. Basically what it does is the directories and files are group writable. Note this will not be nice if you want lots and lots of people in one group. Chuck What title should I use today. Old Linux Geek. > > Thanks > > Jason Wertz > Senior Technology Specialist / WebMaster > Delaware County Community College > > > > > > ______________________________________________________________________ > Philadelphia Linux Users Group - http://www.phillylinux.org > Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce > General Discussion - http://lists.phillylinux.org/mail/listinfo/plug > > ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|