[Ilugc] Some doubts

  • From: gshah@xxxxxxxxxxxxx (Gourav Shah)
  • Date: Sat Feb 16 09:31:04 2008


On Friday 15 Feb 2008, Girish Venkatachalam wrote:
  
3. chmod +s /user/k3b
          Here 'S' denotes what?
      
Sticky bit.
    

The file permissions bits include an execute permission bit for file 
owner, group and other. When the execute bit for the owner is set to "s" 
the set user ID bit is set. This causes any persons or processes that 
run the file to have access to system resources as though they are the 
owner of the file. When the execute bit for the group is set to "s", the 
set group ID bit is set and the user running the program is given access 
based on access permission for the group the file belongs to. The 
following command:

chmod +s myfile

sets the user ID bit on the file "myfile". The command:

chmod g+s myfile

sets the group ID bit on the file "myfile".

Other related posts: