169 reputation
5
bio website adamantio.net
location
age
visits member for 2 years, 10 months
seen Nov 5 at 2:12

Feb
11
comment How to do a continous 'wc -l' with gnu texttools?
With grep you can add a filter to your stream: tail -n +0 -f <my.log> | grep --line-buffered <mystring> | awk '{printf "\r%lu", NR}'
Feb
26
comment Multi-line replace
I find that python & regex are much flexible than sed in complex multi-line substitutions.
Aug
8
answered How to measure the time when a packet arrives?
Aug
3
answered How to have tail -f show colored output
Aug
3
revised How to restrict to run commands in specific directory through SUDOERS?
added 77 characters in body
Aug
3
revised How to restrict to run commands in specific directory through SUDOERS?
added 90 characters in body
Aug
3
revised How to restrict to run commands in specific directory through SUDOERS?
edited body
Aug
3
revised How to restrict to run commands in specific directory through SUDOERS?
edited body
Aug
3
awarded  Commentator
Aug
3
comment How to restrict to run commands in specific directory through SUDOERS?
@Gilles I agree with you. While maybe possible to filter which kind of file can be chmodded with a regex, there isn't a safe solution to stop a sudoer user to chmod 666 a link to other resource.
Aug
2
comment What prevents a machine from responding to pings?
and libselinux-utils (for setenforce)...
Aug
2
revised What prevents a machine from responding to pings?
added 103 characters in body
Aug
2
comment What prevents a machine from responding to pings?
check if you have installed the policycoreutils package
Aug
2
comment What prevents a machine from responding to pings?
stop the firewall with the service command service iptables stop and to disable it at boot time use chkconfig iptables off
Aug
2
revised What prevents a machine from responding to pings?
added 65 characters in body
Aug
2
answered What prevents a machine from responding to pings?
Aug
2
answered filter file for specific date
Aug
2
comment How to restrict to run commands in specific directory through SUDOERS?
probably [0-9a-zA-Z]+:[0-9a-zA-Z]+
Aug
2
comment How to restrict to run commands in specific directory through SUDOERS?
/bin/chmod [0-7][0-7][0-7] /var/www/html/* should also work
Aug
2
revised How to restrict to run commands in specific directory through SUDOERS?
added 12 characters in body