On Mon, Mar 30, 2009 at 9:05 AM, Itamar Reis Peixoto <
ita...@ispbrasil.com.br> wrote:

> what you think about a separated script called fixperms wich ends with
> exit ( 0 ) ?
>
> I use a command /usr/bin/fakeroot which allows most of the command to
succeed under non-root user
Fakeroot 
[1<http://www.scratchbox.org/documentation/user/scratchbox-1.0/html/fakeroot.html#fakeroot>]
is a utility that runs programs in an environment that looks as if they were
run with super-user privileges. It is used primarily for setting file
ownerships and modes before packaging them. You can for example create
device nodes and store them in a tarball while logged in as a normal user.
Of course, the programs run from a fakeroot session cannot really do
privileged system calls; fakeroot keeps an in-memory database of file
ownerships and such things.


!DSPAM:49d03f6632681441442462!

Reply via email to