🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.security.unix
Article #148

Re: improved (?) security by requiring full path for commands issued by root?

#148
From: Christer Palm
Date: Fri, 16 Feb 2001 19:07
53 lines
3179 bytes
This is a multi-part message in MIME format.
--------------CC8C72541612CE7C469E2956
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

bob wrote:
> 
> Well, I wrote a nice little perl script to do this, thinking the script
> would be simple (which it was, actually), with the following results
> (which aren't simple):
> 
> Many commands on both linux and solaris are owned by other than root,
> users such as news, uucp, bin to name a few.  And on solaris many are
> writable by group, groups being similar to the preceding.
> 
> I suspect that these users cannot login (second field in /etc/shadow
> entry is '*') but I'm not sure of this.  So is this safe or what?  Where
> do I go from here?
> 
Right - more specifically the executable and the directories in its path
should only be writable by "trusted" users and groups. This also goes
for any shared libraries referenced by the executable. A user that
cannot log in can be considered trusted, as well as groups in which only
root or trusted users are members. You should be able to put this check
into your perl program as well fairly easily.

It would be nice to be able to have the kernel check this for you in
exec()...
--------------CC8C72541612CE7C469E2956
Content-Type: text/x-vcard; charset=us-ascii;
 name="palm.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Christer Palm
Content-Disposition: attachment;
 filename="palm.vcf"

begin:vcard 
n:Palm;Christer
tel;cell:+46 (70) 327 30 23
tel;fax:+46 (8) 23 49 01
tel;work:+46 (8) 23 49 00
x-mozilla-html:FALSE
url:http://www.nogui.se
org:NOGUI AB
adr:;;Palmfeltsv�gen 21;JOHANNESHOV;;SE-121 62;SWEDEN
version:2.1
email;internet:palm@nogui.se
title:UNIX-Specialist
x-mozilla-cpt:;-21600
fn:Christer Palm
end:vcard

--------------CC8C72541612CE7C469E2956--
Technical Details
Message-ID: <3A8D886F.7FC03E1E@nogui.se>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!news1.carrier1.net!amsnews01.chello.com!nntp1.chello.se!not-for-mail
References: <3A822606.E06E411E@none.for.me.com> <3A82E4A9.AE6F278B@nogui.se> <3A8C1C0A.CAB78DC1@none.for.me.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10952f,2a5221006d4e0ad9
X-Google-Attributes: gid10952f,public
X-Google-Thread: 10e732,2a5221006d4e0ad9
X-Google-Attributes: gid10e732,public
X-Google-Thread: 1133d0,2a5221006d4e0ad9
X-Google-Attributes: gid1133d0,public
X-Google-ArrivalTime: 2001-02-16 11:04:37 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!news1.carrier1.net!amsnews01.chello.com!nntp1.chello.se!not-for-mail
Message-ID: <3A8D886F.7FC03E1E@nogui.se>
From: Christer Palm <palm@nogui.se>
X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-12 i686)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.security.unix,alt.os.security,cern.security.unix
Subject: Re: improved (?) security by requiring full path for commands issued by 
 root?
References: <3A822606.E06E411E@none.for.me.com> <3A82E4A9.AE6F278B@nogui.se> <3A8C1C0A.CAB78DC1@none.for.me.com>
Content-Type: multipart/mixed;
 boundary="------------CC8C72541612CE7C469E2956"
Lines: 54
Date: Fri, 16 Feb 2001 19:07:08 GMT
NNTP-Posting-Host: 213.200.128.10
X-Complaints-To: abuse@chello.se
X-Trace: nntp1.chello.se 982350428 213.200.128.10 (Fri, 16 Feb 2001 20:07:08 MET)
NNTP-Posting-Date: Fri, 16 Feb 2001 20:07:08 MET
Organization: chello broadband