LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2020, 06:18 PM   #1
nt100
LQ Newbie
 
Registered: May 2020
Posts: 9

Rep: Reputation: Disabled
Not authorized to perform operation - polkit authority not available and caller is not uid 0


I've a Dell Precision Ultra-Speed Drive Quad x16 card installed in Dell 5820 workstation in which 4 x ADATA 2TB NVMe SSD drives. Besides, 1 x Toshiba 2TB NVMe SSD drive (Ubuntu 18.04 boot) and 2 x SATA 16TB Segate IronWolf 3.5" HDD.

The OS is Ubuntu 18.04. I used GNOME Disks to format any of 4 x ADATA SSD drives, Segate 3.5" HDDs, it pops up the error of

Error formatting volume Not authorized to perform operation (polkit authority not available and caller is not uid 0) (udisks-error-quark,3).

I've no idea on this message. Suggestions are welcome.
 
Old 05-04-2020, 06:57 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: KDE Neon
Posts: 1,244

Rep: Reputation: 520Reputation: 520Reputation: 520Reputation: 520Reputation: 520Reputation: 520
Might try another disk formatting tool like gparted. I don't think it depends on polkit, so should work fine.
 
Old 05-04-2020, 08:57 PM   #3
nt100
LQ Newbie
 
Registered: May 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uteck View Post
Might try another disk formatting tool like gparted. I don't think it depends on polkit, so should work fine.
Thank you for the suggestion.

I did "sudo apt-get install gparted" but failed to run and have the following error message.


unit -.mount does not exist, proceeding anyway.
No protocol specified
(gpartedbin:5447): Gtk-WARNING **: 08:49:42.676: cannot open display: :0
 
Old 05-04-2020, 09:05 PM   #4
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by nt100 View Post
Error formatting volume Not authorized to perform operation (polkit authority not available and caller is not uid 0) (udisks-error-quark,3).
Try to do "sudo -i" first, to become uid 0, before running that command.
 
Old 05-04-2020, 09:56 PM   #5
nt100
LQ Newbie
 
Registered: May 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
Try to do "sudo -i" first, to become uid 0, before running that command.
I did the following steps
sudo -i
sudo apt-get install gparted
sudo gparted

the result is
Unit - .mount does not exist, proceeding anyway.
No protocol specified

(gpartedbin:5272): Gtk-WARNING **: 09:52:48.482: cannot open display: :0
 
Old 05-04-2020, 10:47 PM   #6
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: KDE Neon
Posts: 1,244

Rep: Reputation: 520Reputation: 520Reputation: 520Reputation: 520Reputation: 520Reputation: 520
You are running Ubuntu, so no need to switch to root with "sudo -i". Just run the sudo command from your user account.
From your last post, it looks like gparted is trying to run but is blocked from accessing your X session. A quick google of the error shows that opening your Xsession to other users will let it open.
Code:
xhost +localhost
run the above command to allow apps started by root to display on your session, then run "sudo gparted" and the app should open.
 
Old 05-04-2020, 11:09 PM   #7
nt100
LQ Newbie
 
Registered: May 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uteck View Post
You are running Ubuntu, so no need to switch to root with "sudo -i". Just run the sudo command from your user account.
From your last post, it looks like gparted is trying to run but is blocked from accessing your X session. A quick google of the error shows that opening your Xsession to other users will let it open.
Code:
xhost +localhost
run the above command to allow apps started by root to display on your session, then run "sudo gparted" and the app should open.
Do I have to use "xhost +localhost[/code]"? as I'm working in front of the workstation.

Last edited by nt100; 05-04-2020 at 11:22 PM.
 
Old 05-04-2020, 11:49 PM   #8
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by nt100 View Post
Do I have to use "xhost +localhost[/code]"? as I'm working in front of the workstation.
If you're not running as the user which started the X session (so with sudo commands too):
yes!
The X server is authorized to let only processes from THAT user access the server, for security to disable i.e. keyboard listeners.
It is possible to let sudo carry over the authority to access the X server, but I wouldn't know how to do so in ubuntu (I actually don't use sudo hardly at all).
 
Old 05-05-2020, 03:04 AM   #9
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,285

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
Have your tried to use Gparted via USB or Disc?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error getting authority: error initializing authority: could not connect: connection refused (g-io-error-quark, 39) vienswuer Sabayon 1 06-03-2016 08:06 PM
Not authorized to perform action Thunar Debian Jessie sharenet Linux - General 3 09-15-2014 06:11 AM
LXer: Those Polkit/PolicyKit XML files a pain to view? Polkit Explorer now avaiable... LXer Syndicated Linux News 0 03-31-2013 04:42 PM
You are not authorized to perform this action RockyRX Linux - Newbie 9 07-22-2010 10:50 PM
LXer: KDE extends Polkit support to polkit-1 LXer Syndicated Linux News 0 12-26-2009 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration