Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Well I broke pkexec somehow, synaptic opens without a passwd

Ask your questions here.

Re: Well I broke pkexec somehow, synaptic opens without a pa

Postby fsmithred » Sun Sep 25, 2016 11:47 pm

User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: Well I broke pkexec somehow, synaptic opens without a pa

Postby figlfdev » Tue Sep 27, 2016 9:08 am

in fig os im using sudo pcmanfm --desktop to provide a desktop, which does work live or frugal, but once youve installed (at least if sudo requires a pw, which it should) this of course wants gksu or something. well thats no fun.

so this is what im thinking about for running pcmanfm desktop (as root) while everything else in x runs as a normal user: (yes, its a bit shameful.)

Code: Select all
#!/bin/bash
while [[ 1 ]]
    do p=$(ps aux | grep pcmanfm | grep desktop | wc -l)
    if [ "$p" -lt "1" ]
        then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) pcmanfm
        export DISPLAY=:0.0
        pcmanfm --desktop 2>  /dev/null &
        export XAUTHORITY=
        fi
    sleep 2
    done


this goes in a script and gets run from / etc / rc.local with & to keep it running. instead of killing pcmanfm you kill that script and then pcmanfm.

admittedly i think this is the opposite problem the op talks about: password requirement is not desirable in this case.
figlfdev
 
Posts: 116
Joined: Tue May 31, 2016 6:23 pm

Re: Well I broke pkexec somehow, synaptic opens without a pa

Postby greenjeans » Tue Sep 27, 2016 9:18 pm

It's got to be something I did, I found the first iso I rolled with snapshot last night and burned it to a cd, this was before I started hardcore stripping, I had just removed Libre, Gimp, replaced the browser, and added a few programs.

Installed it and it worked exactly as it should, no issues with pkexec.

So somewhere between there and where i'm at now, there must have been some small library or app that seemed like it wasn't doing anything, and didn't show up in dependency/dependants lists as being connected to anything, that must have played a small part in connecting pkexec properly.

Sure seems though, that the default behavior if it didn't find that tidbit, would be to error out, NOT assume root privileges and go ahead and open the programs.

I may go back and try some more, but for now I took fsmithred's advice and made extra .desktop files for gparted and synaptic, used gksu and set the others to not display. Rolled a new one this morning and gonna burn it here shortly, install, and test.

Was trying to keep it as close to the default settings and behavior in Devuan as possible, but if they are working on putting out some livecd images it may be silly of me keep trying to go that route, though I still think there is a lot of merit in a minimal iso.

A wasp stung me on the butt today. I am literally butthurt. :cry:
http://www.mrgreenjeans.net/opensource
Devuan-mate-minimal hybrid-iso, made with Refractasnapshot.
User avatar
greenjeans
 
Posts: 68
Joined: Tue Sep 06, 2016 10:57 pm
Location: inna woods

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred