Getting rid of new theme for top

Back in november, the default "theme" of the top command in Arch Linux was changed. Using red color and displaying processed as a tree rather than sorted by CPU usage, it made the command pretty useless and eye-hurting.

No idea why this change was performed, but I found how to …

more ...

Incompetent usage of chmod

Once more I came across a script where people were setting access rights using 'chmod -R 777 .' (just saw it as "make sure we have all permissions on this file")

While this is a very pragmatic approach (in fact it fixes every access right issues), it's not the way it …

more ...

Shutting down Qemu guest the correct way

Shutting down a Qemu guest from the command line can be quite easy if qemu was started with the -monitor option (eg : -monitor tcp:127.0.0.1:2023,server,nowait). One simply needs to connect to the port using telnet and issue a 'system_powerdown' command. Internally this will trigger …

more ...

Calling bash from SUID program

How do you make a shell script SUID ?

Unfortunately you can't directly set the 's' bit on the script. That is... you can but it will be ignored :-)

One of the possible hacks is to write a small C programm that will call the shell script. This executable can then …

more ...

Pages

  • About