not every user is allowed to read logfiles...
authorMoritz Augsburger <moemoe@grml.org>
Wed, 15 Apr 2009 10:45:18 +0000 (12:45 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 21 Apr 2009 08:25:53 +0000 (10:25 +0200)
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 <moemoe@grml.org>
etc/zsh/zshrc

index 86e5243..4734ecb 100644 (file)
@@ -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