Page 1 of 1
How do you compile an application not as the ROOT user?[SOLVED]
Posted: Wed Jun 07, 2023 3:48 pm
by Jasper
Hi all
I guess my title says it all
Occasionally, I come across an application that requires to be built not as the ROOT user.
I am using Fossapup64-95, can someone enlighten me?
TIA
Re: How do you compile an application not as the ROOT user?
Posted: Wed Jun 07, 2023 3:51 pm
by Sofiya
Jasper wrote: Wed Jun 07, 2023 3:48 pm
Hi all
I guess my title says it all
Occasionally, I come across an application that requires to be built not as the ROOT user.
I am using Fossapup64-95, can someone enlighten me?
TIA
Re: How do you compile an application not as the ROOT user?
Posted: Wed Jun 07, 2023 4:41 pm
by dimkr
run-as-spot bash
to get a shell running as spot, then proceed normally from there.
Re: How do you compile an application not as the ROOT user?
Posted: Wed Jun 07, 2023 7:05 pm
by mikewalsh
dimkr wrote: Wed Jun 07, 2023 4:41 pm
run-as-spot bash
to get a shell running as spot, then proceed normally from there.
Wouldn't you then run into the issue of linking to/against root-owned system files? Or does that not matter? (Me no expert when it comes to compiling, 'cos my "skills" are utterly abysmal in this area!)
Mike.
Re: How do you compile an application not as the ROOT user?
Posted: Wed Jun 07, 2023 9:31 pm
by Jasper
@dimkr
Trying to compile a new update for BusyBox ....... that's an example of an application that requires one to compile not as the root user.
Re: How do you compile an application not as the ROOT user?
Posted: Thu Jun 08, 2023 9:18 am
by Burunduk
Jasper wrote: Wed Jun 07, 2023 9:31 pm
Trying to compile a new update for BusyBox ....... that's an example of an application that requires one to compile not as the root user.
This is a bit strange. I've recently compiled Busybox 1.36.1 on Fossapup64-9.5 as root without a problem.
Edit: Tried again, against GNU libc this time - OK. It's even easier - just make menuconfig
and then make
. It seems you've updated a lot of tools on your system, maybe this makes a difference.
Re: How do you compile an application not as the ROOT user?[SOLVED]
Posted: Thu Jun 08, 2023 2:42 pm
by Jasper
@Burunduk
Thank you as always for your input/suggestions lol and more often the solutions
I am going to have another attempt at this, not sure what I have missed. I will as suggested do menuconfig beforehand
The building tools I have updated but the core packages/libraries within Fossapup64-95 remain the same eg Python. This way hope updates will benefit other FP95 users. Unless I have uploaded an updated package ..... I do share them and add them as additional dependencies.
Re: How do you compile an application not as the ROOT user?
Posted: Thu Jun 08, 2023 3:45 pm
by dimkr
mikewalsh wrote: Wed Jun 07, 2023 7:05 pm
dimkr wrote: Wed Jun 07, 2023 4:41 pm
run-as-spot bash
to get a shell running as spot, then proceed normally from there.
Wouldn't you then run into the issue of linking to/against root-owned system files? Or does that not matter?
Yes, you'll link at libraries in /lib, /usr/lib, etc', and they may be root owned. But this doesn't matter, because spot has read permissions.
Re: How do you compile an application not as the ROOT user?
Posted: Fri Jun 09, 2023 2:07 pm
by mikewalsh
dimkr wrote: Thu Jun 08, 2023 3:45 pm
mikewalsh wrote: Wed Jun 07, 2023 7:05 pm
dimkr wrote: Wed Jun 07, 2023 4:41 pm
run-as-spot bash
to get a shell running as spot, then proceed normally from there.
Wouldn't you then run into the issue of linking to/against root-owned system files? Or does that not matter?
Yes, you'll link at libraries in /lib, /usr/lib, etc', and they may be root owned. But this doesn't matter, because spot has read permissions.
Fair comment! That's something new I've learned today. All "grist for t' mill". Thanks!
Mike.
Re: How do you compile an application not as the ROOT user?[SOLVED]
Posted: Sun Jun 11, 2023 12:06 pm
by Jasper
@Burunduk
Got it compile & working .............still unsure as to what I did wrong initially