Re: User properties and how to make files with a specific group owner
On Thursday 10 July 2008 04:26:42 Andrew Falanga wrote: How do I get this to stop working like this and create files with UID=andy GID=www? Just a head's up: www is the group id from Apache by default, so doing this, you'll make the files writeable by the webserver, generally not something you want to do. It's better to create a seperate group, say 'wwwadmin'. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: User properties and how to make files with a specific group owner
On Wed, Jul 9, 2008 at 9:30 PM, Sahil Tandon [EMAIL PROTECTED] wrote: Andrew Falanga [EMAIL PROTECTED] wrote: I've not had to set this up and so far my efforts have proven less than successful. I'm working on a web project with my father and one other developer. I need to have it so that our user id's, when creating files in the directory we share the source code in, create the files with the group id common to the three of us. How do I do this? [...] New files are created with GID set to that of the directory in which they're contained. In your case, is that directory owned by user and group 'andy'? If so: Thank you. That is very helpful. I did not know that. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: User properties and how to make files with a specific group owner
On Thu, Jul 10, 2008 at 01:45:00PM +0200, Mel wrote: On Thursday 10 July 2008 04:26:42 Andrew Falanga wrote: How do I get this to stop working like this and create files with UID=andy GID=www? Just a head's up: www is the group id from Apache by default, so doing this, you'll make the files writeable by the webserver, generally not something you want to do. Only if the files have group write permission. Or was that covered in this thread already? jerry It's better to create a seperate group, say 'wwwadmin'. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: User properties and how to make files with a specific group owner
On Thursday 10 July 2008 17:12:36 Jerry McAllister wrote: On Thu, Jul 10, 2008 at 01:45:00PM +0200, Mel wrote: On Thursday 10 July 2008 04:26:42 Andrew Falanga wrote: How do I get this to stop working like this and create files with UID=andy GID=www? Just a head's up: www is the group id from Apache by default, so doing this, you'll make the files writeable by the webserver, generally not something you want to do. Only if the files have group write permission. Or was that covered in this thread already? I assumed it, since they want to work with 3 people on the same files. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: User properties and how to make files with a specific group owner
On Thu, Jul 10, 2008 at 05:32:15PM +0200, Mel wrote: On Thursday 10 July 2008 17:12:36 Jerry McAllister wrote: On Thu, Jul 10, 2008 at 01:45:00PM +0200, Mel wrote: On Thursday 10 July 2008 04:26:42 Andrew Falanga wrote: How do I get this to stop working like this and create files with UID=andy GID=www? Just a head's up: www is the group id from Apache by default, so doing this, you'll make the files writeable by the webserver, generally not something you want to do. Only if the files have group write permission. Or was that covered in this thread already? I assumed it, since they want to work with 3 people on the same files. OK. I missed that part. Sounds like they need to set up a virtual host tied to a login address - eg create a user, add content to user's public_html directory and make that ~newuser/public_html/ directory be the document root for the virtual host web site. Give those 3 users write access to that public_html directory, probably by making a unique group for it, making it group writable and world readable and put those users in that group. Playing around with ACLs would be more interesting for it. jerry -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: User properties and how to make files with a specific group owner
Andrew Falanga [EMAIL PROTECTED] wrote: I've not had to set this up and so far my efforts have proven less than successful. I'm working on a web project with my father and one other developer. I need to have it so that our user id's, when creating files in the directory we share the source code in, create the files with the group id common to the three of us. How do I do this? [...] New files are created with GID set to that of the directory in which they're contained. In your case, is that directory owned by user and group 'andy'? If so: % chown -R :www /path/to/shared/directory ... and every file created therein will have the default GID. -- Sahil Tandon [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]