[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] WTF: Rettigheder



Niels Müller Larsen <sslug@sslug> writes:

> #! dvs INTET kan lade sig gøre nu
> #! vi sætter nu LÆSE-retten på
>  ~/tmp $ chmod 400 test1
>  ~/tmp $ ls test1
> ls: cannot access test1/fil2: Permission denied
> ls: cannot access test1/fil1: Permission denied
> fil1  fil2
[...]
> #! ls fungerer delvist, cd og rm ikke

Det er sikkert fordu du har et alias så 'ls' i virkeligheden er 'ls
--color=auto' eller 'ls --classify'. Ellers ville det ikek være
nødvendigt for den at lave et stat(2) kald på test1/fil2 og
test1/fil1.

> Med andre ord, som Bourne også skriver
> ls kræver både r og x, idet den foretager en cd for iterere gennem filerne.

Nej, ls foretager ikke en chdir(2) kald for at iterere gennem
filerne. Dette kan let ses ved at kører ls under strace. Hvis du
kalder ls uden argumenter vil den da heller ikke brokke sig.

Det er kun hvis ls skal vise mere end bare navnene på katalogindholdet
at ls har brug for at lave stat(2) kald og dermed kræve at x-bitten er
sat. Mere information inkluderer også bare angivelse af filtypen med
farve elelr med et suffix.

Så hvis Bourne skriver som du gør, så tager Bourne fejl, lige som det
websted der tidligere er blevet linket til.

//Makholm




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-07-01, 02:01 CEST [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] *