🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #1172

Re: /etc/mtab mode change with dismount

#1172
From: Rex Pruess
Date: Fri, 06 Nov 1992 12:35
14 lines
1094 bytes
jeffo@ux1.cso.uiuc.edu writes:
   > What is the correct way to keep the mode of /etc/mtab from changing to
   > root-only read and write when a volume is unmounted?
   > ... is the fix for this to make df(1) setuid root?

You could stuff something like the following in '/etc/crontab.local':

          1,31 * * * *  root  /bin/chmod 644 /etc/mtab

Not elegant, but probably adequate.
--
--
  Rex Pruess, Weeg Computing Center, University of Iowa, Iowa City, IA
     NeXTmail: Rex-Pruess@uiowa.edu ......... Phone: (319) 335-5452
Technical Details
Message-ID: <RPRUESS.92Nov6063554@yoyo.weeg.uiowa.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.uiowa.edu!news.weeg.uiowa.edu!news!rpruess
References: <Bx9rBD.F2E@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!sparky!uunet!news.uiowa.edu!news.weeg.uiowa.edu!news!rpruess
From: rpruess@yoyo.weeg.uiowa.edu (Rex Pruess)
Subject: Re: /etc/mtab mode change with dismount
In-Reply-To: jeffo@ux1.cso.uiuc.edu's message of Fri, 6 Nov 1992 00:42:35 GMT
Message-ID: <RPRUESS.92Nov6063554@yoyo.weeg.uiowa.edu>
Sender: news@news.weeg.uiowa.edu (News)
Nntp-Posting-Host: yoyo.weeg.uiowa.edu
Organization: U of Iowa, Iowa City, IA
References: <Bx9rBD.F2E@ux1.cso.uiuc.edu>
Date: Fri, 6 Nov 1992 12:35:54 GMT
Lines: 14