Giter Club home page Giter Club logo

fakeuser's Introduction

fakeuser

LD_PRELOAD module to create fake users (use with fakeroot) Licence: GPL (C) 2013-2016 ProgAndy

This file is part of fakeuser.

fakeuser is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

fakeuser is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with fakeuser.  If not, see <http://www.gnu.org/licenses/>.

example-makepkg contains an example for makepkg with a package-function running in a fakeroot with libfakeuser.so as a LD_PRELOAD module.

fakeuser's People

Contributors

progandy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fakeuser's Issues

fakeuser.c:(.text.startup+0xb8): aviso: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

cc  -march=native -O2 -pipe -fno-plt -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -std=c99 -shared -fPIC -o libfakeuser.so fakeuser.c util.c -ldl -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
cc -march=native -O2 -pipe -fno-plt -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -std=c99 -o fakeadd fakeadd.c util.c -ldl -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
/usr/bin/ld: /tmp/cc23WqSK.o: en la función `fakeuser_init':
fakeuser.c:(.text.startup+0xb8): aviso: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

AUR PKGBUILD

Hi, I've just created a PKGBUILD for fakeuser, feel free to review it and to add a reference to it in your README if you want. Thanks.

Reason for creating it: probably it will be adopted here.

help or advice

hello,

this ticket is not related to a problem but to a request for help or advice.

I use the file explorer thunar and the editor mousepad as root user and I have a nice warning at the top of their interface.

just like fakeuser, and to avoid recompiling the two tools after modifying the source code, is it possible to make them believe that they are executed by another user while keeping root privileges ?

both tools use the geteuid function to display or not the warning (see here).

regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.