On 12/3/2013 12:41 AM, Erik Christiansen wrote:
> On 02.12.13 18:49, Andrew wrote:
>> I installed pmount package and nothing changed. When I try to mount or open
>> a flash drive from 'linuxcnc' session: 'Failed to mount "PENDRIVE". Not
>> Authorised'
> Er, are you using the pmount command?
>
> (On ubuntu, we are in group plugdev by default, it seems.
> Dunno about debian.)
>
>> No such problem with 'root'.
> Well, root doesn't need to use the pmount command, because it has mount
> permissions. ;-)
>
> Erik
> (Who uses pumount to unmount flashsticks before pulling them out, to
> ensure that all data has been written. Mounting is automatic on ubuntu.)
>

Erik:

I was dubious too but I've now duplicated Andrew's situation on my own 
Beaglebone Black.

With the Debian install on this board, the group plugdev exists and is 
empty and the pmount package is not installed.

When I install the pmount package the group pmount remains empty and I 
can't invoke pmount as a normal user. In my case, I get bash's classic 
complaint, "Permission denied." I don't see Erik's "Failed to mount..." 
message. IIRC, this latter message is usually issued by mount when fstab 
isn't set properly.

When I added myself to the group pmount, as the man pages explicitly 
notes must be done for Debian, I still couldn't invoke pmount as myself, 
although I should be able to since /usr/bin/pmount has file mode bits: 
-rwsr-xr-- [Note that I always logout and login again to ensure my 
changes to /etc/group are picked up.]

As expected, I can invoke pmount as root, and if I install the sudo 
package and add myself to the sudoers list, I can invoke 'sudo pmount' 
whether or not I'm a member of group plugdev.

My results suggest there is something rotten in the state of Debian.

Regards,
Kent


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to