You are not logged in.

#1 2008-04-21 21:32:03

Yes
Member
Registered: 2008-03-29
Posts: 163

[SOLVED] ABS help - a generic question and permission issues

I was trying to install something from ABS, just to give it a try.  I chose iftop, in /community/network.  So I made the iftop directory in /home/alex/abs and copied the files from /var/abs/community/network/iftop there.  Then I entered the /home/alex/abs/iftop directory and ran 'makepkg -c'.  It failed, complaining that it lacked the permission to create the ~/iftop/src directory.  So, what's wrong?

Also, is there any easier way to find where things are other than just looking for them in all the /var/abs directory?

Thanks!

Last edited by Yes (2008-04-22 19:02:07)

Offline

#2 2008-04-21 21:36:52

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: [SOLVED] ABS help - a generic question and permission issues

can you copy/paste the actual error message?
you can do `find /var/abs -name 'pkgname'`

Offline

#3 2008-04-21 21:59:24

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: [SOLVED] ABS help - a generic question and permission issues

[alex@arch iftop]$ makepkg -c
==> Making package: iftop 0.17-6  (Mon Apr 21 17:58:02 EDT 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
mkdir: cannot create directory `/home/alex/abs/iftop/src': Permission denied

==> ERROR: An unknown error has occured. Exiting...

Thanks, I should have though to use find.

Last edited by Yes (2008-04-21 21:59:43)

Offline

#4 2008-04-21 22:08:25

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: [SOLVED] ABS help - a generic question and permission issues

hmm, are you sure you've got write access on it?
what's the output of `ls -l /home/alex/abs/iftop`

Offline

#5 2008-04-21 22:08:38

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

Re: [SOLVED] ABS help - a generic question and permission issues

What are the permissions of ~/abs and ~/abs/iftop ?
ls -la ~/abs
and
ls -la ~/abs/iftop

Offline

#6 2008-04-21 22:21:01

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: [SOLVED] ABS help - a generic question and permission issues

[alex@arch iftop]$ ls -l /home/alex/abs/iftop
total 4
-rwxr-xr-x 1 root root 692 2008-04-21 17:11 PKGBUILD
[alex@arch iftop]$ ls -la ~/abs
total 12
drwxr-xr-x  3 root root  4096 2008-04-21 17:10 .
drwxr-xr-x 52 alex users 4096 2008-04-21 17:03 ..
drwxr-xr-x  2 root root  4096 2008-04-21 17:11 iftop
[alex@arch iftop]$ ls -la ~/abs/iftop
total 12
drwxr-xr-x 2 root root 4096 2008-04-21 17:11 .
drwxr-xr-x 3 root root 4096 2008-04-21 17:10 ..
-rwxr-xr-x 1 root root  692 2008-04-21 17:11 PKGBUILD

I see it's owned by root... what are the permissions supposed to be/how should I change them to that?

Offline

#7 2008-04-21 22:56:25

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [SOLVED] ABS help - a generic question and permission issues

You (user) should own ~/abs and everything underneath. When you copy a dir from /var/abs, just do it as user, not a root.

Offline

#8 2008-04-21 23:07:36

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: [SOLVED] ABS help - a generic question and permission issues

as root do
`sudo chown -R alex.users ~/abs` to fix it this time
but remember what bender02 said
you can just copy the directory with `cp -r /var/abs/...` ~/abs

Offline

#9 2008-04-22 02:14:50

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

Re: [SOLVED] ABS help - a generic question and permission issues

kumico wrote:

as root do
`sudo chown -R alex.users ~/abs` to fix it this time
but remember what bender02 said
you can just copy the directory with `cp -r /var/abs/...` ~/abs

Kumico is correct, but just to clarify, you don't need sudo with root. wink
As root, do:

chown -R alex.users ~/abs

or, if you have sudo set up, do:

sudo chown -R alex.users ~/abs

as non-root. smile

Offline

#10 2008-04-22 19:00:17

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: [SOLVED] ABS help - a generic question and permission issues

Great, thanks!

Offline

#11 2008-04-22 19:28:11

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

Re: [SOLVED] ABS help - a generic question and permission issues

Nice to see you got it sorted out.
Next time DO NOT CREATE OR COPY TO DIRECTORIES WITHIN YOUR HOME DIRECTORY AS ROOT. wink

Offline

Board footer

Powered by FluxBB