Questions tagged [policykit]

Now called polkit, it's an OS component for controlling system-wide privileges in Unix-like operating systems.

Filter by
Sorted by
Tagged with
1 vote
1 answer
140 views

Shutdown not working for Users logged in through winbind

I have a Samba server acting as AD/DC and a client authenticating against it. Domain Users can log in and out just fine, shutdown and restart does not work. For Local Users shutdown and restart works....
dobs's user avatar
  • 31
-1 votes
2 answers
4k views

Thunar is unable to mount/unmount partitions correctly

I've got a "NTFS" partition on my Ubuntu machine which I use it to share files between my Ubuntu and Windows. The problem is that I'm not able to mount it using my file manager, the error is: Not ...
Ravexina's user avatar
  • 55.7k
31 votes
2 answers
21k views

Authentication required before suspend

Since the last update of Ubuntu 14.04, when I press the sleep button in my laptop, a pop-up window appears with "Authentication is required for suspending the system". Password is not requested when ...
arauzo's user avatar
  • 998
2 votes
1 answer
2k views

polkit inactive session action/rules never come into effect

I have different issues with polkit not working at all for inactive sessions. Because I think they share the same issue i will post one example first. I have a fresh ubuntu-server 14.04 with lubuntu-...
Dionysius's user avatar
  • 337
17 votes
3 answers
14k views

PolicyKit rules never come into effect

I'm trying to write a new .rules file for PolicyKit. My test attempt (in the directory /etc/polkit-1/rules.d/) looks like this: polkit.addRule(function(action, subject) { polkit.spawn(["rm","/...
Keidax's user avatar
  • 791
2 votes
1 answer
11k views

Location of PolicyKit log output

I'm trying to debug a new PolicyKit rule that looks like this: polkit.addRule(function(action, subject) { polkit.log("action=" + action); polkit.log("subject=" + subject); if (action.id ==...
Keidax's user avatar
  • 791
1 vote
1 answer
170 views

Where can I discover what policies can be set via PolicyKit?

PolicyKit can be used to implement a variety of rules, including: controlling shutdown/restart rights disabling/enabling hibernation controlling network configuration rights and so on. I'd like to ...
muru's user avatar
  • 198k
1 vote
0 answers
236 views

GUI anthentication doesn't work. No privileges

This is on Xubuntu 14.04 64-bit After a forced restart (due to nvidia overheating) I noticed that no sound was playing, and in fact pulseaudio showed only dummy devices. While looking for a solution, ...
Kerai's user avatar
  • 11
1 vote
0 answers
840 views

Lubuntu 14.04: fatal GDBus Error upon session login

Two days ago I freshly installed a Lubuntu Desktop 14.04 on an old Centrino M with 2 accounts: uid 1000 (administrator) and uid 1001 (general user) Until an hour ago all was well. Then shortly ...
Cbhihe's user avatar
  • 2,761
12 votes
3 answers
29k views

How to get GUI sudo password prompt without command line?

Currently, for all my commands that require root access, I have to type them out on a command line. I would like for the GUI to prompt me to key in my password, when sudo is required, instead of ...
Sean's user avatar
  • 121
2 votes
1 answer
132 views

Not able to authenticate during sofware installation

When I try to install a package through Software Centre, an authentication window pops up. The authentication window is like this: But the window disappears immediately and I am not able to ...
user0000007's user avatar
29 votes
1 answer
2k views

How to know if a authenticate box is real or fake?

For example, someone creates a fake Authenticate dialog to get my root password. How to know if it is real or fake?
user3683331's user avatar
1 vote
1 answer
284 views

how to do administartive tasks from remote X SSH

I forwarded X over ssh. From unity-control-center I couldn't perform any of the administrative tasks like changing audio input, changing wifi network etc. How can I do them remotely. Its the same ...
Necktwi's user avatar
  • 1,057
10 votes
1 answer
10k views

How to disable shutdown/reboot from lightdm in 14.04?

