Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2001 21:58:58 -0700 (PDT)
From:      Chris Fernando <chris_fernando@cybris.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/29887: chflags can not set 'noschg' to files in multiuser mode; can't update /kernel.
Message-ID:  <200108200458.f7K4wwo44152@freefall.freebsd.org>

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

>Number:         29887
>Category:       kern
>Synopsis:       chflags can not set 'noschg' to files in multiuser mode; can't update /kernel.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 19 22:00:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Chris Fernando
>Release:        4.4-RC
>Organization:
>Environment:
FreeBSD styx.sleem.net 4.4-RC FreeBSD 4.4-RC #2: Mon Aug 20 00:25:12 EDT 2001  haides@styx.sleem.net:/usr/src/sys/compile/STYX  i386
>Description:
after setting a file with chflags to 'schg', you can not unset ('noschg') it in multiuser mode. you must boot the system into single user mode to make changes to the file.

example in multiuser:
styx ~ #touch foo
styx ~ #chflags schg foo
styx ~ #chflags noschg foo
chflags: foo: Operation not permitted
>How-To-Repeat:
1) create a file
2) chflags schg <filename>
3) chflags noschg <filename>

step 3 should produce the error
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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




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