You are not logged in.

#1 2012-03-07 20:01:03

PreparationH67
Member
From: Chicago IL
Registered: 2010-07-28
Posts: 40

Cannot change file permissions on automounted disks

I have had this happen on 2 different machines, one with LXDE and PCManFM and the other with XFCE and Thunar, in both I cannot change the file permission of the files on the device and I'm not sure how to change this. I assume it has something to do with polkit, but I have been unable to find any references to this behavior.  Anyone know how to fix this?

The mount options that are being used

rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks

Offline

#2 2012-03-07 20:07:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot change file permissions on automounted disks

Can you post an example of what and how are you doing, some error message?

Offline

#3 2012-03-09 14:32:11

PreparationH67
Member
From: Chicago IL
Registered: 2010-07-28
Posts: 40

Re: Cannot change file permissions on automounted disks

Not sure what you mean? It doesn't seem like an error, it seems like the deflault behavior of polkit with Thunar/PCmanFM to automount the USB disks this way, and I havn't been able to find a reference on how to change this specific one.

Offline

#4 2012-03-09 14:38:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot change file permissions on automounted disks

PreparationH67 wrote:

I cannot change the file permission of the files on the device

How are you trying to do it? What commands? Any errors?

Have you tried mounting these devices by hand using 'mount' command?

Offline

#5 2012-03-29 21:56:54

PreparationH67
Member
From: Chicago IL
Registered: 2010-07-28
Posts: 40

Re: Cannot change file permissions on automounted disks

I am talking about udisks automounting usb disks, mount obviously works from the command line. I have still not found a way to change udisks mounting options, and it's starting to look like it's not possible. I've tried the one udev rules script in the wiki for automounting labeled usb disks, but the behavior was not what I wanted, although it might not have been working right to begin with.

Offline

#6 2012-03-29 22:24:04

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Cannot change file permissions on automounted disks

PreparationH67 wrote:

I have had this happen on 2 different machines, one with LXDE and PCManFM and the other with XFCE and Thunar, in both I cannot change the file permission of the files on the device and I'm not sure how to change this. I assume it has something to do with polkit, but I have been unable to find any references to this behavior.  Anyone know how to fix this?

The mount options that are being used

rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks

This looks like an ntfs or vfat filesystem. Regardless of how you mount it, you cannot change the permissions once its mounted. It's simply not a POSIX filesystem that supports the same attributes as, say, ext4.

Offline

#7 2012-03-30 00:04:31

whatshisname
Member
Registered: 2010-04-24
Posts: 163

Re: Cannot change file permissions on automounted disks

I've seen this happen on thumb drives that had file-system errors on it. 

You might try running fsck on the drive while it's unmounted and see if that helps.

Offline

#8 2012-03-30 00:18:15

lgeek
Member
From: Europe, Portugal
Registered: 2012-03-09
Posts: 70

Re: Cannot change file permissions on automounted disks

Do you have "ck-launch-session dbus-launch" before your DE/WM, in your .xinitrc file?

Offline

Board footer

Powered by FluxBB