! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-taskmanager cannot get elevated privileges
Status:
RESOLVED: MOVED
Product:
Xfce4-taskmanager
Component:
General

Comments

Description Avinash Sonawane 2019-07-09 16:22:36 CEST
Created attachment 8744 
error dialog.

Hello!

I am using xfce4-taskmanager 1.2.2-1 on Debian Buster.

When I try, for example, to set priority to "Very High" in a task then I get an error "It is likely you don't have the required privileges". It should normally ask for my password using xfce4 polkit like `gnome-system-monitor` does.

Steps to Reproduce:
1. Open xfce4-taskmanager
2. Try to do an action which requires elevated privileges like setting priority, killing root task, etc...
3. See that it throws an error instead of asking your password

Please find the attached screenshot of the error dialog.
Comment 1 jolupa 2019-07-10 11:19:44 CEST
(In reply to Avinash Sonawane from comment #0)
> Created attachment 8744 
> error dialog.
> 
> Hello!
> 
> I am using xfce4-taskmanager 1.2.2-1 on Debian Buster.
> 
> When I try, for example, to set priority to "Very High" in a task then I get
> an error "It is likely you don't have the required privileges". It should
> normally ask for my password using xfce4 polkit like `gnome-system-monitor`
> does.
> 
> Steps to Reproduce:
> 1. Open xfce4-taskmanager
> 2. Try to do an action which requires elevated privileges like setting
> priority, killing root task, etc...
> 3. See that it throws an error instead of asking your password
> 
> Please find the attached screenshot of the error dialog.

Here on Crux Linux the problem is the same, the program can't elevate priviliges...
Comment 2 Andre Miranda editbugs 2019-07-11 03:23:58 CEST
taskmanager calls setpriority[1] at https://git.xfce.org/apps/xfce4-taskmanager/tree/src/task-manager.c?id=876515a#n550, it fails to me with errno EACCES.
I don't know what would be the solution here, I mean if it's possible to elevate permissions just when the user tries to set the priority of a process.

1 - https://linux.die.net/man/2/setpriority
Comment 3 Git Bot editbugs 2020-05-25 00:16:57 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/xfce4-taskmanager/-/issues/21.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15692

Reported by:
Avinash Sonawane
Reported on: 2019-07-09
Last modified on: 2020-05-25

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Version:
unspecified

Attachments

error dialog. (13.87 KB, image/png)
2019-07-09 16:22 CEST , Avinash Sonawane
no flags

Additional information