Thread View: comp.sys.next.sysadmin
3 messages
3 total messages
Started by J.B. Nicholson-Owens
Fri, 06 Nov 1992 00:42
/etc/mtab mode change with dismount
Author: J.B. Nicholson-Owens
Date: Fri, 06 Nov 1992 00:42
Date: Fri, 06 Nov 1992 00:42
17 lines
950 bytes
950 bytes
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? I inserted and ejected a floppy disk on my 3.0 Cube and it changed the mode of /etc/mtab so that nobody but root can use df(1) (the 'df' command). On a related note, is the fix for this to make df(1) setuid root? I'm hesitant to do that, but if that's the only way to fix this problem... And lastly, on a clean 3.0 system, what is the output of the following command?: ls -lg /bin/df /etc/mtab Thanks. -- -- Jeff (jeffo@uiuc.edu) -- NeXTmail ok
Re: /etc/mtab mode change with dismount
Author: Rex Pruess
Date: Fri, 06 Nov 1992 12:35
Date: Fri, 06 Nov 1992 12:35
14 lines
1094 bytes
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
Re: /etc/mtab mode change with dismount
Author: Paul S. Sears
Date: Fri, 06 Nov 1992 16:19
Date: Fri, 06 Nov 1992 16:19
29 lines
1514 bytes
1514 bytes
In article <Bx9rBD.F2E@ux1.cso.uiuc.edu> jeffo@ux1.cso.uiuc.edu (J.B.
Nicholson-Owens) writes:
=>And lastly, on a clean 3.0 system, what is the output of the following
=>command?:
=>
=>ls -lg /bin/df /etc/mtab
=>
server1# ls -lg /bin/df /etc/mtab
-rwxr-sr-x 1 root operator 6692 Jul 21 11:40 /bin/df*
-rw-r--r-- 1 root wheel 762 Nov 1 20:07 /etc/mtab
server2# ls -lg /bin/df /etc/mtab
-rwxr-sr-x 1 root operator 6692 Jul 21 11:40 /bin/df*
-rw-r--r-- 1 root wheel 643 Nov 6 08:56 /etc/mtab
=>Thanks.
=>--
=>-- Jeff (jeffo@uiuc.edu)
=>-- NeXTmail ok
--
Paul S. Sears * sears@uh.edu (NeXT Mail OK)
The University of Houston * suggestions@tree.egr.uh.edu (NeXT
Engineering Computing Center * comments, complaints, questions)
NeXT System Administration * DoD#1967 '83 NightHawk 650SC
>>> SSI Diving Certification #755020059 <<<
"Programming is like sex: One mistake and you support it a lifetime."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads