You are not logged in.

#1 2018-07-16 13:37:34

makh
Member
Registered: 2011-10-10
Posts: 305

[Solved] Trizen as root user

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

#2 2018-07-16 14:10:56

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [Solved] Trizen as root user

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

#3 2018-07-16 15:37:48

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,448

Re: [Solved] Trizen as root user

Trizen asks for sudo password for installing package using pacman, after it is built.

Offline

#4 2018-07-16 15:39:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [Solved] Trizen as root user

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

#5 2018-07-16 15:45:08

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: [Solved] Trizen as root user

Trizen, yaourt etc... For building and package use user's privilage, for installing it use sudo. So, add your user to sudoers.

Offline

#6 2018-07-17 06:47:37

makh
Member
Registered: 2011-10-10
Posts: 305

Re: [Solved] Trizen as root user

Trilby wrote:

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

#7 2018-07-17 07:47:42

a821
Member
Registered: 2012-10-31
Posts: 389

Re: [Solved] Trizen as root user

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

https://github.com/trizen/trizen/blob/m … rizen#L280

Offline

#8 2018-07-17 13:32:57

makh
Member
Registered: 2011-10-10
Posts: 305

Re: [Solved] Trizen as root user

a821 wrote:

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

https://github.com/trizen/trizen/blob/m … rizen#L280

Hi
Where I have to do that exactly?
Thankyou


OS:  Arch  &/  Debian
System: LENOVO ThinkPad E14
Desktop: Xfce

Offline

#9 2018-07-17 14:32:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [Solved] Trizen as root user

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

#10 2018-07-17 14:50:12

Morganamilo
Package Maintainer (PM)
Registered: 2017-12-05
Posts: 77

Re: [Solved] Trizen as root user

Trilby wrote:

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

#11 2018-07-17 15:09:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [Solved] Trizen as root user

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

#12 2018-07-22 15:35:37

makh
Member
Registered: 2011-10-10
Posts: 305

Re: [Solved] Trizen as root user

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

Board footer

Powered by FluxBB