[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: [CPROG] c-funktionen chmod



Søren H.Sørensen <sslug@sslug> writes:

> Jeg skal bruge funktionen chmod for første gang. Kan man antage at de
> enkelte permissions er bitwise-OR-bare? Altså:

Du kan ikke bare antage det, du kan læse det i chmod(2):

  DESCRIPTION
         The mode of the file given by path or referenced by fildes
         is changed.

         Modes are specified by or'ing the following:
--------------------------------^^ 
                S_ISUID   04000 set user ID on execution

                S_ISGID   02000 set group ID on execution
[....]


Men jo, det er generelt en god antagelse at flag og modes kan OR'es
sammen.

-- 
 Peter Makholm     |   First you fall in love with Antarctica, and then it
 sslug@sslug |     breaks you heart. And if Antartcica doesn't do it
 http://hacking.dk |                                 Valerie Kenning might
                   |                                         -- Antarctica


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 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] *