skatetrash13
28.11.04, 13:29
ich hatte vor längerer Zeit mal xrootconsole ausprobiert und war sehr zufrieden damit.
jetzt würde ich dieses tool wieder gerne nutzen, aber es gibt probleme.
google und die suchfunktion brachten zwar paar ergebnisse, aber mein problem ist anders :)
auf jeden fall sieht meine /etc/sudoers abschnittsweise so aus:
....
mein_username ALL=NOPASSWD: /usr/bin/tail
mein_username ALL=NOPASSWD: /usr/bin/xrootconsole
mein_username ALL=NOPASSWD: /var/log/messages
...
wenn ich dies hier mache:
$ sudo tail /var/log/messages
Nov 28 14:08:03 struggle sudo: thrasher : TTY=pts/0 ; PWD=/home/thrasher ; USER=root ; COMMAND=/usr/bin/tail /var/log/messages
Nov 28 14:08:05 struggle sudo: thrasher : TTY=pts/0 ; PWD=/home/thrasher ; USER=root ; COMMAND=/usr/bin/tail /var/log/messages
Nov 28 14:08:55 struggle sudo: thrasher : TTY=pts/0 ; PWD=/home/thrasher ; USER=root ; COMMAND=/usr/bin/tail -e /var/log/messages
Nov 28 14:09:15 struggle su(pam_unix)[23918]: session opened for user root by thrasher(uid=1000)
Nov 28 14:09:22 struggle su(pam_unix)[23918]: session closed for user root
Nov 28 14:10:01 struggle /usr/sbin/cron[24063]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Nov 28 14:20:02 struggle /usr/sbin/cron[25791]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Nov 28 14:24:02 struggle su(pam_unix)[26473]: session opened for user root by thrasher(uid=1000)
Nov 28 14:25:43 struggle su(pam_unix)[26473]: session closed for user root
Nov 28 14:25:48 struggle sudo: thrasher : TTY=pts/0 ; PWD=/home/thrasher ; USER=root ; COMMAND=/usr/bin/tail /var/log/messages
funktionert das prächtig
wenn ich dieses mache:
$ xrootconsole sudo tail /var/log/messages
Console /var/log/messages can't be opened! Error: Permission denied
bekomme ich einen fehler
wenn ich das mache:
$ sudo /usr/bin/xrootconsole tail /var/log/messages
Cannot open display
bekomme ich diesen fehler
wenn ich jenes ausführe:
$ sudo /usr/bin/xrootconsole sudo tail /var/log/messages
Cannot open display
ebenfalls fehler
die xrootconsole --help sagt mir auch nicht viel:
$ xrootconsole --help
xrootconsole RELEASE-0_4
Usage: xrootconsole [options] [console]
Scroll the console to a transparent window placed on the X root window.
-geometry GEO the geometry of the window (default 80x10+0+0)
-fn FONT the font to use (default fixed)
-fg COLOR foreground color of the text (default white)
-bg COLOR background AND-mask for shaded transparency (default clear)
-bd COLOR border color (default white)
-bw WIDTH border width (default 0)
-c COLUMNS split window into number of text columns (default 1)
--solid make background a solid color, not shaded-transparent
--topdown insert lines at the top and scroll the rest down
--wrap wrap long lines, instead of cutting them off
-h or --help a familiar-looking help screen
-v or --version displays the version number
[console] filename to read (defaults to standard input)
welche configs muss ich nun noch anpassen, das ich meine /var/log/messages wieder am desktop monitoren kann?
danke im voraus, lg
st13
jetzt würde ich dieses tool wieder gerne nutzen, aber es gibt probleme.
google und die suchfunktion brachten zwar paar ergebnisse, aber mein problem ist anders :)
auf jeden fall sieht meine /etc/sudoers abschnittsweise so aus:
....
mein_username ALL=NOPASSWD: /usr/bin/tail
mein_username ALL=NOPASSWD: /usr/bin/xrootconsole
mein_username ALL=NOPASSWD: /var/log/messages
...
wenn ich dies hier mache:
$ sudo tail /var/log/messages
Nov 28 14:08:03 struggle sudo: thrasher : TTY=pts/0 ; PWD=/home/thrasher ; USER=root ; COMMAND=/usr/bin/tail /var/log/messages
Nov 28 14:08:05 struggle sudo: thrasher : TTY=pts/0 ; PWD=/home/thrasher ; USER=root ; COMMAND=/usr/bin/tail /var/log/messages
Nov 28 14:08:55 struggle sudo: thrasher : TTY=pts/0 ; PWD=/home/thrasher ; USER=root ; COMMAND=/usr/bin/tail -e /var/log/messages
Nov 28 14:09:15 struggle su(pam_unix)[23918]: session opened for user root by thrasher(uid=1000)
Nov 28 14:09:22 struggle su(pam_unix)[23918]: session closed for user root
Nov 28 14:10:01 struggle /usr/sbin/cron[24063]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Nov 28 14:20:02 struggle /usr/sbin/cron[25791]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Nov 28 14:24:02 struggle su(pam_unix)[26473]: session opened for user root by thrasher(uid=1000)
Nov 28 14:25:43 struggle su(pam_unix)[26473]: session closed for user root
Nov 28 14:25:48 struggle sudo: thrasher : TTY=pts/0 ; PWD=/home/thrasher ; USER=root ; COMMAND=/usr/bin/tail /var/log/messages
funktionert das prächtig
wenn ich dieses mache:
$ xrootconsole sudo tail /var/log/messages
Console /var/log/messages can't be opened! Error: Permission denied
bekomme ich einen fehler
wenn ich das mache:
$ sudo /usr/bin/xrootconsole tail /var/log/messages
Cannot open display
bekomme ich diesen fehler
wenn ich jenes ausführe:
$ sudo /usr/bin/xrootconsole sudo tail /var/log/messages
Cannot open display
ebenfalls fehler
die xrootconsole --help sagt mir auch nicht viel:
$ xrootconsole --help
xrootconsole RELEASE-0_4
Usage: xrootconsole [options] [console]
Scroll the console to a transparent window placed on the X root window.
-geometry GEO the geometry of the window (default 80x10+0+0)
-fn FONT the font to use (default fixed)
-fg COLOR foreground color of the text (default white)
-bg COLOR background AND-mask for shaded transparency (default clear)
-bd COLOR border color (default white)
-bw WIDTH border width (default 0)
-c COLUMNS split window into number of text columns (default 1)
--solid make background a solid color, not shaded-transparent
--topdown insert lines at the top and scroll the rest down
--wrap wrap long lines, instead of cutting them off
-h or --help a familiar-looking help screen
-v or --version displays the version number
[console] filename to read (defaults to standard input)
welche configs muss ich nun noch anpassen, das ich meine /var/log/messages wieder am desktop monitoren kann?
danke im voraus, lg
st13