Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2001 15:38:24 +0200
From:      Christoph Sold <so@server.i-clue.de>
To:        mcreynja@mailbox.orst.edu
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: directory/file permissions srw_r_ _r_ _
Message-ID:  <3B5D7A50.210EC3F9@i-clue.de>
References:  <AKEJJHMJGCHDOFCANDPOAEBLCAAA.mcreynja@mailbox.orst.edu>

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B5D7A50.210EC3F9>