On Tue, Jun 19, 2001 at 07:06:45PM +0200, bernd b wrote:
> In DEBIAN new directories are made
> drwxr-sr-x. Of course this can be changed with umask
> But where is the default file permission and the setgid bit set?
> How should i create dirs which are default drwxr-xr-x; without the gid bit 
> set?
> 
> Also some dirs do not have execute permission for group and then have
> drwxr-S***. Why is this "S", and why have the setgid on anyway when group 
> itself cannot execute, thus groupid cannot be set?
> 
> Does someone know this?

i'm certain someone does. you're about to become one of them.

here's where i'd look--

        man ls

which points to

        info ls
        (or if you're sane, "pinfo ls" -- apt-get install pinfo)

which says

     The permissions listed are similar to symbolic mode specifications         
                                                    
     (*note Symbolic Modes::).  But `ls' combines multiple bits into the        
                                                    
     third character of each set of permissions as follows:                     
                                                    
    `s'                                                                         
                                                    
          If the setuid or setgid bit and the corresponding executable          
                                                    
          bit are both set.                                                     
                                                    

    `S'                                                                         
                                                    
          If the setuid or setgid bit is set but the corresponding              
                                                    
          executable bit is not set.                                            
                                                    

    `t'                                                                         
                                                    
          If the sticky bit and the other-executable bit are both set.          
                                                    

    `T'                                                                         
                                                    
          If the sticky bit is set but the other-executable bit is not          
                                                    
          set.                                                                  
                                                    

    `x'                                                                         
                                                    
          If the executable bit is set and none of the above apply.             
                                                    

    `-'                                                                         
                                                    
          Otherwise.                                                            
                                                    

it's not so important to know all these things -- but it's VITAL
to know hot to find out.

-- 
DEBIAN NEWBIE TIP #6 from Will Trillich <[EMAIL PROTECTED]> 
:
How do you keep text from SCROLLING BY TOO DAMN FAST? :)
Before pressing the ENTER key of a command that you know will
generate a lot of output, "pipe" it through your pager:
        ls -lR | pager
        locate tgz | pager
        grep -r pattern /home | pager
You can also try <SHIFT>-<PAGE-UP> to scroll back. This works
both at the console and in rxvt/xterm windows.

Also see http://newbieDoc.sourceForge.net/ ...

Reply via email to