Fluxbox 0.9.12
I have the following at /usr/local/sbin/root-tail.username
Code:
#!/bin/sh
whoami #debug purpose
export XAUTHORITY=/home/username/.Xauthority
export DISPLAY=:0.0
/usr/X11R6/bin/root-tail /var/log/messages --frame
Then, /etc/super.tab with default and the following line added:
Code:
root-tail /usr/local/sbin/root-tail.username username
with all the permission untouched..
It return this:
Code:
username@apocalypse:~$ super -H
super version 3.26 patchlevel 0
(Use super -h for general usage information.)
Super.tab file: `/etc/super.tab'
===============================================
Commands available to user username (use option `-h' for a general usage listing):
super root-tail -> /usr/local/sbin/root-tail.username
Max per-arg length: 1000 chars; max over all args: 10000 chars.
User-entered arguments must match following patterns:
Args 1 - 99 must match pattern: [[-/:+.,_a-zA-Z0-9]]
Then, I invoke:
Code:
username@apocalypse:~$ super root-tail
username
/var/log/messages: Permission denied
Why, I followed the instruction at
http://www.linux-magazine.com/issue/09/Desktopia.pdf