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?
Last edited by skunktrader (2010-12-26 17:51:38)
As for the .xinitrc file:
@skunktrader: This is exactly what I wanted, the '/etc/skel/' directory. Never realized that directory there. Thanks!!!
@Mr.Elendig: Creating the file manually was too obvious. Thanks anyway!!
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.
I still haven't figured out a one click mount/unmount for my Gnome Desktop Environment. Any suggestions???
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.