shirleyian / pentoo

Automatically exported from code.google.com/p/pentoo
1 stars 1 forks source link

Application with broken permissions when launched from the menu #228

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch the application from the menu or a .desktop

What is the expected output? What do you see instead?
Expect to see application help menu in cli.

packit 'doesn't launch correctly'
bash$ /usr/sbin/packit

Error: Sorry, you're not root!

box root #

wpscan 'doesn't launch correctly'
bash$ /usr/sbin/wpscan
/usr/lib/wpscan/wpscan.rb:9:in `delete': Permission denied - 
/usr/lib/wpscan/log.txt (Errno::EACCES)
        from /usr/lib/wpscan/wpscan.rb:9:in `main'
        from /usr/lib/wpscan/wpscan.rb:364:in `<main>'
box root #

md3k 'doesn't launch properly see upstream'
bash$ /usr/sbin/mdk3
This program requires root privileges.
box root # 

Applications that build without sudo from genmenu but need to have sudo 
permissions.
wifite, ohrwurm, isic, hyenae, bss, gspoof

Application that is broken on one or more possible systems.
exploit/yersinia "Can't find a way to launch properly outside of kde with 
kdesu. gksu brakes when passing a switch argument for the application. Cli 
version also fails on unable to launch properly needs root."

What version of the product are you using? On what operating system?
net-analyzer/packit-1.0-r2
net-analyzer/wpscan-2.2
net-wireless/mdk-3.6
net-wireless/wifite-2.85-r4
app-fuzz/ohrwurm-0.1
net-analyzer/isic-0.07-r1
app-fuzz/bss-0.8-r1
net-analyzer/gspoof-3.2-r2
net-analyzer/yersinia-0.7.1

Gentoo Hardened-3.11.7-r1
profile: pentoo:pentoo/hardened/linux/amd64 

Please provide any additional information below.

wifite ohrwurm isic hyenae bss gspoof 
'needs root could be fixed by modifying the ebuild to move the start scripts 
from /usr/bin to /usr/sbin in ebuild and then running genmenu.py'

exploit/yersinia "Can't find a way to launch properly outside of kde with 
kdesu. gksu brakes when passing a switch argument for the application, the 
needed argument of -G in this case. Cli version also fails on unable to launch 
properly needs root. See upstream or devise comprehensive workaround"

Original issue reported on code.google.com by cyb3r-assassin@cyberpunk.me on 11 Feb 2014 at 8:06

GoogleCodeExporter commented 9 years ago
basically, if it doesn't run when you aren't root, it should go in sbin.  I 
would lean towards fixing the install location rather than anything else.

Original comment by sidhayn on 11 Feb 2014 at 12:57

GoogleCodeExporter commented 9 years ago
The bug in our launcher. it should run a tool in sudo env even with -h 
parameter. The root of the problem is in all listed tools of cause. They should 
be able to run with -h and display help. They shouldn't write into 
/usr/lib/wpscan/log.txt. etc

Original comment by blshkv on 13 Feb 2014 at 2:02