this post was submitted on 28 Aug 2022
13 points (100.0% liked)

Linux

47362 readers
1286 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have been trying to use (#debian) #linux with separate partitions for /home and couple of others. However, I have been facing the problem of /var becoming full and thus blocking further updates and installations. Most of the time deleting /var/log/auth.log would help but now I have messed up and can't startup lightdm and using it from another tty. Can you guys share some tips and tricks as to avoiding this problem? I know keeping everything in one partition is one such trick. Anything else? #linux #foss #gnu #free_software #libre_software #disk #operatingsystems

you are viewing a single comment's thread
view the rest of the comments
[–] Helix@feddit.de 3 points 2 years ago
  • Make the var partition bigger (how big is it?)
  • use systemd and set a max size of the log files
  • use logrotate to set a max size
  • if auth.log is too big then it's probably a server so you might want to log to a syslog server instead of storing it on the system
  • or you set the SSH port to something different to reduce noise
  • or you disable logging for nonexistent users
  • or you set up fail2ban to stop bruteforce
  • or you set the SSH daemon spawn settings so it doesn't allow brute forcing
  • ...

there's basically endless solutions for this problem based on the actual source of the issue. What's the reason for you needing to delete the auth.log?