You are not logged in.

#1 2008-04-18 01:47:46

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

makepkg

I am trying to figure out how to compile a tar ball. In the wiki, It says:

If you want to be able to install dependencies with makepkg as user (with makepkg -s, see below) you need to install sudo and add yourself to /etc/sudoers using this line:

<user> <hostname>=/usr/bin/pacman

How does this work? What is the hostname?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#2 2008-04-18 01:57:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,411
Website

Re: makepkg

To give yourself access to use sudo with any command add:

USER_NAME   ALL=(ALL) ALL

Change the last "ALL" to "/usr/bin/pacman" if you only want to get sudo access for pacman.

I have:

USER_NAME    ALL=(ALL)    NOPASSWD: /usr/bin/pacman

so I dont have to typ a passwrod for pacman.

Offline

#3 2008-04-18 02:47:07

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: makepkg

What page in the wiki are you referring to? I would like to fix that ambiguity.
EDIT: Nevermind, I found it. Fixed. Thanks.

Last edited by Misfit138 (2008-04-18 03:27:07)

Offline

#4 2008-04-18 10:39:22

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: makepkg

Thanks.


[root@myhost duncan]# DUNCAN    ALL=(ALL)    NOPASSWD: /usr/bin/pacman
bash: syntax error near unexpected token `('
[root@myhost duncan]#

What am I doing wrong?

Last edited by Raccoon1400 (2008-04-18 10:41:43)


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#5 2008-04-18 10:47:46

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: makepkg

Hi Raccoon1400,
you must modify /etc/sudoers file with the command visudo:
below the line:

root    ALL=(ALL) SETENV: ALL

add this:

duncan ALL=(ALL) SETENV: ALL

Save and exit

Last edited by luca (2008-04-18 10:48:07)

Offline

Board footer

Powered by FluxBB