Rundown: sudo
Edit file as root
sudo -e ${file}
Launch GUI app as root
1app=gparted
2sudo -E ${app}
Useful for launching gparted in sway.
Edit users in /etc/passwd directly
1sudo vipw
You can't edit passwords without strange cyphers.
Edit groups in /etc/group directly
1sudo vigr