Coder Social home page Coder Social logo

uroot's Introduction

Simple sandboxing without superuser privileges.

Иногда хочется установить какой-нибудь пакетик для временного пользования, а прав не хватает. Утилита uroot позволяет справиться с такой напастью, создавая песочницу с помощью unionfs поверх корневой файловой системы.

Вот пример использования:

user@host:~$ uroot
user@host:/$ fakeroot apt-get install -y ruby
....
Setting up ruby (1:1.9.3) ...
user@host:/$ ruby -e 'print "Hello World!\n"'
Hello World! 
user@host:/$ exit
exit
user@host:~$ ruby -e 'print "Goodbye World!\n"'
bash: ruby: command not found

usage: uroot [-h] [-d DIFFDIR] [-t TMPDIR] [-f] [cmd_arg [cmd_arg ...]]

positional arguments:
cmd_arg

optional arguments:
-h, --help            show this help message and exit
-d DIFFDIR, --diffdir DIFFDIR
                        Create named diff-directory, if this option is given
                        then diff-directory is not removed upon program
                        completion. Otherwise diff-directory will be
                        considered temporary and will be removed eventually.
                        You can choose where to create temporary diff-dirs
                        with -t option.
-t TMPDIR, --tmpdir TMPDIR
-f, --force-unmount   После завершения процесса
                        uroot, файловая система unionfs
                        будет отмонтирована лениво
                        (см. man umount), но если указана
                        опция -f, то отмонтирование
                        будет принудительным, а если
                        понадобится, то и с убийством
                        всех оппозиционно
                        настроенных процессов.

uroot's People

Contributors

subdir avatar

Watchers

Vladimir Lagunov avatar

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.