Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I'm looking for a way to hide my credentials in fstab for lines like Code: //hostname/share smbfs /mnt/sharename defaults,username=user%password 0 0 The problem with the above line is that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie humbletech99's Avatar
    Join Date
    Nov 2005
    Posts
    225

    Hiding smb mount password in fstab? Hashing?


    Hi,
    I'm looking for a way to hide my credentials in fstab for lines like
    Code:
    //hostname/share   smbfs   /mnt/sharename     defaults,username=user%password       0      0
    The problem with the above line is that it appears in the process list and that the password is in cleartext. Using credentials=file is a better start but this is still in plaintext. Can't I hash the password with md5 or something?

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Posts
    1

    Hiding SMB-password in fstab

    In the following article it is explained how you can do that:
    http://www.justlinux.com/nhf/Filesys...rmanently.html

  3. #3
    Linux Newbie humbletech99's Avatar
    Join Date
    Nov 2005
    Posts
    225
    that page only shows how to use a credentials file instead of username password in fstab.

    i already do this and in some other places I use a script to prompt for a password and then use that which is safer.

    so I still haven't found a perfect solution to this in terms of security and auto mounting after reboot.

  4. $spacer_open
    $spacer_close

Posting Permissions

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