Exploring Ways to Securely Manage Access
November 11, 2024
sudo
and su
?Let’s explore the detailed differences between sudo
and su
!
sudo
and su
Commandssudo
: Executes a single command with superuser privileges. Example: sudo apt update
.su
: Switches to the superuser account or another user account. Example: su
or su - username
.sudo
: Limited to the command being executedsu
: Provides privileges to a shell until exitchmod
Command: Set permissions
chmod 710 <filename>
chown
Command: Change owner/group
chown <owner>.<group> <filename>
drwxr-xr-x - gkapfham users 31 Oct 07:27 .git
drwxr-xr-x - gkapfham users 2 Sep 18:16 .github
.rw-r--r-- 2.4k gkapfham users 2 Sep 18:23 .gitignore
drwxr-xr-x - gkapfham users 29 Oct 12:48 .quarto
drwxr-xr-x - gkapfham users 12 Sep 07:54 _extensions
drwxr-xr-x - gkapfham users 16 Sep 11:34 _freeze
drwxr-xr-x - gkapfham users 2 Sep 18:16 _include
.rw-r--r-- 125 gkapfham users 2 Sep 19:17 _publish.yml
.rw-r--r-- 1.8k gkapfham users 18 Sep 20:27 _quarto.yml
drwxr-xr-x - gkapfham users 31 Oct 07:30 _site
drwxr-xr-x - gkapfham users 18 Sep 21:35 css
drwxr-xr-x - gkapfham users 2 Sep 18:43 icons
drwxr-xr-x - gkapfham users 2 Sep 18:47 images
.rw-r--r-- 5.4k gkapfham users 28 Oct 21:21 index.qmd
drwxr-xr-x - gkapfham users 30 Oct 09:16 projects
.rw-r--r-- 247 gkapfham users 3 Sep 09:08 README.md
drwxr-xr-x - gkapfham users 29 Oct 07:27 schedule
drwxr-xr-x - gkapfham users 31 Oct 07:30 slides
drwxr-xr-x - gkapfham users 29 Oct 15:12 syllabus
Access Control List Storage
root:x:0:0:System administrator
messagebus:x:4:4:D-Bus system message bus daemon user
polkituser:x:28:995:PolKit daemon
cups:x:36:20:CUPS printing services
lightdm:x:78:78:Light Display Manager
systemd-coredump:x:151:993:Core dump user
systemd-network:x:152:152:Network management daemon
systemd-resolve:x:153:153:Resolver daemon
systemd-timesync:x:154:154:Time synchronization daemon
nm-openvpn:x:217:217:Virtual Private Network user
fwupd-refresh:x:992:991:Firmware update daemon
systemd-oom:x:993:992:Systemd Out Of Memory user
rtkit:x:994:994:RealtimeKit daemon for audio
nixbld1:x:30001:30000:Nix build user 1
Evaluation of a Biometric-based Authentication System
\[\begin{equation} \text{Precision} = \frac{TP}{TP + FP} \end{equation}\] \[\begin{equation} \text{Precision} = \frac{80}{80 + 10} = \frac{80}{90} \approx 0.89 \end{equation}\]
Evaluation of a Biometric-based Authentication System
\[\begin{equation} \text{Recall} = \frac{TP}{TP + FN} \end{equation}\] \[\begin{equation} \text{Recall} = \frac{80}{80 + 20} = \frac{80}{100} = 0.80 \end{equation}\]
Evaluation of a Biometric-based Authentication System
\[\begin{equation} \text{Accuracy} = \frac{TP + TN}{TP + FP + TN + FN} \end{equation}\] \[\begin{equation} \text{Accuracy} = \frac{80 + 90}{80 + 10 + 90 + 20} = \frac{170}{200} = 0.85 \end{equation}\]
Evaluation of a Biometric-based Authentication System
\[\begin{equation} \text{F1-Score} = 2 \times \frac{\text{Precision} \times \text{Recall}}{\text{Precision} + \text{Recall}} \end{equation}\] \[\begin{equation} \text{F1-Score} = 2 \times \frac{0.89 \times 0.80}{0.89 + 0.80} = 2 \times \frac{0.712}{1.69} \approx 0.84 \end{equation}\]
F1-Score
accurately measure the effectiveness of a security solution?Security Synapse