You are not logged in.

#1 2010-07-05 17:21:01

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

clyde in some cases uses su instead of sudo

Hello, when I type
$ clyde something
I get a numbered list of packages that match to 'something'; let's say I want to install package number 3, I type 3 and hit enter, then I am asked for Password:. The problem is that I'm being asked the root password, not the sudo one as I would like it to. The only really annoying thing about it is that afterwards, when I view the PKGBUILD with vim, I have no syntax highlighting because it is being runned as root rather than as sudo.

How can I solve this?

thanks for any help
renato

Offline

#2 2010-07-05 17:59:15

sisco311
Member
From: Romania
Registered: 2008-05-23
Posts: 112

Re: clyde in some cases uses su instead of sudo

Set the SUDO_USER environment variable:

export SUDO_USER="$USER"

don't drink unwashed fruit juice.
i never make predictions, especially about the future.

Offline

#3 2010-07-05 19:02:02

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: clyde in some cases uses su instead of sudo

ahhh, thanks smile

Offline

Board footer

Powered by FluxBB