From owner-freebsd-questions Tue Jul 24 6:36: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id BEA9837B401 for ; Tue, 24 Jul 2001 06:36:01 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id PAA29350; Tue, 24 Jul 2001 15:44:04 +0200 Message-ID: <3B5D7A50.210EC3F9@i-clue.de> Date: Tue, 24 Jul 2001 15:38:24 +0200 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.78 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: mcreynja@mailbox.orst.edu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: directory/file permissions srw_r_ _r_ _ References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jason McReynolds wrote: > > I am trying to move my /var file system to /usr/var to free up space > in the root directory. When I try to do this I get the message that > /var/run/log and /var/run/ndc cannot be copied. > I looked and saw that the permssions were: > > srw-rw-rw- for log > srw------- for ndc > > I am guessing that the s in the directory (1st) slot is keeping me > from copying these files. I tried to change the permissions, but was > unsuccessful. How can I copy these files/directories to /usr/var/un so > I can link /var to /usr/var??? Do it in single user mode. In multi user mode, some log and PID files will be open, causing the delete operation to fail. # tar cf - /var | (cd /usr; tar xpf - ) # shutdown now # mv /var /var.old //play it safe # ln -s /usr/var /var Check if /var symlink works # rm -rf /var.old # ^D HTH -Christoph Sold HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message