Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2001 15:14:55 +0100 (BST)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        Christoph Sold <so@server.i-clue.de>
Cc:        mcreynja <mcreynja@mailbox.orst.edu>, freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: directory/file permissions srw_r_ _r_ _
Message-ID:  <Pine.GSO.4.31.0107241513460.28974-100000@mail.ilrt.bris.ac.uk>
In-Reply-To: <3B5D7A50.210EC3F9@i-clue.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.31.0107241513460.28974-100000>