Author Topic: [SOLVED] "Not authorized to perform operation"  (Read 1826 times)

Offline Christoffer

  • Newbie
  • *
  • Posts: 25
[SOLVED] "Not authorized to perform operation"
« on: March 28, 2015, 09:31:49 pm »
Hey,

Today, I downloaded and installed SparkyLinux with the Budgie desktop onto my computer. So far, I am very satisfied. It's a good looking system.

When trying to install a game onto my second hard drive, I realized that I can't use it. When clicking on it in the file manager (name is "Hayes") it says:
http://i.share.pho.to/d73bffab_o.png
Any idea how I can properly mount this drive?

Thanks in advance!
Chris
« Last Edit: March 29, 2015, 10:49:21 pm by Christoffer »

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: "Not authorized to perform operation"
« Reply #1 on: March 28, 2015, 11:11:34 pm »
Hi
Looks like some global permission is missing.
I will have a look and be back.
Nothing is easy as it looks.

Offline MoroS

  • Sr. Member
  • ****
  • Posts: 255
  • Problem solver ;)
Re: "Not authorized to perform operation"
« Reply #2 on: March 29, 2015, 08:37:14 am »
Hi
Looks like some global permission is missing.
I will have a look and be back.

We should check what Budgie uses for mounting the other partitions. Most DEs out there use GVFS, which handles everything for them. Normally that requires the user to be in a specific group (don't remember the group name though, but it's always something like "disks" or such). Maybe Budgie requires the user to be in such a specific group. Which file manager does Budgie use for handing file management (PCMan, Thunar, other)? That's probably the point to investigate.
There isn't a single thing that's impossible. Just the things that we don't yet know how to deal with. ;)

Offline Christoffer

  • Newbie
  • *
  • Posts: 25
Re: "Not authorized to perform operation"
« Reply #3 on: March 29, 2015, 11:44:34 am »
As far as I know, it uses Nautilus. Which also uses gvfs, yes.

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: "Not authorized to perform operation"
« Reply #4 on: March 29, 2015, 01:41:39 pm »
I installed the spin last night.
I checked packages around polkit, policykit, pam, gvfs.
I also installed pcmanfm - the same problem.
I added the user to one extra group: disk - no changes.
But there is a message in ~HOME/.xsession-errors:
Code: [Select]
gnome-keyring-daemon: insufficient process capabilities, unsecure memory might get used
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
gnome-keyring-daemon: insufficient process capabilities, unsecure memory might get used
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
gnome-keyring-daemon: insufficient process capabilities, unsecure memory might get used
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
« Last Edit: March 29, 2015, 02:12:14 pm by pavroo »
Nothing is easy as it looks.

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: "Not authorized to perform operation"
« Reply #5 on: March 29, 2015, 02:17:09 pm »
Following the message I found:
Quote
Since you are not root on system, the process calling gnome-keyring-daemon does not have the privileges to prevent a possible write of the sensitive cryptographic key data to the system's hard disk.

and the command:
Code: [Select]
sudo setcap cap_ipc_lock=+ep `which gnome-keyring-daemon`solved problem with it.
~HOME/.xsession-errors:
Code: [Select]
localuser:pawel being added to access control list
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
But it didn't solve the problem in a file manager.
Nothing is easy as it looks.

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: "Not authorized to perform operation"
« Reply #6 on: March 29, 2015, 06:29:05 pm »
I found it.
The solution is the same as I made in JWM, Openbox and Enlightenment spins.
Install lxpolkit:
Code: [Select]
sudo apt-get update
sudo apt-get install lxpolkit
Create lxpolkit.desktop file in your home directory:
Code: [Select]
~HOME/.config/autostart/lxpolkit.desktopPaste the text into the desktop file:
Code: [Select]
[Desktop Entry]
Name=Lxpolkit
Exec=/usr/bin/lxpolkit
Terminal=false
Type=Application
NoDisplay=true
Then reboot.
Nothing is easy as it looks.

Offline Christoffer

  • Newbie
  • *
  • Posts: 25
Re: "Not authorized to perform operation"
« Reply #7 on: March 29, 2015, 07:49:12 pm »
I found it.
The solution is the same as I made in JWM, Openbox and Enlightenment spins.
Install lxpolkit:
Code: [Select]
sudo apt-get update
sudo apt-get install lxpolkit
Create lxpolkit.desktop file in your home directory:
Code: [Select]
~HOME/.config/autostart/lxpolkit.desktopPaste the text into the desktop file:
Code: [Select]
[Desktop Entry]
Name=Lxpolkit
Exec=/usr/bin/lxpolkit
Terminal=false
Type=Application
NoDisplay=true
Then reboot.

You're the man! Thank you!

Offline Christoffer

  • Newbie
  • *
  • Posts: 25
Re: [SOLVED] "Not authorized to perform operation"
« Reply #8 on: March 29, 2015, 09:16:02 pm »
@pavroo

Another question.
With your solution, I am now able to use the drive, but Steam doesn't seem to be able to use it.

When trying to create another library for Steam downloads, I noticed that I don't just have one "Hayes"; I have 2. Another mysterious Hayes popped up, and I have no clue why:
http://i.share.pho.to/b50c0053_o.png
So I have a Hayes and a Hayes1. In a normal Nautilus window, the drive is named Hayes - but I noticed that in a Nautilus opened with the root terminal, it's called Hayes1. And when looking through the properties of both "drives", the normal Hayes is just a folder I can't delete. My drive is actually Hayes1, but it can't be used by Steam (I can use it freely though with your solution).
http://i.share.pho.to/440ff751_o.png
When trying to use Hayes1 with Steam, it says:
http://i.share.pho.to/2ecba28b_o.png
Any ideas?
« Last Edit: March 29, 2015, 09:20:04 pm by Christoffer »

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: "Not authorized to perform operation"
« Reply #9 on: March 29, 2015, 09:41:39 pm »
Unmount your Hayes and Hayes1 partitions.
If you are not sure about that just reboot.
Make sure your partitions called Hayes and Hayes1 are NOT mounted. Check it:
Code: [Select]
sudo mount | grep /devDelete Hayes1 folder as root:
Code: [Select]
sudo rm -f /media/christoffer/Hayes1After rebooting you should mount your internal partition in Hayes folder.
Be very careful with that.

A few years ago I haven't unmounted a partition so I just deleted all the files :)
Nothing is easy as it looks.

Offline Christoffer

  • Newbie
  • *
  • Posts: 25
Re: "Not authorized to perform operation"
« Reply #10 on: March 29, 2015, 10:01:22 pm »
Well, Hayes1 can be unmounted, but Hayes is just a directory.

You say I have to delete Hayes1, but should I do that since that's the actual drive? Not Hayes?

And if I screw it up, not too big of a deal, I currently have no files on 'em xD :)

EDIT: I managed to delete Hayes dictionary in root Nautilus, now my only problem is the Steam error in the last picture. What's up with that?
« Last Edit: March 29, 2015, 10:06:14 pm by Christoffer »

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: "Not authorized to perform operation"
« Reply #11 on: March 29, 2015, 10:32:24 pm »
The message says that the partition file system has to have execute permissions.
So it can't be vfat or ntfs.
It should be installed in home directory with Linux file system such as ext4.
Nothing is easy as it looks.

Offline Christoffer

  • Newbie
  • *
  • Posts: 25
Re: "Not authorized to perform operation"
« Reply #12 on: March 29, 2015, 10:49:11 pm »
The message says that the partition file system has to have execute permissions.
So it can't be vfat or ntfs.
It should be installed in home directory with Linux file system such as ext4.

Thank you so much!