Package: menu
Version: 2.1.24
Severity: wishlist

Hello Maintainer,

I have the need to run a XTerm with su-to-root to get a terminal for root.

Using fvwm the Menu entry is:

    Exec xterm -e su-to-root -c "/bin/bash -l"

Now I have encountered that I have the same Environement variables a the
$USER "michelle.konzack" which ends in tonns of errors since ${TMPDIR}
and others environement variables are not from root

Please can you solv this problem?

For this moment I have copied the su-to-root script into my ~/bin and
changed the "-p" option to su to "-" see the DIFF

----8<--------------------------------------------------------------
--- su-to-root.orig     2005-05-24 12:05:33.000000000 +0200
+++ su-to-root  2006-08-15 17:36:17.000000000 +0200
@@ -12,7 +12,7 @@ NEEDS=text
 eshell() {
    getent passwd $1 | cut -f7 -d:
 }
-usage () {
+usage() {
   echo usage: $0 '[-X] [-p <user>] -c <command>' >&2
   echo '-X: command is a X11 program' >&2
   exit 1
@@ -59,7 +59,7 @@ else
       done
     else
       echo enter $PRIV passwd:
-      while ! su -p "$PRIV" -c "$COMMAND"; do
+      while ! su - "$PRIV" -c "$COMMAND" ; do
         echo -n 'Incorrect password or command failed. Try again? (y/n)'
         read ans
         if test "$ans" != "y" -a "$ans" != "Y"; then
----8<--------------------------------------------------------------

which works now properly.

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- System Information
Debian Release: 3.1
Kernel Version: Linux michelle1.private 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 
2005 i686 GNU/Linux


Versions of the packages menu depends on:
ii  dpkg           1.10.28        Package maintenance system for Debian
ii  libc6          2.3.2.ds1-22   GNU C Library: Shared libraries and Timezone
ii  libgcc1        3.4.3-13       GCC support library
ii  libstdc++5     3.3.5-13       The GNU Standard C++ Library v3



-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to