Article View: news.software.nntp
Article #28318Re: Safe to make nnrpd setuid root?
From: Marc SCHAEFER
Date: Sat, 23 May 1998 00:00
Date: Sat, 23 May 1998 00:00
24 lines
1539 bytes
1539 bytes
Gary Mills <mills@cc.umanitoba.ca> wrote:
> nnrpd will need to run as root while it obtains the passwd entry.
no, it doesn't need to:
-rw-r--r-- 1 root root 7689 Apr 25 11:20 /etc/passwd
-rw-r----- 1 root shadow 3276 May 22 09:02 /etc/shadow
It just needs, in that case, to have read access to the shadow file,
and thus it justs need to be sgid shadow.
Then the most damage that program can do is to read encrypted passwords.
No other danger. If you run crack from time to time, this will never
be a security risk.
NB: this is e.g. standard setting for UNIX/Linux (SuSE distribution).
Guess what are the access permissions of xlock ?
-rwxr-sr-x 1 root shadow 825384 Jun 12 1997 /usr/bin/X11/xlock
Tada. Immune against any bug in xlock (upto the point that the
biggest problem will be read-only access to the shadow file, which
is not a real problem with good passwords).
Technical Details
Message-ID:
<6k5uqr$4ru$1@vulcan.alphanet.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6k088i$kl$1@canopus.cc.umanitoba.ca>Show Full Headers
Complete Article Headers
Message-ID: <6k5uqr$4ru$1@vulcan.alphanet.ch> Subject: Re: Safe to make nnrpd setuid root? Date: Sat, 23 May 1998 00:00:00 +0000 From: Marc SCHAEFER <schaefer@alphanet.ch> References: <6k088i$kl$1@canopus.cc.umanitoba.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 355794124 Organization: ALPHANET NF -- Not for profit telecom research Newsgroups: news.software.nntp