Re: chroot email + browser ???



On Fri, 24 Feb 2006 16:17:09 +0000, Kevin the Drummer wrote:

[...] My question regards what to do about attacks on an individual
user. I've been pondering the idea of creating a separate user account
for my email and web activities, running those clients as that user, and
the rest of my activities as a standard user. The standard user would
have permissions to do as they pleased with the internet user's files,
but not the other way around.

I've been setting stuff up like that for years, for CLI/TUI applications
it's a simple matter of adding the user, to /etc/suauth a line such as:

# Allow 'menno' access to .fetchmailrc and stuff
pine:menno:NOPASS

And an alias in ~/.profile and ~/.bashrc of user menno (which i may have
setup to autologin also (via /etc/inittab , or [XKG]DM)).

For X applications i use the .Xauthority file although one might (almost)
as well add a line to maybe ~/.xinitrc that does a 'xhost +local:'
provided the machine doesn't provide shell access occasionally. Here is
some what of an attempt at a howto - for FireFox under FVWM on Slackware:
http://groups.google.nl/group/alt.os.linux.slackware/msg/ee6ddf2b4f6c1828

Maybe there's a good way to chroot an email client or a web client.

First thing that comes to mind would be to add a * before the shell in
/etc/passwd (that should chroot to wherever the $HOME field points.)

My goal is to make email and browsing safer.

I don't think chrooting is going to add much (if any) to that end,
provided user/group protection bits are setup properly on your system...
Specifically you may want to look group/other bits on suid binaries:
http://groups.google.nl/group/alt.os.linux.slackware/msg/0664ccdbcf16ebfe

I don't chat or instant message, maybe some folks would have interest in
making those activities safer. What are your thoughts on this?

The network client applications under seperate user accounts, seems like a
good idee to me (obviosly), however chroot might well be more trouble then
it's worth IME. Recovering from a messed-up 'firefox' account, is just
emptying the home-dir and restore the bookmarks file from backup.

Note also with X apps an atacker has pretty much full-control over your
display (and may even be able to spy the keyboard) shoud they hack into
an abitrary application, so this doesn't effectively eliminate (browser)
session hijacking, or even key/pasphrase logging should you use an X-term
for ssh on the same desktop (another X-server on tty8 for instance would
be better still.) But such an attack may not be very easy to automate.

HTH.

--
-Menno.

.



Relevant Pages

  • Re: system does not finish booting but hangs - partly
    ... I created a new user profile which starts the same applications, and here I have no problem. ... "Margo Guda" wrote in message ... I can in fact access most of my stuff from a new user account I made. ... I think windowblinds is causing the trouble, and preventing other startup apps from running, but I don't get access to where windowblinds is loaded. ...
    (microsoft.public.windowsxp.basics)
  • Re: Group Policy via VPN
    ... Speed Group Policy Troubleshooting with the NEW GPHealth Reporter tool at ... I have a scenario where a branch office has a couple of Windows XP SP2 ... clients that connect to HQ via a site-to-site VPN connection. ... getting mapped drives via AD user account properties. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Open With.. functionality doesnt fully work
    ... the regvalue I posted is from a machine that doesn't work. ... Under Applications I do not see a 555.exe key ... here's Applications perms in the registry: ... only for the user account, which has no special permissions other than ...
    (microsoft.public.windowsxp.customize)
  • Re: Dont want other users to have access to my programs...
    ... There is not simple solution to this, especially if you have XP Home Edition ... understand that most applications weren't designed with a multi-user ... accounts while others may only be available in the user account in which it ... Second, if you have XP Pro, you might be able to use the Group Policy Editor ...
    (microsoft.public.windowsxp.basics)
  • Re: Domain users cannot run programs
    ... >>applications on Windows 2000 workstations. ... Because of the higher security in Windows 2000, you may not be able to ... Windows does not let a standard user or guest account run ... you use a Power User account or an account with higher privileges. ...
    (microsoft.public.win2000.security)

Loading