You are not logged in.
Hi
Previously I was using the yaourt. It is currently unmaintained.
So I tried with trizen. I got into an issue. I never use sudo. I need my user to be a sudo user, so that trizen works.
Is it safe to use trizen as root?
Thankyou
Last edited by makh (2018-07-22 15:35:55)
OS: Arch &/ Debian
System: LENOVO ThinkPad E14
Desktop: Xfce
Offline
No. As a rule, building packages as root is a no-no. More than that, running a random piece of software as root is generally not a great idea.
Having said that, why on earth does trizen want root? is it trying to automatically install packages or something?
Read `man sudoers`. It will show you how to get sudo access for a user.
All the best,
-HG
Offline
Trizen asks for sudo password for installing package using pacman, after it is built.
Arch is home!
https://github.com/Docbroke
Offline
I was going to say it should first check if sudo is available, but then I checked the code, and it does seem to do so. If sudo is not available, it uses su.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Trizen, yaourt etc... For building and package use user's privilage, for installing it use sudo. So, add your user to sudoers.
Offline
I was going to say it should first check if sudo is available, but then I checked the code, and it does seem to do so. If sudo is not available, it uses su.
Hello Sir!
This is exactly I was expecting. But this is not the case.
I dont use sudo. Yaourt never asked.
Now trizen doesnt actually does as you say!
Thankyou
OS: Arch &/ Debian
System: LENOVO ThinkPad E14
Desktop: Xfce
Offline
Maybe you need to configure the option `use_sudo=false`. I'm just guessing from the source code, I don't use trizen. see here
Offline
Maybe you need to configure the option `use_sudo=false`. I'm just guessing from the source code, I don't use trizen. see here
Hi
Where I have to do that exactly?
Thankyou
OS: Arch &/ Debian
System: LENOVO ThinkPad E14
Desktop: Xfce
Offline
If sudo is installed, it is detected and used, if it is not installed 'use_sudo' is set to zero on line 147.
If you have sudo installed, configure it. If you are not going to configure it, remove it.
If you do not have sudo installed, and trizen fails, post the complete command and output.
Last edited by Trilby (2018-07-17 14:33:14)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
If you have sudo installed, configure it. If you are not going to configure it, remove it.
sudo is part of base-devel, so remove it at your own risk. It's possible you'll end up with some dependency issues later on.
Offline
Ah, that's true. So it'd be better to configure it - but to make trizen work, either approach should work.
Last edited by Trilby (2018-07-17 15:09:52)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Hi
Well I created another user, as sudo. It works now. But yaourt was simpler.
Thankyou all...!
OS: Arch &/ Debian
System: LENOVO ThinkPad E14
Desktop: Xfce
Offline