From: Moritz Augsburger Date: Wed, 15 Apr 2009 10:45:18 +0000 (+0200) Subject: not every user is allowed to read logfiles... X-Git-Tag: v0.3.67~2 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=47571bf1c5ef12c02a26c4cc32ecb65ee4e1a48f;p=grml-etc-core.git not every user is allowed to read logfiles... Better way would be: create a command to test -r $file for all files in ARGV, prepend sudo only if not readable Signed-off-by: Moritz Augsburger --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 86e5243..4734ecb 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2290,9 +2290,9 @@ if [[ -r /etc/debian_version ]] ; then fi #a1# Take a look at the syslog: \kbd{\$PAGER /var/log/syslog} - alias llog="$PAGER /var/log/syslog" # take a look at the syslog + salias llog="$PAGER /var/log/syslog" # take a look at the syslog #a1# Take a look at the syslog: \kbd{tail -f /var/log/syslog} - alias tlog="tail -f /var/log/syslog" # follow the syslog + salias tlog="tail -f /var/log/syslog" # follow the syslog fi # sort installed Debian-packages by size