Results 1 to 8 of 8

Thread: Truecrypt, sudoers and security.

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Beans
    81

    Talking Truecrypt, sudoers and security.

    Ok! Hello everybody, and good morning.

    I am using truecrypt for fun really on one of my drives. I was bothered by the system always asking for administrator password for mounting the drive after entering the truecrypt password. I found the solution by editing the sudoers file. But I have found two slighlty different methods on the internet, both of which edit the sudoers file, but in different ways.

    One method adds a line to my /etc/sudoers file:
    username ALL=(root) NOPASSWD:/usr/bin/truecrypt

    The other method (the one I am currently using) implied creating a new group called truecrypt from the user and groups configuration window in the system administration menu. After that it adds this to my sudoers file:
    %truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt

    Both seem to work. But which one is best? What is the difference? Which is more secure? I always log on as the same user, and nobody else uses my laptop (well... I think nobody else uses my laptop

    Thanks.

  2. #2
    Soul-Sing is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Aug 2006
    Beans
    1,374
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Truecrypt, sudoers and security.

    You can add truecrypt to "users-groups"
    and add: %truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt
    to the sudoers file. thats how I do it.
    Interesting to here if its "alright".

  3. #3
    Join Date
    Dec 2010
    Beans
    81

    Re: Truecrypt, sudoers and security.

    Yes, me too. But is the first method better or worse? Do both disable the password for a given user? Does the second disable the password for other users too or only the one's enables in user-groups?

  4. #4
    Join Date
    Jun 2006
    Location
    Brisbane Australia
    Beans
    713

    Re: Truecrypt, sudoers and security.

    I'm going a bit off topic here but although everybody talks about Truecrypt I find that most really just want one encrypted folder under which they can put all sensitive files and folders. For this the age-old encfs utility works best. No mucking around with partitions, sizes, root user, etc. Simple and works well. I have used it for years.

  5. #5
    Join Date
    Dec 2010
    Beans
    81

    Talking Re: Truecrypt, sudoers and security.

    Hello markbl! I use truecrypt so I can mount the fs with windows too (dual boot). I'm not doing that much for security reasons, but entertainment. If I didn't use windows at all, mint mate (and ubuntu) already offer disk encryption that I think is equally good. I might look at your option using encfs one day, for fun.

    But going back to the first question, what is the difference between the two methods in the first post? Anyone?

  6. #6
    Join Date
    Jun 2009
    Beans
    75

    Re: Truecrypt, sudoers and security.

    More secure? The first. Only a single user can elevate to root to execute truecrypt. Second mechanism allows any number of users (as long as they belong to truecrypt).

    In practice, it probably doesn't matter. However, if someone can sneak their way into adding a user to the truecrypt group, they probably already have root & wouldn't need to be modifying sudoers...that is unless they want to drop an egg to get into your encrypted drive as non-root later.

    E.g., someone could create a user named "truecrypt" & add it to the truecrypt group. If you're not careful & you happen to look at auth logs every once in a while, you might not catch it, as it's common to have services be run as a user with the same name as that service.

  7. #7
    Join Date
    Dec 2010
    Beans
    81

    Re: Truecrypt, sudoers and security.

    Thank you very much paperplate9 for your answer. What you said seems to make sense. According to you I'm using the less secure method. I'll have to change over it then.
    Now I have one more question if it's ok. Is the user-group window meant for managing large numbers of users easily? Would it be safer to add as many lines to the sudoers file as users instead of a group?
    THanks again.

  8. #8
    Soul-Sing is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Aug 2006
    Beans
    1,374
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Truecrypt, sudoers and security.

    thx paperplate9

Tags for this Thread

Bookmarks

Posting Permissions

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