home       inleiding       sysadmin       services       links       bash       werk       nothing      

oplossing gent 19 feb 2024

  688  sudo useradd -m lenny
  689  sudo useradd -m brigitte
  689  sudo passwd lenny
  689  sudo passwd brigitte
  690  sudo mkdir /home/lenny/bazaar
  691  ls -l ..
  692  sudo chmod 755 ../lenny
  693  ls -l ..
  694  sudo mkdir ../lenny/bazaar
  694  sudo chmod 775 bazaar
  695  cd ../lenny/
  696  ls
  697  ls -l
  698  chown lenny:users bazaar
  699  sudo usermod -a -G users lenny
  700  sudo usermod -a -G users brigitte
  701  ls -l
  702  cd bazaar/
  703  nano lenny_only
  704  sudo nano lenny_only
  705  sudo nano lenny_n_brigitte
  706  ls -l
  707  sudo chown lenny:lenny lenny_only 
  708  sudo chown lenny:users lenny_n_brigitte 
x     
  chmod 664 lenny_n_brigitte
x
  drwxr-xr-x 15 lenny    lenny    4096 Feb 19 15:55 lenny
  drwxrwxr-x 2 lenny users 4096 Feb 19 15:59 bazaar
x
  brigitte@mint-nov23-01:/home/lenny/bazaar$ ls -l
x   
  -rw-rw-r-- 1 brigitte brigitte  0 Feb 19 15:58 anything
  -rw-rw-r-- 1 lenny    users    87 Feb 19 15:59 lenny_n_brigitte
  -rw-r--r-- 1 lenny    lenny    40 Feb 19 15:54 lenny_only