You could use 'sux', but you need to install that program. Or you can do this: /bin/su - $USER -c command With this you will avoid $DISPLAY problems. regards. Benjamin Mesing wrote: Q 2: How to avoid permission problems on $DISPLAY (root can not start a program on $USER x-window)"sux" does this, though it is somewhat limited. E.g. if you "ssh -X" to the target and run sux there, it won't work. Ben -- A. Avelar (FixXxeR) http://fixxxer.cc Linux User 170607 Debian/rules GPG: 83B64656 - C143 4AD8 B017 53FA B742 D6AA CEEA F9F3 83B6 4656 |