From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e2cd096b19d04080 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-12-09 11:28:37 PST Path: gmd.de!xlink.net!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!paperboy.osf.org!jeffc From: jeffc@soba.osf.org (Jeff Carter) Newsgroups: comp.unix.osf.osf1 Subject: Re: NLS problem for "root" Date: 8 Dec 1993 21:07:22 GMT Organization: Open Software Foundation Distribution: world Message-ID: <2e5fma$9kk@paperboy.osf.org> References: <755380895@juliet.cs.duke.edu> NNTP-Posting-Host: soba.osf.org Keywords: catopen, dspcat, root, osf1 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.