Re: 54 GB in /var/log!!



On Sun, 26 Oct 2008 13:54:54 -0700, Craig White wrote:

On Sun, 2008-10-26 at 20:12 +0000, Beartooth wrote:
[....]
Obviously, I want to cut /var/log with electronic double-bitted
axes in both hands, to get to my user's GUI again; and to find the
source of the bloat and correct it.

What should I do first??
----
from command line, cut down your large log files by locating them...

# find /var/log -type f -size +2000k -exec ls -lh {} \; | awk '{ print
$8 ": " $5 }'

I can't see for sure how many spaces, if any, there are between
"print" and "$8"; but I can experiment.

Meanwhile, however, I'm getting other troubles. One error message
says "invalid argument + to size".

The man page is way beyond me to slog through in less than about
six months; but I did find a + on it; so I tried using the other + key.
No joy.

I also get an error message saying "missing argument to -exec"

and any file that is really large (i.e. /var/log/Xorg.0.log)

command line empty it...
# > /var/log/Xorg.0.log

if startx only works as root, it sounds as if some permission isn't
correct (possibly /etc/X11/xorg.conf is not 644, readable by all users).
Of course if that were the issue, /var/log/Xorg.0.log would tell you
that or if it were some other permissions issue, the problem would
probably be listed in /var/log/messages

I'm very weak on permissions; I can never remember the mnemonic
for those numbers. but I'll try "cd /etc/X11" and then "ls -l" to see if
that tells me anything either comprehensible or repeatable.

On Fedora 9, it often is enough to just do something like # mv
/etc/X11/xorg.conf /etc/X11/xorg.conf-bak # shutdown now -r

and it is automatically rebuilt upon reboot

I tried that, and got only the dread "out of range" message. I'll
try again with "system-config-display" and "system-config-display --
reconfig" It would be a great help to get X back for my user, if only to
enable c&p between the CLI and Pan.

Many thanks to all for the help so far!

--
Beartooth Staffwright, PhD, Neo-Redneck Linux Convert
Remember I know precious little of what I am talking about.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines



Relevant Pages

  • Re: Strange problem with System Volume Information folder
    ... The cacls command does not "sometimes fail" - ... difference, /P replaces permissions and /G appends them, for all intents ... Quite possible, he said that he tried it with the current user name, but certainly if you type in an invalid User Name the command will fail and return the exact error message! ... In my opinion the Cacls command is by all means the easiest way to gain access to the SVI folder, especially if you are using XP Home which requires you to reboot to safe-mode to do it in an alternate manner. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Filesharing by Windows server 2003 on workgroup
    ... Another consideration - set the share permissions for everyone full ... Did you define a share called "share" on your server? ... And receive a french error message meaning: ... I tried the command net use, but can't find the server neither. ...
    (microsoft.public.windows.server.general)
  • Re: ubuntu-users Digest, Vol 47, Issue 208
    ... Superuser confusion or maybe critically confused ... "Permissions" appears nowhere in Nautilus, so far as I can tell. ... I am attempting to learn to use command line. ...
    (Ubuntu)
  • Re: Isolate home directory shares
    ... I believe the command for one subfolder would be similar to: ... removes the inheritance flag but leaves existing permissions for the ... home directories are done with ADUC using profile tab: ...
    (microsoft.public.windows.server.general)
  • Re: File permissions?
    ... have to do it with root permissions, unless you want to change the ... This will open gedit with MyFile and the terminal isn't locked to it ... This redirects the output of the free -m command to the file MyFile. ... Personally I created my own alias ...
    (Ubuntu)