You are not logged in.

#1 2020-09-22 12:17:42

traffic-light
Member
Registered: 2020-09-22
Posts: 2

AUR pkg permissions on another harddisk

Hello everyone.

I hope i can describe my problem good enough.
I searched on the internet but no information that helps me.

My situation:
I'm using YAY for installing AUR packages. The aurpackages are build on a diffrent harddisk and that one is mounted in /home/peter/.cache/yay
When i'm installing software with yay it sometimes fails because of permissions.
The strangest thing is that it not always fail but some packages do...
The PKG folder doesn't have any permissions set:

total 44K
drwxr-xr-x  7 peter 4.0K Sep 22 13:58 .
drwxr-xr-x 56 peter 4.0K Sep 22 11:55 ..
drwxr-xr-x  7 peter 4.0K Sep 22 11:56 discord-rpc
drwxr-xr-x  8 peter 4.0K Sep 22 14:13 .git
-rw-r--r--  1 peter  128 Sep 22 11:55 .gitignore
drwxr-xr-x  7 peter 4.0K Sep 22 11:56 openrct2-git
-rw-r--r--  1 peter  523 Sep 22 11:55 openrct2.install
d--x--x--x  2 peter 4.0K Sep 22 13:58 pkg
-rw-r--r--  1 peter 1.8K Sep 22 13:58 PKGBUILD
drwxr-xr-x  4 peter 4.0K Sep 22 13:58 src
-rw-r--r--  1 peter 1.1K Sep 22 11:55 .SRCINFO



My fstab configuration for this hardrive:
/dev/disk/by-uuid/[uuid-number] /home/peter/.cache/yay/ ext4 nodev,nofail,users,group,rw,suid,auto 0 0


I hope I've given enough information.

Thanks in advance

Greetings
Peter

Last edited by traffic-light (2020-09-22 12:20:18)

Offline

#2 2020-09-22 12:21:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: AUR pkg permissions on another harddisk

Your image link is broken, also if this is just text in a terminal, please actually post the text instead of screenshots instead via [ code ] [ /code ] tags without spaces.

Generally an ext4 drive does by definition contain a set of permissions, they are stored on the filesystem. Mount it and chown the directory to the correct permissions (... your user and user group) after the mount and it should retain that for the future.

Edit: Seeing that directory structure you must have manually tried something here, there should never be a reason for a PKGBUILD/pkg/.SRCINFO combination to just dangle like this.  Yay should create distinct folders for every PKGBUILD you download.

Last edited by V1del (2020-09-22 12:24:29)

Offline

#3 2020-09-22 12:34:54

traffic-light
Member
Registered: 2020-09-22
Posts: 2

Re: AUR pkg permissions on another harddisk

Yes, I did give the correct user and group to the yay folder.

The second thing you mentioned is automatically done trough yay..
I'm inside the openrct2-git folder over there

Offline

Board footer

Powered by FluxBB