Bug 40355

Summary: /sbin/nologin is a shell script
Product: Base System Reporter: Richard Rose <rik+freebsd>
Component: binAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.shar none

Description Richard Rose 2002-07-08 21:00:02 UTC
	/sbin/nologin is a /bin/sh shell script, that could possibly be subverted
    by putting commands in /etc/suid_profile.

Fix: Use nologinmsg instead. This is source I have written, under a 2 clause
    BSD licence. My intention is to contribute it to the FreeBSD project,
    as a replacement for /sbin/nologin.

    To install into the source tree, just unshar under src/sbin.

    The following is the shar archive of the source.
How-To-Repeat:     N/A
Comment 1 Doug Barton freebsd_committer freebsd_triage 2002-07-10 09:12:16 UTC
State Changed
From-To: open->feedback


Can you explain more why this is a security problem? This is only going to happen 
if the admin wants it to.  

I think you'd be better off making a port out of your program, and then we can 
see if people think it's worth moving forward on. 


Comment 2 Doug Barton freebsd_committer freebsd_triage 2002-07-10 09:12:16 UTC
Responsible Changed
From-To: freebsd-bugs->dougb


I'll handle the feedback.
Comment 3 Doug Barton freebsd_committer freebsd_triage 2002-07-12 08:55:32 UTC
State Changed
From-To: feedback->closed


Originator is going to try this as a port instead