SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-04-07 14:57:21

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

[1/2 SOLVED] lost ability to access drives outside Linux

open a term window try to copy file to a SDD card "Not authorized to perform operation" open a file manager either one pcmanfm or thundar "Not authorized to perform operation" tried to mount it from file manager as it shows up in them "Not authorized to perform operation"

all I did was change repos from unstable then to Jessie --

all I had to mess with where the exit window menu to get it to shutdown and reboot log out etc. and gave up on the gui for user login settings -- just went to the file instead and changed what I needed to change.

but now today I cannot get to my HDD outside of the linux box (laptop) had no problems doing it before with Jessie installed, like yesturday it worked.

any ideas on permissions settings --

I'm a little pressed for time right now. just thought I'd post a help me in here. maybe someone already knows the answer to this problem.

thanks

Last edited by userx-bw (2015-04-10 12:19:11)


"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

Be excellent to each other!

#2 2015-04-07 15:02:03

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: [1/2 SOLVED] lost ability to access drives outside Linux

You will need to setup polkit-1 to allow user level drive mounting and unmounting. I am at work, so can't post my setup but a quick search on these forums or google should get you what you need.

Offline

#3 2015-04-07 18:45:08

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux

[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount
ResultAny=yes
ResultInactive=yes
ResultActive=yes

Last edited by userx-bw (2015-04-07 19:16:17)


"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

#4 2015-04-07 18:52:57

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: [1/2 SOLVED] lost ability to access drives outside Linux

Offline

#5 2015-04-07 19:20:07

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: [1/2 SOLVED] lost ability to access drives outside Linux

[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount
ResultAny=yes
ResultInactive=yes
ResultActive=yes

Last edited by tknomanzr (2015-04-07 19:20:51)

Offline

#6 2015-04-07 19:49:29

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux

[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount
ResultAny=yes
ResultInactive=yes
ResultActive=yes

"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

#7 2015-04-07 20:04:37

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux

 lsblk -f
NAME        FSTYPE LABEL UUID MOUNTPOINT
sda                           
├─sda1                        
└─sda2                        
sdb                           
├─sdb1                        /
├─sdb2                        
└─sdb5                        [SWAP]
sdc                           
└─sdc1                        
mmcblk0                       
└─mmcblk0p1                   

Last edited by userx-bw (2015-04-07 20:13:17)


"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

#8 2015-04-07 20:28:25

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: [1/2 SOLVED] lost ability to access drives outside Linux

Last edited by tknomanzr (2015-04-07 20:28:52)

Offline

#9 2015-04-07 20:35:10

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [1/2 SOLVED] lost ability to access drives outside Linux

sudo blkid

Offline

#10 2015-04-07 20:43:24

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux

sudo blkid

"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

#11 2015-04-07 20:47:19

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb1 during installation
UUID=45913680-c59c-476c-87bf-0e0306afc9db /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb5 during installation
UUID=dbc5c5e4-bb74-4a36-9fc1-4d1e267436f7 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
UUID=02ADB0333E833535 /media/    ntfs      user,auto        0      0

Last edited by userx-bw (2015-04-07 20:59:41)


"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

#12 2015-04-07 21:19:18

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: [1/2 SOLVED] lost ability to access drives outside Linux

OK. I am guessing that since the windows stuff is not setup in /etc/fstab, that it is being setup via polkit. This is rough as I am not anywhere near a Linux machine atm but if you can hold out for about an hour, I will check the relevant info in polkit's rules.d. Thing about polkit is it gives finer grained control over stuff but at the expense of confusing file-managers when stuff is set to auth_admin.

Offline

#13 2015-04-07 21:28:05

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux

Top
Re: Can't use removable devices on Jessie

Postby grephead » 2014-05-16 16:22
But all of my file manager were correctly mounting all the devices before about one week ago. 
Also I can't mount cds and dvds , while there is the correct line in fstab.
Also, the problem regards internet connectivity on one of the two computers...
which doesn't require mounting anything.

....



Re: Can't use removable devices on Jessie

Postby obry » 2014-05-18 01:03
grephead, thanks. Seems that i can at least mount my dmcrypt partitions with this. 
I'll try this tomorrow.

Concerning reinstallation: By chance I did a clean install of debian jessy,
using the latest netinst. Only xorg + fluxbox + thunar and the mounting
 problem exists on this installation as well...

hope to see a genuine solution to the problem..! :)

Last edited by userx-bw (2015-04-07 21:45:04)


"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

#14 2015-04-07 22:45:11

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux

# Automatically generated by systemd-fstab-generator

[Unit]
SourcePath=/etc/fstab
Documentation=man:fstab(5) man:systemd-fstab-generator(8)

[Mount]
What=/dev/disk/by-uuid/02ADB0333E833535
Where=/media
Type=ntfs
Options=rw,user,noauto

"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

#15 2015-04-08 05:22:18

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: [1/2 SOLVED] lost ability to access drives outside Linux

OK. On double checking /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy here is the portion that seems relevant:

<action id="org.freedesktop.udisks2.filesystem-fstab">
    <description>Mount/unmount filesystems defined in the fstab file with the x-udisks-auth option</description>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

This has been stripped of all the xml lang entries to clarify things. So, assuming you have correct /etc/fstab entries for your ntfs drives, this will allow you to mount them as a user. Edit /etc/fstab for the ntfs partitions in question and change auto to noauto in the options.
Change the above polkit rule to any instead of auth_admin.
Also, to be able to eject drives as a normal user, change the following to any from auth_admin:

<action id="org.freedesktop.udisks2.eject-media">
    <description>Eject media</description>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

so create a file name whatever in /etc/polkit-1/localauthority/50-local.d. I named mine automount.plka. Put the following code into it:

[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Eject]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.eject-media*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Mounting of fstab]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-fstab*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

As you can see, you can append entries into the file, so if the permissions  seem too loose to you, refer back to /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy and follow the template I provided.

Offline

#16 2015-04-08 18:15:55

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux

[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Eject]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.eject-media*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Mounting of fstab]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-fstab*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

#17 2015-04-08 18:19:09

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: [1/2 SOLVED] lost ability to access drives outside Linux

Nice. Im glad it helped you out  big_smile

Offline

#18 2015-04-10 12:29:22

userx-bw
#! Die Hard
From: stuck in an unknown reality
Registered: 2013-11-19
Posts: 735

Re: [1/2 SOLVED] lost ability to access drives outside Linux


"How can you learn how to fix it, if you don't break it first? ops
"the only way to get away with murder is - by killing time" swp 1997  monkey
"A computer is only as smart as the person using it"
"Just plug it in and see if it blows up, if not then take it apart and figure out how it works."

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo