Bug#383320: su-to-root should provide additional arguments for the -c option

2006-09-08 Thread Bill Allombert
On Sun, Aug 27, 2006 at 11:32:48AM +0200, Bill Allombert wrote:
 On Tue, Aug 15, 2006 at 06:50:39PM +0200, Michelle Konzack wrote:
  Package: menu
  Version: 2.1.24
  Severity: wishlist
  
 
 Hello Michelle,
 
  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
 
 You should do 
 Exec xterm -e su-to-root -c su -
 or simply
 Exec xterm -e su -
 to avoid that problem.

Hello Michelle,

Do you agree to close this bug ?

Cheers,
-- 
Bill. [EMAIL PROTECTED]

Imagine a large red swirl here. 


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



Bug#383320: su-to-root should provide additional arguments for the -c option

2006-08-27 Thread Bill Allombert
On Tue, Aug 15, 2006 at 06:50:39PM +0200, Michelle Konzack wrote:
 Package: menu
 Version: 2.1.24
 Severity: wishlist
 

Hello Michelle,

 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

You should do 
Exec xterm -e su-to-root -c su -
or simply
Exec xterm -e su -
to avoid that problem.

 Please can you solv this problem?

I cannot, it is crucial the program can get access to the user environment
variable, in particular $DISPLAY, else X11 programs will not work anymore.

Cheers,
-- 
Bill. [EMAIL PROTECTED]

Imagine a large red swirl here. 


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



Bug#383320: su-to-root should provide additional arguments for the -c option

2006-08-16 Thread Michelle Konzack
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.0 +0200
+++ su-to-root  2006-08-15 17:36:17.0 +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.28Package maintenance system for Debian
ii  libc6  2.3.2.ds1-22   GNU C Library: Shared libraries and Timezone
ii  libgcc13.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/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)



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