You are not logged in.

#1 2010-12-26 17:45:36

subhranath
Member
Registered: 2010-11-28
Posts: 8

Auto mounting disk drives on click without prompting root password

I've installed Arch linux using the instructions given on the Beginner's Guide wiki.

I want to auto mount a file system (partition) when I click on a partition from the default toolbar or from within nautilus, without prompting me to provide the root password for the system.

I'm using 'gdm' as one of the DAEMONS entries to start the graphical environment in /etc/rc.conf
Following the above mentioned wiki, I had deleted the '~/.xinitrc' file as it was mentioned in here.

Now, how do I find(or regenerate) a backup copy of this above mentioned file, to add the line ''exec ck-launch-session"?
Or, is there some other way to get the desired functionality working for me?

Offline

#2 2010-12-26 17:49:12

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,320

Re: Auto mounting disk drives on click without prompting root password

/etc/skel/.xinitrc

https://wiki.archlinux.org/index.php/Be … g_.xinitrc

Last edited by skunktrader (2010-12-26 17:51:38)

Offline

#3 2010-12-26 17:52:46

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 3,731

Re: Auto mounting disk drives on click without prompting root password

echo "exec ck-launch-session whateverwmyouwant" > ~/.xinitrc


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2010-12-26 18:26:03

subhranath
Member
Registered: 2010-11-28
Posts: 8

Re: Auto mounting disk drives on click without prompting root password

As for the .xinitrc file:
@skunktrader: This is exactly what I wanted, the '/etc/skel/' directory. Never realized that directory there. Thanks!!! smile
@Mr.Elendig: Creating the file manually was too obvious. Thanks anyway!! smile

As for my requirement:
Even after placing the .xinitrc to my home directory and appending the line 'exec ck-launch-session gnome-session', I'm still being prompted for root authenication when trying to mount the partition from the desktop environment. sad

Offline

#5 2011-01-21 06:13:26

subhranath
Member
Registered: 2010-11-28
Posts: 8

Re: Auto mounting disk drives on click without prompting root password

I still haven't figured out a one click mount/unmount for my Gnome Desktop Environment. Any suggestions???

Offline

#6 2011-01-21 06:59:07

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: Auto mounting disk drives on click without prompting root password

Offline

#7 2011-01-21 12:57:45

Beavis
Member
From: UK
Registered: 2005-01-01
Posts: 71

Re: Auto mounting disk drives on click without prompting root password

If  the mount/unmount is with an internal drive then you can achieve this by editing the "/usr/share/polkit-1/actions/org.freedesktop.udisks.policy" file.

Find the line which reads  "<action id="org.freedesktop.udisks.filesystem-mount-system-internal">"
scroll down a few more lines and change the line "<allow_active>auth_admin_keep</allow_active>" to "<allow_active>yes</allow_active>"

This should stop the prompting for the root password every time you want to mount a partition. You will need to remember to change this again if you update the udisks package.

Offline

Board footer

Powered by FluxBB