Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jeffc@soba.osf.org (Jeff Carter)
Subject: Re: NLS problem for "root"
Date: 8 Dec 1993 21:07:22 GMT	[thread overview]
Message-ID: <2e5fma$9kk@paperboy.osf.org> (raw)
In-Reply-To: 755380895@juliet.cs.duke.edu

In article <755380895@juliet.cs.duke.edu>, kenkel@duke.cs.duke.edu (Stephen Kenkel) writes:
> 
>   I'm having an odd problem with a DEC 3000  Alpha running
> OSF-1.  The NLS (Native Language support_) routines work fine
> for "joe blow user", but not for "root".  For example, I can create
> a catalog file with "gencat"
>    % gencat file.cat file.msg
> 
> As myself I can examine the file with "dspcat"
>    % dspcat file.cat 1
>      message ...
>      message ...
>      message .
>    
>    BUT, as root, I can't look at the file
>    %su
>    %dspcat file.cat 1
>      Unable to open specifed catalog (file.cat)

The NLS routines do not reference the NLSPATH environment variable when
executing as a privileged program (i.e. setuid to root) as this
represents a wide variety of interesting security holes. Depending on
what version of the code DEC has, it may also disallow the NLSPATH 
variable if logged in or su-ed to root (as appears to be the case).
A case can be made for allowing a "real" root user (logged in) to use
NLSPATH, but it is difficult to protect 'su' from "Trojan catalogs".

{Un}fortunately, dspcat is implemented using catopen(), so it gives you
the messages you would have seen if you had run the particular command
and generated its messages.


      reply	other threads:[~1993-12-08 21:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-12-08 20:01 NLS problem for "root" Stephen Kenkel
1993-12-08 21:07 ` Jeff Carter [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox