From owner-freebsd-questions@FreeBSD.ORG Sun May 18 04:01:55 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DB9237B401 for ; Sun, 18 May 2003 04:01:55 -0700 (PDT) Received: from smtp08.wxs.nl (smtp08.wxs.nl [195.121.6.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6310F43F75 for ; Sun, 18 May 2003 04:01:54 -0700 (PDT) (envelope-from freebsd@akruijff.dds.nl) Received: from Intranet.lan (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp08.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HF200JQRXA11K@smtp08.wxs.nl> for FreeBSD-questions@FreeBSD.org; Sun, 18 May 2003 13:01:13 +0200 (MEST) Received: from Intranet.lan (akruijff@localhost [127.0.0.1]) by Intranet.lan (8.12.6p2/8.12.6) with ESMTP id h4IB2Eu4016332 for ; Sun, 18 May 2003 13:02:14 +0200 Received: (from akruijff@localhost) by Intranet.lan (8.12.6p2/8.12.8/Submit) id h4IB2D7m016299 for FreeBSD-questions@FreeBSD.org; Sun, 18 May 2003 13:02:13 +0200 (CEST) Date: Sun, 18 May 2003 13:02:13 +0200 From: Alex de Kruijff To: FreeBSD Questions Message-id: <20030518110213.GA88040@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i X-Authentication-warning: Intranet.lan: akruijff set sender to freebsd@akruijff.dds.nl using -f Subject: problem removing directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex de Kruijff List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2003 11:01:55 -0000 Hi, I wanted to move /var/tmp to /tmp and symlink it for security reasons. I move /var/tmp to /var/tmp-old and copied the files to /tmp and them symlink /var/tmp to /tmp. So far so good. However, now i am unable to remove one directory and need some help in removing this. Intranet# ll total 1 dr-xr-xr-x 2 root wheel 512 Mar 16 22:04 empty/ Intranet# pwd /var/tmp-old/temproot/var Intranet# ll total 1 dr-xr-xr-x 2 root wheel 512 Mar 16 22:04 empty/ Intranet# rm -rf * rm: empty: Operation not permitted Intranet# mv empty /tmp/ mv: empty: Operation not permitted mv: /bin/rm: terminated with 1 (non-zero) status: Cross-device link Tanks for any help in advance, Alex