zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: "Zsh Users" <zsh-users@sunsite.dk>
Subject: Re: Zsh configuration files
Date: Tue, 25 Nov 2008 18:32:30 +0000	[thread overview]
Message-ID: <20081125183230.33d860d4@news01> (raw)
In-Reply-To: <b2e43f8f0811250910l7828242bnf3c8e137756b2f16@mail.gmail.com>

On Tue, 25 Nov 2008 12:10:43 -0500
"Allan Caffee" <allan.caffee@gmail.com> wrote:
> > 2. For running as root, I can just link my normal-user .zshrc and .zshenv
> > files, and it'll detect that they're linked, and use the .zsh_* files from
> > my normal-user directory
> 
> That sounds really dangerous.  You're offering a hook for someone to
> execute arbitrary code as root.  If someone breaks your user account
> they could for example add a file in your home directory that resets
> the root password or does some other really mean things.  If you want
> root to have the same setup as your regular user you should put it
> somewhere that only root can write.

It's probably worth pointing out that if you use sudo, as many people do
(it's the normal method of accessing root in a lot of places), then it will
usually execute your own start up files: the shell starts up essentially as
for the user, except with UID 0.  Furthermore, the password for accessing
root in this case is the same as the user's own.  So it seems a lot of
people aren't too worried about this aspect.  They probably tend not to be
sites accesible by the general public.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


  parent reply	other threads:[~2008-11-25 18:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23 12:48 Maurí­cio
2008-11-23 13:03 ` Frank Terbeck
2008-11-23 15:30 ` Richard Hartmann
2008-11-24  1:14   ` Maurí­cio
2008-11-24 22:33     ` Benjamin R. Haskell
2008-11-25 17:10       ` Allan Caffee
2008-11-25 18:26         ` (OT?) " Benjamin R. Haskell
2008-11-25 18:50           ` Matt Wozniski
2008-11-25 18:32         ` Peter Stephenson [this message]
2008-11-25 18:57           ` Matt Wozniski
2008-11-26  1:50             ` Richard Hartmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081125183230.33d860d4@news01 \
    --to=pws@csr.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).