In 12.04 it was possible to prevent system shutdown or reboot from the login screen by adding the following restrictions in /etc/polkit-1/localauthority/50-local.d (adapted from here): [Disable ...
Alex's user avatar
  • 201
1 vote
1 answer
3k views

Can't install software due to "Authentication service is not available" error

Yesterday I installed Lubuntu 14.04 alternative iso on an old XP laptop. The partition and install went well. There are, however some issues with security, or my ability to add users and software. I ...
TorontoBoy's user avatar
17 votes
6 answers
18k views

Hibernate missing in login screen

Re-enabling hibernation by adding a rule to policy kit added the option to hibernate to the desktop session as expected, but not for the login screen. How can I enable hibernation right from the ...
Dusan Milosevic's user avatar
0 votes
1 answer
860 views

How to Change the message from policykit authentication agent?

In Policykit the LocalAuthority component checks whether the action requested from PolicyKit is allowed. Its decision takes into account the user accounts and groups that exist locally on the ...
Maythux's user avatar
  • 84.3k
0 votes
2 answers
3k views

Software Center prompts password of another user

I have a krb5-ldap user in an "administrators" which is added to sudoers list as follows: %administrators ALL=(ALL) ALL Now that works fine for all sudo operations. But when that user wants to ...
d_inevitable's user avatar
  • 1,902
2 votes
1 answer
3k views

Give domain users administrator account or access to software center

I have installed Ubuntu 12.04 LTS on a couple of machines. The domain is running Windows. I have managed to add machines in domain with likewise-open and give sudo access to domain groups. Problem is ...
Mihai-Daniel Muresan's user avatar
2 votes
2 answers
705 views

Permission issues causes Unity Segmentation fault

I upgraded from 13.04 to 13.10 and I can boot to the unity-greeter and login just fine, but after login I just get a black screen with a cursor. I have tried following http://help.ubuntu.com/...
Dj Gilcrease's user avatar
3 votes
0 answers
6k views

pkexec can not start any GUI application

I am running Ubuntu 13.04, Gnome 3.6. There is something amiss with pkexec that is not allowing it to start any gui application. pkexec synaptic in a zsh terminal produces a box asking for admin ...
deshmukh's user avatar
  • 4,061
2 votes
0 answers
82 views

How can I prevent close session/shutdown/reboot when certain console program is executing?

I want to disable close session/shutdown/reboot from Gnome (Unity/Lightdm) when lftp is executing. Is there any way? Perhaps with polkit?
Juan Simón's user avatar
  • 1,703
3 votes
3 answers
4k views

Can't mount USB devices, shut down etc. as a user

I tried gnome3 and gnome3-staging ppas to test running Gnome 3.8. After a while I decided that Gnome 3.8 wasn't for me, so I did a ppa-purge of both the ppas. As described in gnome3-staging ppa page,...
Alok's user avatar
  • 436
0 votes
1 answer
95 views

lost right as administator

I have 12.04 freshly installed in my laptop. Recently I lost my rights as administrator. Hereare the problems: unable to do updates from Update Manager (though no problem if I do it from terminal). ...
user115334's user avatar
0 votes
1 answer
2k views

policykit-desktop-privilege - rules not in effect

my xubuntu installation asks me for my password everytime I try to mount/umount/update software ... all the things that policykit-desktop-privilege should grant me. The user is in both admin and sudo ...
chichak's user avatar
  • 139
4 votes
0 answers
4k views

Where is the KDE PolicyKit Authorization manager in Kubuntu? [closed]

In order to be able to answer this question, I was looking for a way to manage PolicyKit in KDE. Using Google I quickly ran into the KDE's official Authorization manager (mentioned here and here in ...
gertvdijk's user avatar
  • 68k
11 votes
2 answers
11k views

How can non-admin users connect to Wi-Fi networks?

I'm trying to configure PolicyKit so that other users are allowed to configure Wi-Fi connections, but my changes don't seem to bring any results at all. When a non-admin user tries to connect to a ...
viraptor's user avatar
  • 396
5 votes
1 answer
607 views

What happened to the graphical PolicyKit settings?

Back in 8.04 or so, when PolicyKit was new, we had a GUI "browser" that enabled us to easily decide things like whether a user should be allowed to shutdown the system when other users were logged in ...
Jo-Erlend Schinstad's user avatar
8 votes
2 answers
4k views

Allow user to upgrade installed packages

My users don't have administrative privileges. I don't allow them to install packages from Ubuntu repositories but they must be able to install all updates availables from Ubuntu repositories and my ...
Francis's user avatar
  • 253
1 vote
1 answer
681 views

Access to NTFS partition WITH authentication

xubuntu allows by default the mounting of an ntfs partition without requesting any kind of authorization. How can I force it to request authorization (fhe same way that synaptic requires authorization ...
Unknown's user avatar
  • 333
5 votes
3 answers
12k views

How to make Ubuntu ask for password when mounting partitions?

I have been through this kind of feature in older versions of Ubuntu. When I'd like to mount a partition it will ask me a password. Now I want to enable that kind of feature in Ubuntu 12.04. How can ...
Raja G's user avatar
  • 102k
2 votes
1 answer
427 views

Are console and gnome applications using different sudoers file ?

According to our office Admin rules, developer's machines should not have admin privilege, which i hated so much. so I decided to enable the sudo access with some work around found in web (booting ...
Sark's user avatar
  • 123
2 votes
0 answers
198 views

Policykit - E17 without LightDm: Problems with Webcam and Connection manager [duplicate]

I'm using E17 without LightDm ( it saves about 200 mb ram ). I manage to do that easily and now I'm starting E17 with the old nice startx and a .xinit file in my home root. my .xinit : exec dbus-...
Postadelmaga's user avatar
  • 5,689
5 votes
1 answer
4k views

polkit: disable all users except those in group wheel?

Is it possible to do the following using 1 polkit .pkla file? Disable all users except those in the wheel group from using polkit. The users in the wheel group will need to provide the root password ...
John Nash's user avatar
8 votes
3 answers
12k views

pkexec won't launch polkit GUI in Lubuntu / LXDE

I performed a fresh install of Lubuntu 12.04 with minimal desktop, as described here. To clarify, I did a command-line install from the Lubuntu alternative install disc, then I did an apt-get install ...
ven42's user avatar
  • 433
10 votes
1 answer
3k views

Root tasks using dbus and policykit

At some point my application needs to do administrative tasks like creating a file in /etc or running commands with root priveleges. I know just could do a Q&D: os.popen("pkexec foo bar") But I ...
liberavia's user avatar
  • 121
0 votes
1 answer
3k views

How can I authenticate Ubuntu Software Center with user password?

I would like to be able to use the password associated with this account to install packages with the GUI. Ideally, I would change the settings so that any user with sudo permissions could install ...
Veronika's user avatar
2 votes
3 answers
9k views

Disable suspend / hibernate via the policykit

I am trying to run Lubuntu 12.04, but if the computer suspends I am unable to bootup again. Instead I see the bios post, the hard disk light flickers once and I have to install again (I have tried to ...
redonath's user avatar
21 votes
2 answers
4k views

What is the most "Ubuntu" way of preventing certain users from shutting down, suspending etc?

On a traditional Unix system, non-root users cannot do this. What is it that gives users this ability in modern desktop environments and how would I go about disabling this on a per-user or per-group ...
thomasrutter's user avatar
  • 36.8k
3 votes
0 answers
392 views

Define a Policykit action for Upstart [closed]

I'm trying to get some user to start, stop and reload services by using the udev Upstart interface. I'm using Ubuntu 10.04. I created the file /usr/share/polkit-1/actions/com.ubuntu.Upstart0_6.Job....
gentakojima's user avatar
3 votes
1 answer
531 views

How can I get Policykit-1-KDE to preselect the current user?

On my new Kubuntu 11.10 system, there are two users with administrative rights (paulo and administranto). Whenever I now from a KDE GUI dialog do some action which needs administrative rights, I get a ...
Paŭlo Ebermann's user avatar
36 votes
2 answers
40k views

How do I prevent PolicyKit from asking for a password?

For years, I've had the following in my sudoers file: scott ALL=NOPASSWD: ALL For those who don't know, this prevents sudo and friends (gksudo, etc.) from asking for a password. However, over the ...
Scott Severance's user avatar
86 votes
3 answers
37k views

When to use pkexec vs. gksu/gksudo?

There are two general ways to run applications graphically as root (or, more generally, as another user). Programs like gksu, gksudo, and kdesudo are graphical frontends for sudo. In contrast, pkexec ...
Eliah Kagan's user avatar
0 votes
2 answers
9k views

What to do when it says "unable to locate package" policykit

I'm following a tutorial that says I need to run sudo apt-get update and then install a whole bunch of packages. All of them work, except policykit. It gives me Unable to locate package policykit. Is ...
sameold's user avatar
  • 407
2 votes
1 answer
4k views

Policykit is not initialised in custom xsession launched via LightDM

I'm running a fully updated Ubuntu 11.10 install and I've been using LightDM to launch a "User Defined Session" which executes the .xsession script in my home folder. The script that I have written ...
Clueless's user avatar
6 votes
2 answers
2k views

How to make the disk utility ask for password before making modifications?

Currently, I can right click any drive that is attached to the system and click format. No password is asked at all while the data is wiped. I can also format any drive from the disk utility. This ...
nerdy_kid's user avatar
  • 1,005
4 votes
1 answer
6k views

How to prevent Synaptic Package Manager from asking for password?

This is similar to How to prevent system applications (like the Software Center) from asking for password? However that solution does not work for Synaptic Package Manager in 10.04.
deleted's user avatar
  • 2,489
4 votes
1 answer
3k views

Software Center doesn't prompt for password

I'm using Ubuntu 10.10. The software center was asking me for password when I wanted to install/remove any application. Since last week, it doesn't prompt for password. Also, I have the same problem ...
aziz joh's user avatar
  • 123
17 votes
7 answers
13k views

How to prevent system applications (like the Software Center) from asking for password?

I'd like Software Center, Update Manager and some other system management applications to work without asking for password (like sudo does if configured with NOPASSWD) but only asking for a ...
Ivan's user avatar
  • 57.1k
3 votes
1 answer
408 views

How do I rip CDs with Sound Juicer over X11 forwarding?

I am trying to rip a CD with Sound Juicer over X11 forwarding (CD is in the desktop across the room, I'm SSHing in from my laptop), but Sound Juicer cannot find my CD drive. It works correctly when I ...
Michael Ekstrand's user avatar