Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fakeroot]

The original version `fakeroot` uses `LD_PRELOAD` to coerce child processes that expect to run as superuser (root) into thinking they get to run as superuser. A rewrite based on `ptrace` exists, named `fakeroot-ng`.

0
votes
1answer
34 views

How do I make PKGBUILD to install to fake root before makepkg builds

I have a tree which I need to install with a foder named /usr. This folder exists in src folder. Now I need to write a function in PKGBUILD that installs to the fakeroot before the *.pkg.tar.gz is ...
0
votes
1answer
70 views

Permission problem with equivs-build

I am trying to install a vanilla texlive 2018 distribution on a ubuntu 16.04 machine following this guide: https://tex.stackexchange.com/questions/1092/how-to-install-vanilla-texlive-on-debian-or-...
18
votes
3answers
4k views

How fakeroot is not a security breach in Linux?

After reading some pretty nice answers from this question, I am still fuzzy on why you would want to pretend that you are root without getting any of the benefits of actually being root. So far, what ...
1
vote
0answers
44 views

Fakeroot on macOS tries to delete system directories

I’m having a problem with fakeroot on macOS. I created a pacman fork. When I’d like to delete a package, pacman tries to delete /usr/ instead of a subdirectory. On Linux, it is working fine, though. ...
1
vote
1answer
158 views

How to avoid running make as root in the last step of installing an application from source? [duplicate]

I am always reluctant to run make install as root as the last step of installing an application from source. After all, it allows executing arbitrary code form the Makefile. It has already happened to ...
2
votes
2answers
692 views

How to run old 32 bit linux software in a container inside a modern 64-bit distribution

I need to create a container to run an old proprietary software that used to work in my old 32 bit computer with Ubuntu 8.04. I have been adapting this software in successive OS upgrades by linking ...
3
votes
1answer
413 views

Within fakeroot, why does chown return EPERM even though it succeeds (but then again it didn't)?

I've been running into bizarre behavior when using chown(2) within a fakeroot environment. The following minimal program illustrates the issue: #include <fcntl.h> #include <stdio.h> #...
2
votes
2answers
878 views

fakeroot cdebootstrap: Failed to unshare: Operation not permitted [duplicate]

On Debian, when running: $ fakeroot cdebootstrap stable /tmp/foo cdebootstrap downloads the packages, but when it has to extract them, I get this error: E: Failed to unshare: Operation not ...
6
votes
2answers
5k views

Is it possible to run debootstrap within a fakeroot environment?

I have a script that prepares an installation image by running debootstrap, does some modifications on the files and then copies the files to a disk image backed up by a file. This works under root, ...
0
votes
1answer
293 views

fakeroot make-kpkg buildpackage

When I run make-kpkg --initrd buildpackage with concurrency_level set to 17, all cores are at 100% according to gnome-system-monitor, when running the cc1-jobs. When I run fakeroot make-kpkg --...
3
votes
1answer
1k views

dh_install: libnanomsg-dev missing files (usr/lib/*/lib*.a), aborting

I'm trying to backport libnanomsg-dev from jessie to squeeze and following this tutorial. Here's what I get: $ fakeroot debian/rules binary ... dh_testroot -O--parallel dh_prep -O--parallel ...
1
vote
0answers
541 views

fakeroot-ng with debootstrap variant fakechroot hangs on makedev

So I am trying to bootstrap a Ubuntu as unprivileged user on Ubuntu. The little script I am using is: #!/usr/bin/env bash DEBARCHIVE_URL="http://localhost:3142/de.archive.ubuntu.com/ubuntu/" LANG=...