misc/64079: mount_mfs (md) refuses to use permissions when
mounting
Vasil Dimov
vd at datamax.bg
Fri Mar 12 04:40:10 PST 2004
The following reply was made to PR misc/64079; it has been noted by GNATS.
From: Vasil Dimov <vd at datamax.bg>
To: freebsd-gnats-submit at FreeBSD.org, jd at aurora.org
Cc:
Subject: Re: misc/64079: mount_mfs (md) refuses to use permissions when mounting
Date: Fri, 12 Mar 2004 14:39:08 +0200
> >Description:
> mount_mfs commands '-p' and '-w' do not work as expected when setting up a RAM filesystem on 5.2.1 (md)
did you try running mount_mfs manually?
> >How-To-Repeat:
> /etc/fstab:
>
> md /MIMEDefang mfs rw,-p 700,-w smmsp:smmsp,-s48m,noasync,noatime 0 0
>
> When mounted it results in permissions such as:
>
> drwxrwxrwt 3 root wheel 512
>
> No matter what the dir was BEFORE trying this command. The only way to get the permissions correct is to mount the RAM slice without '-p' and '-w' and then chown/chmod them afterwords.
Try the following:
1. substitute `mfs' in fstab with `foo'
2. ln -s /bin/echo /sbin/mount_foo
3. mount /MIMEDefang
... hmmz
man fstab:
: Each file system is described on a separate line; fields on each line are
: separated by tabs or spaces.
Hope this will help.
More information about the freebsd-bugs
mailing list