public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] fc-cache
@ 2009-08-25 22:26 meino.cramer
  2009-08-27 18:21 ` Stroller
  0 siblings, 1 reply; 3+ messages in thread
From: meino.cramer @ 2009-08-25 22:26 UTC (permalink / raw
  To: Gentoo


Hi,

I came accross a certain "behaviour" of my Linux I cannot explain
and I would like to change if possible,

I use Icewm and X.org as desktop environment.

Ending my work with a command like 

    sudo halt

from a terminal window results in no problem at all.

But:

When I do something like:

    aunpack mysourceproject.tar.7z; cd mysourceproject; \
    ./configure && make && make install; sudo halt

switch off my monitor and go to sleep, cause this will run for an
hour, and start my box next morning again, all fonts, which are
defined via xorg.conf are displayed in a very tine shape. Not affected
are fonts used by mutt/vim/mrxvt and other "text-only" applications.

I have to do a

    fc-cache

as root, restart Icewm/X and the problem is fixed.

But what is the reason for this? 

And what is the difference between doing a

    sudo halt

while sitting in front of my monitor and doing a

    sudo halt

unattended in a kind of batch job?

What is the correct place to define a custom command to
run on every system start (fc-cache in this case)?

Thank you very much in advance for any help!

Best regards
mcc


-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] fc-cache
  2009-08-25 22:26 [gentoo-user] fc-cache meino.cramer
@ 2009-08-27 18:21 ` Stroller
  2009-08-27 18:40   ` meino.cramer
  0 siblings, 1 reply; 3+ messages in thread
From: Stroller @ 2009-08-27 18:21 UTC (permalink / raw
  To: gentoo-user


On 25 Aug 2009, at 23:26, meino.cramer@gmx.de wrote:
> ...
> I use Icewm and X.org as desktop environment.
>
> Ending my work with a command like
>
>    sudo halt
>
> from a terminal window results in no problem at all.
>
> But:
>
> When I do something like:
>
>    aunpack mysourceproject.tar.7z; cd mysourceproject; \
>    ./configure && make && make install; sudo halt
>
> switch off my monitor and go to sleep, cause this will run for an
> hour, and start my box next morning again, all fonts, which are
> defined via xorg.conf are displayed in a very tine shape.

Um.... sorry if this is a dumb question, but does the `sudo halt`  
actually run? Here that would be sitting waiting for me to enter a  
password (but your /etc/sudoers may be configured  differently).

Stroller.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] fc-cache
  2009-08-27 18:21 ` Stroller
@ 2009-08-27 18:40   ` meino.cramer
  0 siblings, 0 replies; 3+ messages in thread
From: meino.cramer @ 2009-08-27 18:40 UTC (permalink / raw
  To: gentoo-user

Stroller <stroller@stellar.eclipse.co.uk> [09-08-27 20:28]:
> 
> On 25 Aug 2009, at 23:26, meino.cramer@gmx.de wrote:
> >...
> >I use Icewm and X.org as desktop environment.
> >
> >Ending my work with a command like
> >
> >   sudo halt
> >
> >from a terminal window results in no problem at all.
> >
> >But:
> >
> >When I do something like:
> >
> >   aunpack mysourceproject.tar.7z; cd mysourceproject; \
> >   ./configure && make && make install; sudo halt
> >
> >switch off my monitor and go to sleep, cause this will run for an
> >hour, and start my box next morning again, all fonts, which are
> >defined via xorg.conf are displayed in a very tine shape.
> 
> Um.... sorry if this is a dumb question, but does the `sudo halt` 
> actually run? Here that would be sitting waiting for me to enter a 
> password (but your /etc/sudoers may be configured  differently).
> 
> Stroller.
> 
> 

Hi

There are no dumb questions, Stroller, there are only dumb answers...
:)

You can configure /etc/sudoers to accept "sudo" without password and
execute a certain command via sudo with root rights or others.

On machines used by many users and or directly connected to a backbone
this may or is a security hole.

On my machine I am alone and sudoers is setup only to accept
passwordless "sudos" from me (my username)

The according line looks like this:
<my username>        ALL=(ALL)       NOPASSWD: ALL

Which means: accept any command without password compined with sudo.

This may or may not a discussable setting, though...

On the other side: A person who is able to crack my router and gain root
rights on my machine will not be stopped by sudoers-settings.
And the possibility to be able to crack a password is based on the
knowledge/tools to the attacker and the password but is not based
on the kind of user who owns it, whether it is a root password or
a users password does not matter...

Only my to photons...your light might be brighter... :o)

HTH!
Have a nice <time of day you currently have> ;)
Keep hacking!
mcc




-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-31  3:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-25 22:26 [gentoo-user] fc-cache meino.cramer
2009-08-27 18:21 ` Stroller
2009-08-27 18:40   ` meino.cramer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox