On Fri, Apr 28, 2023 at 08:57:47PM -0400, Maureen L Thomas wrote:
> OK so I went looking on the net /debian/var to find out why it is running
> out of room.  All I could find is the directions to delete said files.  I
> will put them back, now.

Make sure you get the ownership and permissions correct.

unicorn:/var$ /bin/ls -ld */
drwxr-xr-x  2 root root  4096 Apr 22 06:25 backups/
drwxr-xr-x 12 root root  4096 Jul 31  2022 cache/
drwxr-xr-x  3 root root  4096 Mar  3  2018 games/
drwxr-xr-x 50 root root  4096 Jul 31  2022 lib/
drwxrwsr-x  2 root staff 4096 Nov 19  2017 local/
drwxrwxrwt  3 root root    80 Mar 25 16:03 lock/
drwxr-xr-x 15 root root  4096 Apr 24 08:12 log/
drwxrwsr-x  2 root mail  4096 Oct 28  2021 mail/
drwxr-xr-x  2 root root  4096 Jan 11  2018 opt/
drwxr-xr-x 10 root qmail 4096 Jan 12  2018 qmail/
drwxr-xr-x 26 root root   760 Mar 27 15:39 run/
drwxr-xr-x  6 root root  4096 Jan 29  2021 spool/
drwxrwxrwt  6 root root  4096 Apr 28 21:02 tmp/

Ignore "qmail" unless you happen to be using qmail, which is unlikely.
The rest should look like this.

In particular, note the permissions on /var/tmp.  That's "chmod 1777"
to get the sticky bit.

Reply via email to