Re: I'm looking for "Virtual dummy shell" in linux?
From: Basile Starynkevitch [news] (basile-news_at_starynkevitch.net)
Date: 08/21/05
- Next message: Kasper Dupont: "Re: Is anyone able to compile this code"
- Previous message: Bill Marcum: "Re: Is anyone able to compile this code"
- In reply to: somez72: "I'm looking for "Virtual dummy shell" in linux?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 21 Aug 2005 18:32:53 +0000 (UTC)
On 2005-08-21, somez72 <somez72@hansfos.com> wrote:
> Hi,
> I'm looking for this kind of shell.
> I'll call this shell "Virtual dummy shell".
>
> Namely, When someone logined to linux box... this "Virtual dummy shell" will
> be invoked and reuturn some result to user according to command user issued.
>
> Conditions for this "Virtual dummy shell" is
>
> 1) after login in this "Virtual dummy shell" , give user root authority
> and acts as root user.
> 2) but don't influence to real root file system and system environment.
I don't think it has any real sense (or I don't understand your
question), since a shell is used to invoke commands (ie executable
programs which are not builtin!), and these commands do arbitrary
things, usually thru system calls (e.g. by using the glibc library).
So things has to be done at library (or system call) level, not only
at the shell level.
> Have ever someone seen this kind of dummy shell in linux?
The fakeroot command does something similar, by mascarading the low
level functions of the C library. From its man page (on Debian/Sid)
DESCRIPTION
fakeroot runs a command in an environment wherein it appears to
have root privileges for file manipulation. This is useful for
allowing users to create archives (tar, ar, .deb etc.) with
files in them with root permissions/ownership. Without
fakeroot one would need to have root privileges to create the
constituent files of the archives with the correct permissions
and ownership, and then pack them up, or one would have to
construct the archives directly, without using the archiver.
[...]
-- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile(at)starynkevitch(dot)net 8, rue de la Faïencerie, 92340 Bourg La Reine, France
- Next message: Kasper Dupont: "Re: Is anyone able to compile this code"
- Previous message: Bill Marcum: "Re: Is anyone able to compile this code"
- In reply to: somez72: "I'm looking for "Virtual dummy shell" in linux?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|