Tidying up Python
Bjarne D Mathiesen
macintosh at mathiesen.info
Fri Jul 11 11:36:50 UTC 2025
I'm aware of those issues.
I'm having at least 3 Terminal windows open
1) normal user w/ bash shell
2) admin user [su admin] & bash shell
3) admin user as root [su admin] & [sudo bash]
Usually, I've much more to do as [root] that just adminstering MP
eg changing owners & permissions for dirs & files to _www & _mysql
Always having to prefix w/ sudo is a PITA
YMMW
Den 11.07.2025 kl. 12.55 skrev Chris Jones via macports-users:
>
>>> Prefix those commands with "sudo" for normal root MacPorts
>>> installations.
>>
>> Well, I'm running under "sudo bash" under my admin account to avoid
>> having to prefix every admin task w/ "sudo"
>
> That is in general dangerous and not to be recommended.
>
> The better way is to configure your sudoers list to allow your regular
> user account to run the port command through sudo without requiring a
> password. Its trivial to do and there are plenty examples on the web on
> how to do it. e.g.
>
> <https://askubuntu.com/questions/159007/how-do-i-run-specific-sudo-
> commands-without-a-password>
>
> This is way better than doing everything in a `sudo bash` shell as
> *only* that one command will run without requiring a password. Whereas
> what you are doing everything you type in that terminal session, good or
> bad, will run with sudo privileges.
--
Bjarne D Mathiesen
Slagelse ; Danmark ; Europa
-----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 5.1 ; OpenCore + macOS 14.7.6 Sonoma
2 x 3,46 GHz 6-Core Intel Xeon ; 192 GB 1333 MHz DDR3 ECC RDIMM
ATI Radeon RX 590 8 GB
More information about the macports-users
mailing list