You are not logged in.

#1 2009-03-29 19:48:39

futuremonkey
Member
Registered: 2009-02-28
Posts: 49

[SOLVED] "cannot create directory /tmp/yaourt-tmp-foobar"

I installed yaourt via the pkgbuild method as a regular user (foobar).

Afterward, I added

foobar ALL=(ALL) NOPASSWD: /usr/bin/pacman
foobar ALL=(ALL) NOPASSWD: /usr/bin/pacdiffviewer

to sudoers.

I went to install pacman-color, as regular user:

$ yaourt -S pacman-color
mkdir: cannot create directory '/tmp/yaourt-tmp-foobar': Permission denied.

Hmm.  /tmp is owned by root:root and has drwxr-xr-x permissions.

I didn't think you were supposed to user yaourt with root permissions, because I never did before.  Sure enough, when I tried "sudo yaourt -S pacman-color" it freaked out and warned me that running pkgbuild stuff as root is a BAD IDEA.  So I'm kind of stuck.

I've been away from Arch for a while, but I don't remember yaourt being any big deal last time around.  Is this a bug, or am I doing something wrong?  Most likely the latter. wink

Last edited by futuremonkey (2009-03-29 19:55:58)

Offline

#2 2009-03-29 19:51:33

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: [SOLVED] "cannot create directory /tmp/yaourt-tmp-foobar"

The permissions on your /tmp are wrong.  Try "sudo chmod 1777 /tmp".

Offline

#3 2009-03-29 19:51:51

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] "cannot create directory /tmp/yaourt-tmp-foobar"

As root try:

chmod 1777 /tmp

--EDIT--

Yikes! Beaten by peart once again!

Offline

#4 2009-03-29 19:55:34

futuremonkey
Member
Registered: 2009-02-28
Posts: 49

Re: [SOLVED] "cannot create directory /tmp/yaourt-tmp-foobar"

Thanks, folks, that did the trick.  I figured it was something like that, but since this is a fresh install and I haven't had much time to break things yet I assumed the permissions were "as-intended".

Offline

Board footer

Powered by FluxBB