Re: Unable to delete empty directory /var/tmp/temproot

2003-11-05 Thread Sergey 'DoubleF' Zaharchenko
On Mon, 3 Nov 2003 21:34:05 - David Jenkins [EMAIL PROTECTED] probably wrote:

 On Mon, 3 Nov 2003, David Jenkins wrote:
 
 
 I have also tried:
 
  # chflags noschg empty/
  chflags: empty/: Operation not permitted
  chflags: empty/: Operation not permitted
 
  # chmod -R 0700 empty/
  chmod: empty/: Operation not permitted
 
  Please could someone point me in the right direction with this.
 
 
 
 
 You raised the security level. Immutable flag can't be removed if 
 securelevel  0.
 
 Boot into single user mode, then chflags noschg empty/
 
 
  Fer
 
 I booted to single user mode from the boot prompt, but was unable to do
 anything inside var because there were no directories there!?

You should have mounted it (and /usr, where chflags lives). Even better,
do a

# mount -a

 So, I booted to full mode then did
 
 # init 1
 
 Here, I tried as you suggested but yet again I got the same error.
 
 Also, when I boot up I have kern_securelevel=0 set in my rc.conf,
 which is not  0

It will be set to 1 when going multiuser. Make it -1 to prevent that.

-- 
DoubleF
Man invented language to satisfy his deep need to complain.
-- Lily Tomlin


pgp0.pgp
Description: PGP signature


Unable to delete empty directory /var/tmp/temproot

2003-11-03 Thread David Jenkins
Hi,

I am new to FreeBSD and recently completed my first build/installworld.
Everything went fine, except after running mergemaster it seems I have a
directory which I am unable to delete - /var/tmp/temproot.

When I searched the mailing lists I found a thread relating to this
problem but it did not say how to fix it.

The problem directory as I'm sure you all know is
/var/tmp/temproot/var/empty.

I have tried running mergemaster again and tried deleting it from within
there.

I have also tried:

# chflags noschg empty/
chflags: empty/: Operation not permitted
chflags: empty/: Operation not permitted

# chmod -R 0700 empty/
chmod: empty/: Operation not permitted

Please could someone point me in the right direction with this.

Regards,

David

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unable to delete empty directory /var/tmp/temproot

2003-11-03 Thread Fernando Gleiser
On Mon, 3 Nov 2003, David Jenkins wrote:


 I have also tried:

 # chflags noschg empty/
 chflags: empty/: Operation not permitted
 chflags: empty/: Operation not permitted

 # chmod -R 0700 empty/
 chmod: empty/: Operation not permitted

 Please could someone point me in the right direction with this.

You raised the security level. Immutable flag can't be removed if
securelevel  0.

Boot into single user mode, then chflags noschg empty/


Fer

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Unable to delete empty directory /var/tmp/temproot

2003-11-03 Thread David Jenkins
On Mon, 3 Nov 2003, David Jenkins wrote:


I have also tried:

 # chflags noschg empty/
 chflags: empty/: Operation not permitted
 chflags: empty/: Operation not permitted

 # chmod -R 0700 empty/
 chmod: empty/: Operation not permitted

 Please could someone point me in the right direction with this.




You raised the security level. Immutable flag can't be removed if 
securelevel  0.

Boot into single user mode, then chflags noschg empty/


   Fer

I booted to single user mode from the boot prompt, but was unable to do
anything inside var because there were no directories there!?

So, I booted to full mode then did

# init 1

Here, I tried as you suggested but yet again I got the same error.

Also, when I boot up I have kern_securelevel=0 set in my rc.conf,
which is not  0

?

David


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unable to delete empty directory /var/tmp/temproot

2003-11-03 Thread Lowell Gilbert
David Jenkins [EMAIL PROTECTED] writes:

 On Mon, 3 Nov 2003, David Jenkins wrote:
 
 
 I have also tried:
 
  # chflags noschg empty/
  chflags: empty/: Operation not permitted
  chflags: empty/: Operation not permitted
 
  # chmod -R 0700 empty/
  chmod: empty/: Operation not permitted
 
  Please could someone point me in the right direction with this.
 
 
 
 
 You raised the security level. Immutable flag can't be removed if 
 securelevel  0.
 
 Boot into single user mode, then chflags noschg empty/
 
 
  Fer
 
 I booted to single user mode from the boot prompt, but was unable to do
 anything inside var because there were no directories there!?

You have to mount them first.
This is covered in the FAQ.

 So, I booted to full mode then did
 
 # init 1
 
 Here, I tried as you suggested but yet again I got the same error.
 
 Also, when I boot up I have kern_securelevel=0 set in my rc.conf,
 which is not  0

Quoting the Fine Manual:

 If the security level is initially nonzero, then init leaves it
 unchanged.  Otherwise, init raises the level to 1 before going multi-user
 for the first time.  Since the level cannot be reduced, it will be at
 least 1 for subsequent operation, even on return to single-user.  If a
 level higher than 1 is desired while running multi-user, it can be set
 before going multi-user, e.g., by the startup script rc(8), using
 sysctl(8) to set the ``kern.securelevel'' variable to the required secu-
 rity level.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]