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>
Illustrating Unix File Permissions
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
Precision=TPTP+FP Precision=8080+10=8090≈0.89
Evaluation of a Biometric-based Authentication System
Recall=TPTP+FN Recall=8080+20=80100=0.80
Evaluation of a Biometric-based Authentication System
Accuracy=TP+TNTP+FP+TN+FN Accuracy=80+9080+10+90+20=170200=0.85
Evaluation of a Biometric-based Authentication System
F1-Score=2×Precision×RecallPrecision+Recall F1-Score=2×0.89×0.800.89+0.80=2×0.7121.69≈0.84
F1-Score
accurately measure the effectiveness of a security solution?Security Synapse