From owner-freebsd-questions Tue Jul 24 7:28:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 112DF37B40B for ; Tue, 24 Jul 2001 07:28:27 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Tue, 24 Jul 2001 15:28:14 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 15P2xb-0001EB-00; Tue, 24 Jul 2001 15:14:55 +0100 Date: Tue, 24 Jul 2001 15:14:55 +0100 (BST) From: Jan Grant X-X-Sender: To: Christoph Sold Cc: mcreynja , freebsd-questions Subject: Re: directory/file permissions srw_r_ _r_ _ In-Reply-To: <3B5D7A50.210EC3F9@i-clue.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Tue, 24 Jul 2001, Christoph Sold wrote: > > > 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 The first character describes the type of things these are - in this case, named sockets (rather than files). You won't be able to move them across filesystems - you'll need to shut down the appropriate programs that use them (syslog, named), point /var somewhere else, then restart them. > > > > 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 > > -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk Lambda calculus? I hardly know 'er! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message