|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
After I completed my first build/installworld and ran mergemaster I now have a directory within /var/tmp called temproot which I am unable to delete. I thought it must be something to do with the "sticky bit" so ran chmod 0700 on it It now looks like this # ls -lo total 4 drwx------ 3 root wheel - 512 Oct 28 17:08 temproot drwxrwxrwt 2 root wheel - 512 Oct 30 23:20 vi.recover When I try deleting the directory whcih has empty directories within I get this # rm -rf temproot/ rm: temproot/var/empty: Operation not permitted rm: temproot/var: Directory not empty rm: temproot/: Directory not empty # cd temproot/var # ls -lo total 2 dr-xr-xr-x 2 root wheel schg 512 Oct 28 16:27 empty -bash-2.05b# dr-xr-xr-x 2 root wheel schg 512 Oct 28 16:27 empty So I checked out man chflags which says to append noschg, so i run # chflags noschg empty/ chflags: empty/: Operation not permitted chflags: empty/: Operation not permitted What am I doing wrong? If someone could point me in the right direction that would be great. Thanks ![]() |
|
#2
|
||||
|
||||
|
Try running mergemaster again and don't accept any changes. At the end, when it asks you if you wish to delete /var/tmp/temproot, say "yes"
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
|||
|
|||
|
Hi,
thanks for the reply. I tried as you suggested but : # mergemaster *** The directory specified for the temporary root environment, /var/tmp/temproot, exists. This can be a security risk if untrusted users have access to the system. Use 'd' to delete the old /var/tmp/temproot and continue Use 't' to select a new temporary root directory Use 'e' to exit mergemaster Default is to use /var/tmp/temproot as is How should I deal with this? [Use the existing /var/tmp/temproot] d *** Deleting the old /var/tmp/temproot rm: /var/tmp/temproot/var/empty: Operation not permitted rm: /var/tmp/temproot/var: Directory not empty rm: /var/tmp/temproot: Directory not empty Any more thoughts on this? Thanks |
|
#4
|
||||
|
||||
|
Try this:
cd /var/tmp/temproot/var/ chmod 777 empty rm -rf empty and see if that fixes it ![]() |
|
#5
|
|||
|
|||
|
Hi Scorpions4ever,
Thanks for the reply and suggestions. Unfortunately it didn't work ![]() # rm -rf empty/ rm: empty/: Operation not permitted In fact, after running mergemaster I had a whole new FS hierarchy under /var/tmp So I also tried # cd /var/tmp/temproot # ls bin boot dev etc mnt proc root sbin tmp usr var # cd .. # rm -rf temproot/ rm: temproot/var/empty: Operation not permitted rm: temproot/var: Directory not empty rm: temproot/: Directory not empty #cd temproot/ # ls -la total 6 drwxr-xr-x 3 root wheel 512 Nov 2 11:49 . drwxrwxrwt 4 root wheel 512 Nov 1 22:05 .. drwxr-xr-x 3 root wheel 512 Nov 2 11:49 var Any more ideas? Thanks for the help ![]() |
|
#6
|
||||
|
||||
|
The only thing I can think of is maybe there's something under empty/ with the schg bit set. Try this:
cd /var/tmp chflags -R noschg temproot/ rm -rf temproot/ |
|
#7
|
|||
|
|||
|
Thanks for all your help Scorpions4ever, but unfortunately that didn't work either.
I searched the freebsd mailing lists and saw a mention of someone else having this problem but not on how to fix it. I have posted to the freebsd-questions mailing list and will let you know the outcome. ![]() |
|
#8
|
|||
|
|||
|
Well,
It turns out I had kern_securelevel="0" set in my rc.conf which was preventing me from deleting this folder <D'oh> Thanks for all the help. ![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > File permissions and chflags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|