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?

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.

Similar Messages

  • [SOLVED] Thunar (XFCE4) Does not Auto-mount USB Drive

    After reading some posts related to USB auto-mounting in Thunar and yet still having the problem, I decided to post this. Thunar used to detect the USB drives and auto-mount them. These days (I GUESS after moving to systemd), It cannot do so. Still, there is the icon of USB drive on the left side panel, but when I click on it to browse it, I get this error:
    Failed to mount "USB_LABLE".
    Error when getting information for file
    '/media/usbhd-sdc1': Transport endpoint is not connected.
    I am still able to use "sudo mount..." and get the job done, but I would prefer the convenient way it used to work. Here are some information about my system:
    command> cat ~/.xinitrc
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    exec startxfce4
    command> loginctl show-session $XDG_SESSION_ID
    Id=1
    Timestamp=Sat, 2012-11-10 20:35:51 CET
    TimestampMonotonic=34276379
    DefaultControlGroup=name=systemd:/user/username/1
    VTNr=7
    Display=:0.0
    Remote=no
    RemoteUser=root
    Service=slim
    Leader=297
    Audit=1
    Type=x11
    Class=user
    Active=yes
    State=active
    KillProcesses=no
    IdleHint=no
    IdleSinceHint=0
    IdleSinceHintMonotonic=0
    command> systemctl status polkit
    polkit.service - Authorization Manager
    Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
    Active: active (running) since ...
    Docs: man:polkit(8)
    Main PID: 305 (polkitd)
    CGroup: name=systemd:/system/polkit.service
    305 /usr/lib/polkit-1/polkitd --no-debug
    command> dmesg
    Attached scsi generic sg1 type 0
    [sdc] 15470592 512-byte logical blocks: (7.92 GB/7.37 GiB)
    [sdc] Write Protect is off
    [sdc] Mode Sense: 23 00 00 00
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through sdc: sdc1
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through
    [sdc] Attached SCSI removable disk
    I'd rather not edit the /etc/fstab; the way Thunar used to behave, was working with every new USB. I wonder if anybody can shed some lights.
    Last edited by Shahab (2012-11-10 21:56:24)

    The error looks suspiciously like one I had not so long ago and it turned out I still had an 11-media-by-label-auto-mount.rule in /etc/udev/rules.d.  Once I removed that and rebooted everything was fine again.

  • Auto mounting hard drive across a small home network

    Hi,
    How do you setup a Power Mac 6500 running Mac OS 9.1 to automatically mount it's hard drive at startup onto a PowerMac G4 running Mac OSX 10.2.8? I have a small network at home that I'd like to cross-mount hard drives across.
    I can mount the volume just fine manually from either machine. I just don't know the GUI or command on 9.1 to do the mounting automatically at startup.
    Any ideas, or suggestions would be greatly appreciated!
    Ed

    Here's the (partial) answer I was looking for.
    To go from a remote machine --> 6500, do the following:
    1) Open "Chooser".
    2) Select "Apple Share".
    3) Type in the DNS name of the computer you want to mount onto the 6500 in the box labeled "Server IP Address". If TCP/IP isn't active, then type in the numerical IP address.
    4) When prompted, type in the password for your keychain, and then the account name and password on the remote machine that you want to automount.
    5) Then select the drive (share), or shares, you wish to mount.
    6) To automount at startup, check the box "Allow at Startup".
    To get the share on the remote machine to automount at Startup, your keychain must be readable by the AppleShare application at Startup (ie. the "Allow access without warning" box on the keychain should be checked).
    To go in the other direction, ie. 6500 --> Remote machine:
    To automount the 6500's hard drive onto a G4, one needs to do that configuration on the G4, via NetInfo or launchd, depending upon the version of Mac OSX. These get into UNIX networking commands, which is probably outside the main scope of this forum. I'm working on getting the UNIX boxes configured now. If anyone would like to know the commands, just post back here.
    I found out how to use the "Chooser" on Mac OS9.x platforms from p. 68 of the Apple manual "Mac OSX Server: File Services Administration for 10.4 or later".
    The Apple Technical Note 1111 on programmatic mounting of shares under AppleShare is also useful.
    Ed

  • Auto-mount network drive?

    Hi all,
    I have a Mac Pro running Leopard and a 1TB Buffalo Terastation on my home network. I am able to access with the Terastation from the Mac by going though Finder. To do so, I have to click on the name of the TS on the left side of Finder and then click on the "share" folder in the next column. This mounts the network share as /volumes/share.
    This is OK but I currently have my iTunes library on the Buffalo TS. However, if my iPod is already docked before I power up the Mac, iTunes can't find its library because the share isn't mounted. I have to manually make Leopard mount the share by the procedure in the above paragraph.
    Is there a way I can get the Mac to auto-mount the network share like I can under Windows or Linux? Since MacOS X is Linux based, can I use the Linux method for auto-mount the share by editing a fstab file?
    Any info will be appreciated. I've tried searching and have tried a few tips but haven't got it working yet.
    Thanks,
    Steven

    I'm not sure if this solution works or not, to be honest.
    I've added my mounted sharepoint to my login items aswell as editing the file you described:
    MacProBU:/MacProBU x url net, automounted,url==afp://admin:admin@"AFP on Tolton2TB.afpovertcp.tcp.local/MacProBU" 0 0
    MacProBU is the name of the Sharepoint and drive, once it is mounted.
    AFP on Tolton2TB.afpovertcp.tcp.local/MacProBU is the location of my sharepoint when I 'Get Info' on my mounted drive.
    My Network drive now seems to mount and be ready to use at login, however a Finder window now opens every time, showing my the contents of the Share.
    Not too much of a problem, but a bit annoying.
    I've read tons of articles about auto-mounting shares, AFP and SMB etc drives
    All seem a bit mis-matched with no idea what's going on. And a lot are complaining about the removal of NetInfo in leopard.

  • Auto Mount Network Drives Broken

    Hello,
    I have an automator script setup which auto mounts my server 2008 network shares on my desktop, now having upgraded to lion it will not let me do this, it also wont alow me to connect manually via the "connect drive" option!
    Can anyone point me in the correct area?
    Also i use a mighty mouse to scroll from one web page tot he next, not with lion this does not seem to be a available any help again?
    Ollie

    Is there any way to add a delay of around 60 seconds before the application tries to mount?
    Have you tried the delay verb from the StandardAdditions suite?

  • How to mount external drives on startup without login?

    I have a Mac Mini that runs as a server on my network. It has external FireWire drives attached, and I need them to be mounted at machine startup. By default they do not mount until a user interactively logs in.
    There was a fix for this in Tiger, involving a NetInfo setting; but since NetInfo Manager and niutil are now gone, I don't know how to make this work. I can mount the drive manually by sshing into the Mini and using a diskutil mount command, but that is very cumbersome and doesn't make the drive available for startup activities that need to access it.
    Tx!
    KeS

    Create the file
    /Library/Preferences/SystemConfiguration/autodiskmount.plist
    with the following contents:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>AutomountDisksWithoutUserLogin</key><true/>
    </dict>
    </plist>
    You can do this with the following command (note: it will ask for your admin password):
    sudo cat >/Library/Preferences/SystemConfiguration/autodiskmount.plist <<"EOF"
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>AutomountDisksWithoutUserLogin</key><true/>
    </dict>
    </plist>
    EOF

  • XFA Pdf form call secure webservice without prompt for password

    Hi,
    We are using XFA forms within the company. We have created many (400+) interactive forms with fields to fill manually.
    Now the business would like to lookup account details. They want user to be able to enter account number and then lookup details through webservice.
    The webservice is created on HOST/CICS and in COBOL. We need security on HTTPS and we cannot accept that the user is prompted for password.
    Our security department state that normal practice is to use KERBEROS token that gets authenticated later - is that possible with Adobe Reader??
    Have anyone developed this functionality within XFA forms and Adobe Reader?
    Thanks in advance,
    Thomas Groenbaek

    Reader can make Web Service calls but the form must be Reader Extended by LiveCycle Server to allow this. It does support secure web service calls but it does uid/pwsd or certificate authentication. Note that the web service can only return simple types. Objects cannot be returned.
    Paul

  • Shutdown from SliM without typing root password

    Something similar to GDM's shutdown button...why does slim need the root password ?
    As a second best, I tried setting up acpid to send the shutdown signal upon pressing the power button but that doesn't work until i'm logged in.
    Any suggestions ?

    tigrmesh wrote:If you have sudo installed, you can use visudo to give your user privilege to run the shutdown command.  Have a look at the man page for sudoers
    I do have sudo set up so that I can shut down that way. I know that unix is multi user system but this is my laptop we're talking about and only I use it.
    B wrote:You can do it just fine without having to be logged in. Just check the wiki.
    Will check the wiki again...
    Last edited by moljac024 (2008-04-27 09:18:05)

  • Disk drive suddently died without warning? :(

    I've been trying to get Bootcamp to work- I have a MBP so I cant use a usb drive to start it. After burning a disk in an iMac, I put it into my drive.. it made like a whiring sound, then it whined down.. did that two more times, then it spit out my disk. I tested it on the iMac and did work, so the disk isnt bajorked Drive was working fine yesterday..

    That actually is very much the nature of optical and hard drives - they very often do not die a slow nor obvious death with plenty of warning.  They just flip over and die suddenly, and with little or no warning.
    Is the MBP still under warranty or AppleCare by any chance?  Your drive would be covered for hardware failure.
    If it is out of warranty, take a loot at www.ifixit.com or other self-repair sites - ifixit has SuperDrives for about $150 (late 2008 MBP) and has detailed instructions to replace it yourself).
    P,S, you have tested the bad drive with at least one or more other discs though, right?  Just to be sure.

  • Dot1x - network access without prompting for password

    Dear all,
    I have a customer with wired dot1x which appears to no longer prompt for user authentication. The topology is a Radius server, Cat2950 switch and Windows XP clients. Recently, we have discovered that the PCs are not prompting for authentication and users are getting straight onto the network.
    When I delete the Windows registry entry
    HKEY_CURRENT_USER-Software-Microsoft-EAPOL- UserEupInfo
    I am again prompted for the username/password and the registry entry is added back in.
    Does anyone know how I can get the PC to always prompt for username/password without having to edit the registry each time?
    Many thanks in advance,
    Tracey

    Tracy,
    I don't have an answer to your question but I am tyring to do exactly what you have already done.(getting 802.1x working with xp client to acs server) Can you e-mail me the configs you used (client, switch acs)I am also working with tac but are not making progress. One thing i notice is that the switch port I am using is yellow and shows up down. is this normal behavior when the port is configured for 802.1x?
    Thanks, Tom [email protected]

  • Invoke Adobe reader in BB10, how to open encrypted files without prompting for password.

    Hello All,
    I am developing a BB10 application that invokes Adobe Reader as a card for viewing my encrypted pdf books, all books have the same password and I don't want to expose the password to the users to prevent copying copyrighted books. Is it possible to pass the password as parameter when invoking Adobe reader ? if not, is there a trick that can be used to prevent the user from using the options "Share" and "Save As" in card-invoked Adobe reader ?
    Thanks to all.
    Mohanad

    PS Touch can't open PSDs locally. They have to be imported via Creative Cloud (and even then, they are flattened when imported).
    I imagine this was a "quality of life" decision since PS Touch can only support up to 16 layers in a particular project. That and maybe the fact that Photoshop (and Photoshop Elements) can use layer masks, which PS Touch doesn't presently have.

  • Archiso no longer auto-mounts drive

    I'm using a custom installation with archiso..
    It used to boot and auto-mount the drive with archisolabel="XXX" (where XXX is the drive label) to /bootmnt
    Now, updating to newest archiso-git it always brings me into maintanence mode (cannot mount drive at /dev/disk/by-label/arch)
    Typing "mount /dev/disk/by-label/arch /bootmnt; exit" works and finishes the init.
    I've tried setting the drive label on this -- however the new archiso doesn't seem to support that:
    [root@image64 iso]# tune2fs -L arch /dev/sdc1
    tune2fs 1.41.9 (22-Aug-2009)
    tune2fs: Bad magic number in super-block while trying to open /dev/sdc1
    Couldn't find valid filesystem superblock.
    Any ideas what I'm missing here?

    That’s correct Bob and that behaviour is fine for the purpose which it is intended i.e to relink when a job has moved in the filesystem or across workstations. The file selection/highlighting behaviour may just have been a quirk but it was a useful one in some specific scenarios. Mine was (magazine production workflow):
    Images are placed by a layout artist in the format they are supplied (usually JPGs). The job folder is then passed to a prepress operator to perform finished cutouts and retouching. They output a corrected PSD into the same job’s images folder. They alt+tab to Indesign, select the image and got to Relink. The app file browser window opens and the linked JPEG is highlighted. Immediately above/below it is the matching new PSD (if they’re sorted by name). It therefore becomes far less likely that the operator will select the wrong file to relink because of the new PSD’s immediate proximity to the JPG.
    With no highlighting the operator has to scroll/search for the file visually (with one eye on the window title bar to get the ridiculously long but fabulously descriptive filename :) to relink and this not only slows them down but also greatly increases the possibility of a selection error without the visual cue.
    This may sound like a trivial gripe, but when some layouts contain large numbers of images, some of which are visually similar (and therefore can not easily be spotted shifting when the Relink is committed) it becomes an issue.
    To be fair to Adobe:
    1. This is not a normal scenario for the vast majority of users.
    2. It was probably only a happy accident that files were highlighted in the first place.
    Anyway I have a workaround. I asked my picture editor to convert all images to PSD before they’re placed :-)

  • Hi there! yesterday I installed Mavericks on my Macbook. Since then, it doesn't mount my external hard disk drive anymore, which he did a week ago (without the update). Is there anyone out there who knows a solution?

    Hi there! Yesterday, I installed Mavericks on my Macbook. Since then, it doesn't recognize my external hard disk drive anymore (at least not on the desktop. In Germany they call it "it doens't mount it". I don't know if it's the same expression in english?)
    I just used it a week ago, before I did the update and it worked perfectly fine.
    Is there anyone out there who knows a solution for this problem? I've been googleing for hours now and can't find any answer.
    Thank you!!!

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Verbatim disk drive historically used only for time machine backups. Recently i added some other media files to use some of available space without partitioning, the disc now refuses to mount in finder despite appearing in disk utility. Repair fails. HELP

    Sorry to elaborate a bit more.
    I have used time machine since owning my mac book pro with no issues. i keep the timemachine backups on an external hard drive made by Verbatim. This has not external power source.
    Recently i decided to use up some of the available space on the external verbatim disk drive to store some movie files which were sitting on my macbook pro.
    Therefore i created a new folder outside of the time machine backup folder and stored the movie files in there.
    From then on Time machine failed... and a few days later i noticed it was not mounting in 'finder'
    Therefore i used disk utility to see if it was recognising it. Which i was. However when i try to repair it the repair process fails.
    In disk utility i am presented with 1 TB Samsung HN M10 which has a child called Verbatim HD.
    The 1TB Samsung hardware appears fine, but the verbatim disk i am unable to fully verify and fix.
    Does this mean i have lost all my back ups?
    Have I lost all the media that i put on there?
    Is there any way to fix this?
    Any help would be appreciated.
    didier07...

    To summarize: You used an external Verbatim HD for your TM backups. Then, you stored some movie files on the "spare" space on the Verbatim drive. Now, Disk Utility isn't being recognized, and repair is disabled. Your home Samsung drive is working fine, but the Verbatim cannot be verified.
    The problem, I believe, is that the external Verbatim drive wasn't partitioned. There should be two partitions: one for TM backups, the other for video. That way, you can perform backups, and still retain some space for video or somesuch.
    Frankly, I don't know how to fix this except through the following. (1) Erase the Verbatim drive, (2) Create a new blank space and format it, (3) Make two partitions - one for backup, the other for video. (4) Run TM through one partition, but switch to the other for your videos.  The better solution might be to have one dedicated drive (perhaps the Verbatim) for backups, and another dedicated drive for video backups; that way, you'll have plenty of space for expansion.
    I hope someone will correct me if I'm incorrect, but I believe you've essentially lost your backups and media. I don't know how you can retrieve that clump of the now-undifferentiated data on the Verbatim drive. To retrieve any lost data, you're going to require another external drive that's larger in capacity, as well as data recovery software; don't expect encouraging results. If you're desperate, there are firms like Drive Savers that can offer a more comprehensive solution - at a cost.
    Post if you have questions, or additional concerns!

  • Disk Utility crashing, mounting encrypted drives w/out passwd

    MacBook Pro
    15-inch, Mid 2012
    Processor  2.6 GHz Intel Core i7
    Memory  8 GB 1600 MHz DDR3
    Graphics  NVIDIA GeForce GT 650M 1024 MB
    Boot drive: OCZ-VERTEX4 256GB SSD
    Data drive: APPLE HDD HTS547575A9E384 (original 750GB spindle moved to Optical bay)
    OSX 10.8.5 with all OS level updates installed
    Disk Utilty has become progressively worse, crashing randomly when mounting drives. Sometimes it works. Sometimes not. Does not matter if the computer is freshly booted or running for some time. Both with and without external drives. Tried zapping the PRAM. No difference.
    What's more, my Data drive (the HDD listed above) is encrypted and should NOT auto-mount. I have NEVER selected the auto-mount check-box. And yet, there are times (not always) that I enter the passwd for the one-time (until next reboot) Unlocking of the drive and the correct passwd yields the "Incorrect Password" error over and over again. I quit Disk Utility and wha-lah! --the drive is mounted.
    It got to the point that Disk Utility was auto-mounting the encrypted HDD drive without my ever selecting the auto-mount check-box. I deleted all Keychain preferences and this re-set Disk Utility back to its normal behaviour.  The preferences / Keychain file must have corrupted with all the Disk Utility crashes.
    What is going on? How can one of the oldest apps in OSX behave like this?
    Ideas?!
    kai

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

