Public bug reported:

Binary package hint: gksu

If you type:

gksudo -k -d xterm; xterm

as expected, the first xterm runs as root, whilst the second one runs as
yourself. However, if you do the following:

gksudo -k -d "xterm; xterm"

no xterm's, and the debug output gives you "buffer: -sudo: xterm;:
command not found-"

gksudo -k -d "xterm; xterm"

no xterm's and the message "buffer: -sudo: xterm;xterm: command not
found-"

gksudo -k -d "xterm\;\ xterm"

no xterm's and the following message: "buffer: -sudo: xterm; xterm:
command not found-"

There appears to be no way of sending multiple commands into gksu or
gksudo. (both have the same problem, but different debug messages. the
sudo filter was more verbose however)

This can apply to adding switches to a program as well:

gksudo -d "xterm --help"

no xterm's and the following message: "-uffer: -xterm:  bad command line
option "--help""

Are there plans to add support for encapsulating commands into quotes in
gksudo? This behaviour works correctly in sudo and kdesu.

Cheers,

Sean

** Affects: gksu (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: gksu
  
  If you type:
  
  gksudo -k -d xterm; xterm
  
  as expected, the first xterm runs as root, whilst the second one runs as
  yourself. However, if you do the following:
  
- gksudo -k -d "xterm; xterm"      -      no xterm's, and the debug output
- gives you "buffer: -sudo: xterm;: command not found-"
+ gksudo -k -d "xterm; xterm"
+ no xterm's, and the debug output gives you "buffer: -sudo: xterm;: command 
not found-"
  
- gksudo -k -d "xterm; xterm"      -      no xterm's and the message
- "buffer: -sudo: xterm;xterm: command not found-"
+ gksudo -k -d "xterm; xterm"
+  no xterm's and the message "buffer: -sudo: xterm;xterm: command not found-"
  
- gksudo -k -d "xterm\;\ xterm"      -      no xterm's and the following
- message: "buffer: -sudo: xterm; xterm: command not found-"
+ gksudo -k -d "xterm\;\ xterm"
+ no xterm's and the following message: "buffer: -sudo: xterm; xterm: command 
not found-"
  
  There appears to be no way of sending multiple commands into gksu or
  gksudo. (both have the same problem, but different debug messages. the
  sudo filter was more verbose however)
  
  This can apply to adding switches to a program as well:
  
- gksudo -d "xterm --help"      -      no xterm's and the following
- message: "-uffer: -xterm:  bad command line option "--help""
+ gksudo -d "xterm --help"
+ no xterm's and the following message: "-uffer: -xterm:  bad command line 
option "--help""
  
  Are there plans to add support for encapsulating commands into quotes in
  gksudo? This behaviour works correctly in sudo and kdesu.
  
  Cheers,
  
  Sean

** Description changed:

  Binary package hint: gksu
  
  If you type:
  
  gksudo -k -d xterm; xterm
  
  as expected, the first xterm runs as root, whilst the second one runs as
  yourself. However, if you do the following:
  
  gksudo -k -d "xterm; xterm"
- no xterm's, and the debug output gives you "buffer: -sudo: xterm;: command 
not found-"
+ 
+ no xterm's, and the debug output gives you "buffer: -sudo: xterm;:
+ command not found-"
  
  gksudo -k -d "xterm; xterm"
-  no xterm's and the message "buffer: -sudo: xterm;xterm: command not found-"
+ 
+ no xterm's and the message "buffer: -sudo: xterm;xterm: command not
+ found-"
  
  gksudo -k -d "xterm\;\ xterm"
- no xterm's and the following message: "buffer: -sudo: xterm; xterm: command 
not found-"
+ 
+ no xterm's and the following message: "buffer: -sudo: xterm; xterm:
+ command not found-"
  
  There appears to be no way of sending multiple commands into gksu or
  gksudo. (both have the same problem, but different debug messages. the
  sudo filter was more verbose however)
  
  This can apply to adding switches to a program as well:
  
  gksudo -d "xterm --help"
- no xterm's and the following message: "-uffer: -xterm:  bad command line 
option "--help""
+ 
+ no xterm's and the following message: "-uffer: -xterm:  bad command line
+ option "--help""
  
  Are there plans to add support for encapsulating commands into quotes in
  gksudo? This behaviour works correctly in sudo and kdesu.
  
  Cheers,
  
  Sean

-- 
gksu does not allow multiple commands in an argument
https://bugs.launchpad.net/bugs/136874
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to