From: drew@kinglear.cs.colorado.edu (Drew Eckhardt) Subject: Re: A couple of questions: Date: Thu, 15 Apr 1993 20:55:06 GMT
In article <734876801.F00077@remote.halcyon.com> Derek.Glidden@f42.n377.z1.fidonet.org (Derek Glidden) writes:
>...which I know I've seen the answers to, but I can't find them now.
>
>1) When I mount a DOS partition, it's mounted as:
>
>-rwx--x--x
>
>Which means root can get to it, but nobody else can. I'd like to be
>able
>to mount it 755 so other people can read from it, but not write to it.
>I know this has something to do with permissions on the mount executable
>
>and setuid or something like that, but I can't figure it out. I can
>chmod 755 /dos the mount point, but that only holds for the first
>directory under it, then everything is non-write-non-read again.
Nope, it's based on the umask at the time of the mount call. Instead
of a plan mount, do
umask 22
mount /dos
or whatever. For this reason, in my /etc/rc file I have
umask 22
mount -a
umask 0
instead of just a mount -a.
-- Boycott USL/Novell for their absurd anti-BSDI lawsuit. | Drew Eckhardt Condemn Colorado for Amendment Two. | drew@cs.Colorado.EDU Use Linux, the fast, flexible, and free 386 unix |