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.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: