Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 1998 16:00:49 +0000
From:      Michael Doyle <relyod@indigo.ie>
To:        Robert Jackson <d055633c@dc.seflin.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: chown vs chmod
Message-ID:  <3.0.5.32.19980326160049.00944930@pop.indigo.ie>
In-Reply-To: <Pine.3.89.9803261053.B11174-0100000@dc.seflin.org.>
References:  <199803242153.LAA12275@rocksalt.mui.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:15 26/03/1998 -0500, you wrote:
>Try SU
>

>> I'm going nuts over these "rights" issues.
>> 
>> how in the world do I get these chown and chmod stuff straight?
>> 
>> I sort of understand it, finally but haven't the faintest idea of 
>> what's good and what's not.  For instance, I need to be able to 
>> maintain the web pages and stuff.  root obviously has the rights to 
>> everything, and can do whatever.  not a good idea to use root all the 
>> time -- i get that part.  "nobody" and "nogroup" is what apache uses 
>> to get into whatever is needed.  ok, I'm with it so far.  I 
>> understand that I need to use chmod to allow and disallow to various 
.....

What I do on my server is to allow 770 (i.e. owner, and group read/write/exec)
to all the directory tree at and below the /usr/local/www/data directory

Then, since my login ID is in group wheel, I can read/write/create
files and folders in the directories necessary for apache to serve them 
as web pages.

Another option I used for a less trusted user was to create a sub-directory
below their home directory and create a sym-link to it in the 
/usr/local/www/data directory.

Hope these suggestions help

Mike

<><=====================================================><>
Michael Doyle                   phone: +353-1-661-0588
Network Administrator           http://www.co-operation-north.ie/
Co-Operation North		

E-mail: relyod@co-operation-north.ie	(0ffice)
	relyod@indigo.ie		(Personal)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19980326160049.00944930>