Maybe you are looking for

  • Pages 09 won't open .pages document

    Received a pages file from a colleague. When I double click to open it, Pages starts, then I get get the message: The document "xxxx xxxxxx xxxxxx.pages" could not be read. The document does not have a valid format. What the heck does that mean??? Ho

  • How to connect WebDav URL in Windows 7  to a Folder of KM.

    Hi, I have EP 7.0 SP 21. When I tried to map a network drive in Windows Explorer  to the WEBDAV URL of the Portal , don´t accept the URL. It said the folder is not valid. I know are problem with WebDAV in Windows 7. but not are a solution to this yet

  • Graph Chart not displated in XML PDF output

    Hi, Created an XML report with Pie chart and working fine in one instance (DEV). Migrated the same report to another instance(UAT instance) and when I run the report, it generates the XML report in PDF format but not displying the Pie Chart. DBA Team

  • Is all adobe illustrator art work in vector art or do you have to convert them to vector?

    I created a logo through Adobe illustrator and thought it would automatically be in Vector Art. When I sent the logo to a sign company they said it was pixelated, not Vector. Is it because I converted it into a pdf file before I sent it? And is there

  • How to use more than one region 'Conditional Display'

    Hi, I use a region and i want to use 2 Conditional Display for this region: . Fisrt when 'Request Is Contained within Expression 1' ==> 'Val1,Val2' . Second when 'Inline Validation Errors Displayed' Is it possible. Thanks