You are not logged in.
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
can you copy/paste the actual error message?
you can do `find /var/abs -name 'pkgname'`
Offline
[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
hmm, are you sure you've got write access on it?
what's the output of `ls -l /home/alex/abs/iftop`
Offline
What are the permissions of ~/abs and ~/abs/iftop ?
ls -la ~/abs
and
ls -la ~/abs/iftop
Offline
[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
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
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
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.
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.
Offline
Great, thanks!
Offline
Nice to see you got it sorted out.
Next time DO NOT CREATE OR COPY TO DIRECTORIES WITHIN YOUR HOME DIRECTORY AS ROOT.
Offline