* NLS problem for "root"
@ 1993-12-08 20:01 Stephen Kenkel
1993-12-08 21:07 ` Jeff Carter
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Kenkel @ 1993-12-08 20:01 UTC (permalink / raw)
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)
This is probably something simple, but I can't figure it out.
Its not file permissions--I've tried every possible combination.
It doesn't appear to be the Environment variables, I've reset them
esp. the NLS related variables.
I don't think its the catalog file itself--I get the same response on the
vendor supplied files in /usr/lib/nls/msg/*.cat
And yes, I've RTFM.
Any ideas greatly appreciated.
Stephen Kenkel
Exide Electronics
kenkel@exide.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: NLS problem for "root"
1993-12-08 20:01 NLS problem for "root" Stephen Kenkel
@ 1993-12-08 21:07 ` Jeff Carter
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Carter @ 1993-12-08 21:07 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-12-08 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-08 20:01 NLS problem for "root" Stephen Kenkel
1993-12-08 21:07 ` Jeff Carter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox