LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2010, 07:39 AM   #16
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720

Just for fun I also tried Thunar as root, it also showed a warning banner on top, and handled the flash drive just fine.
 
Old 04-03-2010, 07:45 AM   #17
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
in my archbang setup I put a pcmanfm and terminal "open as root" on my openbox menu and on my xfce4 panel
so I can do stuff as root in user desktop

so, it works fine from root desktop or when calling up pcmanfm,etc as root thru term?
 
Old 04-03-2010, 07:56 AM   #18
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
I did not try root desktop, but it works if the file manager was launched form a root terminal.

I still wonder how to get it to work like it's supposed to, though, because I don't want files copied from the extermal device to belong to root.

For example, I don't want the pictures I copy from the digital camera into my home folder to belong to root.
 
Old 04-03-2010, 08:36 AM   #19
charchilp
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
Just for fun I also tried Thunar as root, it also showed a warning banner on top, and handled the flash drive just fine.
 
Old 04-03-2010, 08:43 AM   #20
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
WTF?

Isn't that just a verbatim copy of one of my above posts?
 
Old 04-04-2010, 08:13 AM   #21
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
*bump*

Went onto second page, still not solved.
 
Old 04-04-2010, 08:51 AM   #22
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Very strange MTK358

I have ArchBang RC1 on my K7 PC; which has the exact same problem your having.
heres K7 specs
http://multidistro.com/K7

I have ArchBang RC2 on my K8 PC; Which does Not have this issue at all
I can mount any partition including USB as user!?
heres K8's specs
http://multidistro.com/K8

I checked /etc/sudoers and they are exactly the same

And; in the PC thats having the issue, if I choose to logout/reboot,etc'
I am presented with a gui and can only choose "logout" as reboot, etc are shaded.

in the PC not having the issue with pcmanfm,etc mounting I can reboot,etc as normal

So, I am befuddled as both systems are almost identical except for whatever changes they made between RC1 & RC2 maybe??

errrr.....?
 
Old 04-04-2010, 08:59 AM   #23
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
From the pmount man page:

Code:
POLICY
       The mount will succeed if all of the following conditions are met:

        device is a block device in /dev/

        device is not in /etc/fstab (if it is, pmount executes  mount  device
         as the calling user to handle this transparently). See below for more
         details.

        device is not already mounted according to /etc/mtab and /proc/mounts

        if the mount point already exists, there is no device already mounted
         at it and the directory is empty

        device   is   removable   (USB,   FireWire,   or   MMC   device,   or
         /sys/block/drive/removable is 1) or whitelisted in /etc/pmount.allow.

        device is not locked
What does the part in bold mean?

I wonder if this issue is actually about HAL or pmount?
 
Old 04-04-2010, 09:03 AM   #24
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
does the wheel group have anything to do with it?
 
Old 04-04-2010, 09:06 AM   #25
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
What is the wheel group?
 
Old 04-04-2010, 09:19 AM   #26
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
On my system, the wheel group has only one member (root), and does not appear to be used for any files. On other systems, I have seen "wheel" used in a context of administrative functions.

Some of this stuff is tradition and has no logical explanation.....
 
Old 04-04-2010, 09:35 AM   #27
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
I tried plugging in a flash drive and running "pmount /dev/sdb1" as a normal user, and it got successfully mounted as "/media/sdb1".

But umount complains that I am not root. How do I unmount it as a normal user?

EDIT: I see "pmount" has a matching "pumount" utility.

Last edited by MTK358; 04-04-2010 at 09:37 AM.
 
Old 04-04-2010, 09:49 AM   #28
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Success!

See the very end of this web page:

http://wiki.archlinux.org/index.php/PCManFM

In "/etc/dbus-1/system.d/hal.conf", I added the highlighted part:

Code:
<policy context="default">
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Introspectable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Properties" />

    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume"/>

    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Manager"/>
  </policy>
And then restarted the HAL daemon:

Code:
# /etc/rc.d/hal restart
Now it works perfectly!

I wonder if this will work for linus72?

It still seems strange that this important information was written in the page of a certain file manager, even though it's universal!

Last edited by MTK358; 04-04-2010 at 09:53 AM.
 
1 members found this post helpful.
Old 04-04-2010, 09:54 AM   #29
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Awesome dude now I'm gonna compare my two seperate arch installs and see
(wonder?) why one would be diff from the other

we'll see..thanks alot for the info!
 
Old 04-04-2010, 10:24 AM   #30
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
I already wrote a blog entry with instructions for this, I just don't know what a good title would be.

Also, how can I reuse an attachment I already own?

Last edited by MTK358; 04-04-2010 at 10:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] One of my file systems failed to auto-mount on boot taylorkh Linux - Newbie 5 12-29-2009 04:11 PM
Auto-mount windows share on boot - manual OK, auto not ok! erskie Linux - Newbie 2 02-12-2008 07:42 PM
gnome-volume-manager auto-mount issue verbose Linux - Software 2 12-18-2007 11:23 PM
auto mount samba file system nanjil SUSE / openSUSE 1 11-25-2005 11:19 AM
What file contains auto-mount for fsck cbjhawks Linux - Software 1 09-18-2003 08:02 PM


All times are GMT -5. The time now is 08:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration