Hello Steven!
Saturday August 03 2024 09:32, you wrote to Andrew Leary:
> Bingo...
> Mint doesn't by default allow su, so I didn't think it was necessary anymore.
> I added a root password, and switched to root and everything
> worked as advertised. I always just figured sudo was equal to su, just
> on a limited basis.
For your education sudo and su are NOT the same just do a man su and man sudo to
find out.
Simply put su is used to temporarily switch to root to do some thing and at the
end you type exit to quit that mode / user.
Never but never run normally as root, EVER.
sudo allows you as user to run A process as root privs. only.
For most distros this involves setting sudo up by editing file /etc/sudoers as
root, adding the lines after :
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
and add new line for your user account i.e., for me as vince
vince ALL=(ALL) ALL
If needed do one for mbse i.e.,
mbse ALL=(ALL) ALL
You can replace ALL with restricted rights again see the file notes.
All this of course assumes you have set up the root password :)
Some distros do not do this as standard.
Vincent
--- Mageia Linux v9 X64/Mbse v1.1.0/GoldED+/LNX 1.1.5-b20180707
* Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
|