Re: [Emc-users] pmount package and pmount/pumount commands [Was: Beaglebone USB]
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=84349351iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pmount package and pmount/pumount commands [Was: Beaglebone USB]
On 03.12.13 09:33, Kent A. Reed wrote: 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.] Then perhaps the quickest workaround for the OP is to do a: $ sudo chmod o+x /usr/bin/pmount Then anyone can run it, and the Debian bug is avoided, admittedly at the cost of the risk that any of the hundreds of users on his home system could mount the flash drive as well. :^) 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. Now that's bending over backwards to let Debian off the hook - 'sudo mount' has to be enough, as I'm sure you could tell me. (The whole point of pmount is to save having to be in /etc/sudoers, AIUI.) My results suggest there is something rotten in the state of Debian. Pretty darn convincingly, I'd say. A bug report is well warranted, I figure. Erik -- US surgeon Alton Ochsner recalled that when he was a medical student in 1919 his class was summoned to observe an autopsy of a lung cancer victim. At that time, the disease was so rare it was thought unlikely the students would ever get another chance. - http://www.bbc.co.uk/news/magazine-20042217 -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] pmount package and pmount/pumount commands [Was: Beaglebone USB]
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.) -- The world is spending half a trillion dollars on fossil fuel subsidies every year, according to a new report. The Overseas Development Institute (ODI) says rich countries are spending seven times more supporting coal, oil and gas than they are on helping poorer nations fight climate change. - http://www.bbc.co.uk/news/science-environment-24833153 -- 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=84349351iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users