Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 2002 02:00:20 -0700 (MST)
From:      bsdc@xtremedev.com
To:        Robert Watson <rwatson@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: ACLs on the boot partition? [worked]
Message-ID:  <20021127015806.T44167-100000@Amber.XtremeDev.com>
In-Reply-To: <Pine.NEB.3.96L.1021126171908.88614H-100000@fledge.watson.org>
References:  <Pine.NEB.3.96L.1021126171908.88614H-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 26 Nov 2002, Robert Watson wrote:

> On Tue, 26 Nov 2002 bsdc@xtremedev.com wrote:
>
> > On Tue, 26 Nov 2002, Hiten Pandya wrote:
> >
> > > On Tue, Nov 26, 2002 at 11:21:28AM -0700, bsdc@xtremedev.com wrote the words in effect of:
> > > > On Tue, 26 Nov 2002, Bruno Miguel wrote:
> > > >
> > > > > On 25 Nov 2002 at 23:34, bsdc@xtremedev.com wrote...
> > > > >
> > > > > > How do I enable ACLs on the boot partition? tunefs -a enable /dev/ad0s1a
> > > > > > indicates it got set (in single user mode with / mounted readonly). But I
> > > > > > still can't set anything with setfacl(1). I tried booting to the fixit
> > > > > > floppy, hoping to set acls flag from there to my partition, but it doesn't
> > > > > > have tunefs. Is my only choice now to take the drive out and put it in
> > > > > > another FreeBSD machine and set it from there?
> > > > >
> > > > > If you are using UFS1, did you follow the procedures in /sys/ufs/ufs/README.acls ?
> > > >
> > > > No, not using USF1. / was formatted UFS2.
> > >
> > > tunefs -a /your/filesystem
> > >
> > > I think thats the one.
> > > Cheers.
> >
> > Tried that already on / in single user mode with it mounted readonly.
> > tunefs said it changed the flag, but didn't really. I also tried adding
> > acls to fstab for /, but no effect. Were you successful in doing this
> > for / ?
>
> tunefs changes the flag for the next mount, so doesn't take immediate
> effect.  Once you've tunefs'd a read-only file system, you need to unmount
> and remount it -- for the file system root, this generally means
> rebooting.  Just to confirm: you're running with GENERIC, or with a kernel
> that includes UFS_ACL, right?  (Normally the kernel will complain if you
> try to mount a file system with ACL support when ACLs aren't enabled).

Yeay! My mistake. I had assumed simply ctrl-d'ing after doing the tunefs
-a in single user mode was all that was needed (that a remount from ro to
rw would have done it), but indeed, it did require a reboot to get it to
take. Thanks all for the help.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021127015806.T44167-100000>