(03-15-2018, 10:45 PM)Vera link Wrote:So I right clicked on the folder and went to "Open As Administrator" and it asked for password, and I put in my root password. It said it was incorrect. I tried this several times, and I checked that caps lock was off. I can only conclude that it wasn't letting me open it as admin while logged in under his account instead of mine. Is that the expected behavior?
[member=6960]Vera[/member] this is a gksu limitation. It is expected behavior only if using gksu instead of pkexec.
You can work your way around by authenticating with gksu 2 times to get the access you want as the user you want... which is in my opinion rather inconvenient but here is how to do it:
Code:
gksu -w -u admin gksu any-application
Else, switch to pkexec and that allows you to elevate when needed from a non sudoer account. E.g.: while logged into a family member account.
UnlockMe app and Lite Control Center options were moved to pkexec for this exact scenario.
With UnlockMe, just select pkexec Open As Root. It will not only set your own custom action to use pkexec but it will fix it for all current users accounts and also for accounts created at later time.
If you are not interested in UnlockMe, just manually edit the "Open as Administrator" custom action under all accounts to:
Code:
pkexec Thunar %F
... and add this Policy to your system under:
/usr/share/polkit-1/actions/com.ubuntu.pkexec.unlockme-thunar.policy
Hope that helps.
https://unlockforus.com
Sorry for seeming stupid and preferring Linux - I just don't know any better.
Sorry for seeming stupid and preferring Linux - I just don't know any better.