Saturday, August 4, 2018

Notes on Linux Process Management

Notes on Linux Process Management
  • All processes have a PID and a group ID. The group leader is your shell (terminal).
  • So for a process to qualify as background, we change the process group usingsetgrp().
  • nohup ./a,out &
  • chmod 4750 file1.txt
    • 4 means SUID permission. An ordinary user can run this file with privileges of the actual owner of the file1.txt. Useful to allow an ordinary user to run commands accessible only to e.g. root.
      $chmod u+s file

Written with StackEdit.

No comments:

Post a Comment