[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] group permissions



Den Mon, 25 Feb 2008 21:26:39 +0100 skrev Kristian Nørgaard:
> Jeg er irriteret over at når der gennem min web-server skabes et dir:
> f.eks.
> 
> drwxr-xr-x  6 www-data www-data 4096 2008-02-24 13:36 dirThruWeb
> 
> så vil jeg gerne at gruppen www-data også har skrive rettigheder:
> 
> drwxrwxr-x  6 www-data www-data 4096 2008-02-24 13:36 dirThruWeb
> 
> hvordan kan jeg sikre at det sker hver gang www-data opretter et nyt
> dir?

Du kan:

 - Sørge for, at moder-kataloget til de
   kataloger, du skaber har s og w sat for
   gruppen:
   drwxrwsr-x motherdir
   (mode: 02775 i modsætning til fx 0775)

   Dette gør, at nye filer/kataloger skabt i
   motherdir får samme gruppejer som motherdir,
   hvilket antagelig er hensigtsmæssigt i din
   situation.

 - Sørge for, at den katalog-skabende
   proces har umask 002 i stedet for 022. Hvordan det sker, 
   afhænger af, hvorledes programmet startes (fx Apache init-script),
   og/eller kan muligvis specificeres i en konfigurationsfil 
   og/eller i din (fx PHP-) kode, du måtte anvende.

-- 
Regards,
Troels Arvin <sslug@sslug>
http://troels.arvin.dk/


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-03-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *