FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    New to Fedora...help mounting drives with TrueCrypt

    Hey guys,
    I just moved over form Ubuntu to Fedora and I'm going trough the usual growing pains. I installed True Crypt successfully but somehow I cannot mount any encrypted drives or files.
    When I attempt to mount a drive or file I get an error that says :

    "Failed to obtain administrator privileges: sudo: sorry, you must have a tty to run sudo. To enable use of 'sudo' by applications without a terminal window, please disable 'requiretty' option in '/etc/sudoers'. Newer versions of sudo automatically determine wether a terminal is required ('REQUIRETTY' option is obsolete)

    Now I did a bit of research and from what I understand the 'solution' to this is to edit sudoers file and edit it to 'requiretty' is disabled.
    Now the issue is i cannot find a place where it shows me how to do this. I am not well versed in CLI so a step by step link would be great so I dont mess up things...

    Or is there an easier way to be able to mount drives in TrueCrypt. I read about getting EasyCrypt instead, but wonder if the same issue would suffice.

    Thanks!

  2. #2
    Join Date
    Mar 2008
    Location
    UK
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: New to Fedora...help mounting drives with TrueCrypt

    Truecrypt requires root access if I remember right...
    In Fedora, Truecrypt is renamed as Realcrypt and is available from the RPMfusion repositories - see: http://rpmfusion.org/Configuration

    If you already have RPMFusion, did you install using:

    su -c "yum install realcrypt"

    If not, then try that first - the program should prompt you for the root password when you start it up.

    Good luck

    Oh, and if you want to add sudo back into Fedora, see:
    http://www.mjmwired.net/resources/mjm-fedora-f14.html
    http://www.mjmwired.net/resources/mjm-fedora-f15.html

  3. #3
    Join Date
    Jun 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: New to Fedora...help mounting drives with TrueCrypt

    Thanks! I installed Realcrypt this time and seems to be working good now, i can mount my drives.
    Thanks for the sudo links as well, most helpful!!

  4. #4
    Join Date
    Jun 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: New to Fedora...help mounting drives with TrueCrypt

    Could someone help me on how can I uninstall truecrypt now that realcrypt is up and running?

    Again just judging form my limited experience in Ubuntu I used to be able to go into add/remove software and be able to find a list of all installed software. I cannot seem to do that in Fedora, and when i do a search for truecrypt in add/remove nothing comes up.
    I tried using the 'rpm -ev truecrypt' command but did not find that package (not sure if maybe package name is wrong or I am just way off trying to uninstall it that way...) the Truecrypt file was a Tar.gz file and when I extracted it it was an excecutable setup file that I just clicked on to install so not sure if that translates into an RPM file....
    Thanks again!!

  5. #5
    Join Date
    Jul 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: New to Fedora...help mounting drives with TrueCrypt

    I had this same problem when I installed Truecrypt on Fedora 15.

    Anytime I tried to mount a volume, I got the following error:

    "Failed to obtain administrator privileges: sudo: sorry, you must have a tty to run sudo. To enable use of 'sudo' by applications without a terminal window, please disable 'requiretty' option in '/etc/sudoers'. Newer versions of sudo automatically determine whether a terminal is required ('REQUIRETTY' option is obsolete)'

    You can bypass the issue using the command line:

    $su --login
    $Password: enter password
    $truecrypt

    that activates truecrypt as root and lets you mount and unmount volumes normally through the GUI.

    Once you're done, you log out of root via the command line.

    $exit

    and you're done.

    It's not the most elegant solution, but it does allow Truecrypt to work.

  6. #6
    Join Date
    Feb 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: New to Fedora...help mounting drives with TrueCrypt

    i know this is old, but it still shows up on google results for newer releases of fedora.

    To mount a TrueCrypt volume, you will need two things:
    1- add truecrypt to your sudo list
    you can either add your user to the wheel group:
    usermod -a -G wheel username

    or you can allow yourself to run truecrypt, run "visudo" and add the following at the end of your sudo configuration
    username ALL=(ALL) /usr/bin/truecrypt

    2- disable the default Fedora option that requires a terminal to use sudo
    edit your sudo configuration file by running "visudo" as root
    find a line that reads something similar to "#Defaults !requiretty" and uncomment it (remove the #), so it looks like "Defaults !requiretty"

    remember to replace "username" mentioned above with your username.

    hope this helps. I found out Fedora 25 doesnt have the !requiretty line anymore, so i had to add it.

    regards,
    meheezen

Similar Threads

  1. how to stop fedora from mounting drives
    By piergi in forum Using Fedora
    Replies: 3
    Last Post: 16th January 2009, 02:49 PM
  2. Replies: 7
    Last Post: 12th February 2008, 12:56 AM
  3. Replies: 0
    Last Post: 24th April 2007, 02:20 PM
  4. Mounting Drives, Dual Boot, Fedora 5
    By sscotti in forum Using Fedora
    Replies: 0
    Last Post: 23rd September 2006, 03:07 AM
  5. Mounting two drives in Fedora
    By prairielily in forum Using Fedora
    Replies: 5
    Last Post: 15th April 2006, 04:03 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •