GNU/Linux security model

Submitted by Alaa on Sun, 19/12/2004 - 11:24.
( categories: )

Each file has an owner and belongs to a group.

Each running process has an owner and belongs to a group.

Users may belong to multiple groups.

at any session a user has an active group, and process she starts will inherit this active group.

each user has a default active group.

users may change the current active group using the commands newgrp and sg.

this security model is sufficient for most needs because GNU/Linux tries to represent everything as a file.

Each file has 3 sets of permissions that apply to different users, one set applies to the file owner, one applies to members of the file's group and the last set applies to anyone else.

in case one needs more some kernel modules offer Access Control Lists which provide more fine grained control.

Permission grid

ReadWriteExecuteSetUIDSetGIDSticky
fileCan readcan modifyCan executeexecuted as if ownerexecuted as if were in that groupno effect
directorycan lscan make new files and delete filecan cd to directory and access its files and subdirectoriesno effectnew files get group & new dirs get setgidonly owners can delete files
alphabetical chmod+r+w+xu+sg+so+t
numerical chmod421400020001000

Reply





*

  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <ul> <pre> <blockquote> <img> <ins> <del> <br> <div> <span> <em> <h1> <h2> <h3> <h4> <h5> <h6> <code> <p> <hr>
  • You can insert tables with comma separated values (CSV) into the text, they will be automatically converted to appropriate HTML-tables.
  • You may link to images on this site using a special syntax
  • You can embed nodes within other nodes using the following syntax:
    [node:node_id,param_1="val1",param_2="val2"]
  • You may write mixed Arabic and English freely, line direction will be computed automaticaly
  • Glossary terms will be automatically marked with links to their descriptions