LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2009, 01:44 PM   #1
theDigitalAngel
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 5
How does GNome do it?


When running gnome inserting a USB key in a USB port automatically mounts it on a directory inside the media folder. How does gnome manage to do that without being root?

I have been using the 'Awesome' window manager for some time now and would love to have similar functionality there as well.
 
Old 10-19-2009, 02:45 PM   #2
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Mostly a combination of the Gnome Volume Manager, hald and dbus. There's some info on it here (on linuxquestions):
http://www.linuxquestions.org/questi...torage-396098/
 
Old 10-19-2009, 04:47 PM   #3
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
I use awesome too. There is a page in the awesome wiki about that, but I use a much simpler solution.

Just add "user,users,default,noauto" in your /etc/fstab for /dev/sdb1, sdc1, sdd1 and so on. Use "auto" as file system. You will then be able to mount devices as normal user (using "mount /dev/sdb1"). You can bind a button in your awesome setup or add an icon on your desktop calling this command and "&& <yourfilemanager> /dev/sdb1"
 
Old 10-19-2009, 05:42 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,846

Rep: Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383
User permissions also. As you can see you are allowed to do it.
 
Old 10-19-2009, 06:10 PM   #5
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Quote:
Originally Posted by Elv13 View Post
I use awesome too. There is a page in the awesome wiki about that, but I use a much simpler solution.

Just add "user,users,default,noauto" in your /etc/fstab for /dev/sdb1, sdc1, sdd1 and so on. Use "auto" as file system. You will then be able to mount devices as normal user (using "mount /dev/sdb1"). You can bind a button in your awesome setup or add an icon on your desktop calling this command and "&& <yourfilemanager> /dev/sdb1"
If you do this, you might want to make certain to set your umask for the drive, or at least the uid/owner flag. It's a bit of a pain to have a USB drive mount and be unable to write to it.
 
Old 10-19-2009, 06:46 PM   #6
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
just like sudo does it,
it runs temporarily at elevated permissions.
 
  


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
Flashing Gnome Login And Missing Gnome Panels, Gnome is borked! openSuse 10.2 Perps SUSE / openSUSE 1 03-17-2008 05:22 PM
Gnome-panel, nautilus and gnome settings daemon Fail on Startup hitman_et Linux - General 0 04-01-2005 09:06 PM
automount cd and usb memory in gnome 2.8 testing sarge with gnome-volume-manager gvm pevelius Debian 0 12-20-2004 02:15 AM
Palm and Gnome: problem with gnome-pilot and how to view/edit memopad entries lhoff Linux - Software 4 12-07-2004 11:55 AM
missing gnome option in gnome-keybinding-properties fedora core 1? lrt2003 Fedora 0 04-18-2004 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:39 PM.

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
Open Source Consulting | Domain Registration