FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    ndv Guest

    /etc/fstab cifs/smbfs passwords in cleartext

    I'd like to write a line in fstab that mount a share on a windows 2000 (so SMBFS) and/or 2003DC (so CIFS), but my problem is that I have to write a cleartext password... is it necessary are there some md5/shadow solution?
    here a sample of the option I am evaluating: //server/share /mnt/servershare/ noauto,username=xxx,password=yyy,uid=500,gid=500 1 2


    thanks in advance
    nicola

  2. #2
    ghenry Guest
    create /home/username/.smbcredentials containing (in this format):

    Code:
    username=USERNAME
    password=P@$$WORD
    Code:
    chmod 600 /home/username/.smbcredentials
    So
    Code:
    //server/share /mnt/servershare/ noauto,username=xxx,password=yyy,uid=500,gid=500 1 2
    Becomes:

    Code:
    //server/share /mnt/servershare/ noauto,credentials=/home/username/.smbcredentials,uid=500,gid=500 1 2
    Last edited by ghenry; 20th June 2004 at 01:40 PM.

  3. #3
    micha Guest
    The problem is that the password is still stored in plain text in a file. I guess CIFS is not yet ready for everyone...

  4. #4
    ghenry Guest
    Doesn't matter is it is encrypted as it is still sent across the wire in clear text.

  5. #5
    Join Date
    Apr 2004
    Location
    Daytona Beach, FL
    Age
    60
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Windows still only deals with Clear Text

    Until Windows is devolped to handle the encrypted text there is no reason to build it any other way than clear. You can lock it down on your system, but once it hits the network its free game. This is actually a very old problem dating back to win95 and I have heard of no plans to change this.

    A possible solution would be to make a "dummy" user on the system in question, using the Administration Settings and not the add user wizard.

    Make him limited. Go into his docs and make a directory named LINUXSHARE and then add the REAL user access to that directory you want to share files with. This way you can keep sniffers from grabbing access to a legitimate account. You can also have this dummy user not in the login screen (which shouldn't be used outside of the control-alt-del screen anyway-- in other words no usernames listed) so as to keep it hidden a little better.

    Turn on logging to see if anyone actually tries to logon as that user locally.

    Another thought would be to add your linux box as a member of the Domain Controller

    Just some thoughts....

Similar Threads

  1. cifs instead of smbfs
    By daviddoria in forum Servers & Networking
    Replies: 14
    Last Post: 9th July 2008, 01:47 PM
  2. cifs or smbfs?
    By harisund in forum Servers & Networking
    Replies: 4
    Last Post: 31st July 2006, 07:37 AM
  3. smbfs/cifs mount point in fstab not mounting on boot
    By rgladwell in forum Servers & Networking
    Replies: 5
    Last Post: 15th January 2006, 11:05 PM
  4. useradd -p stores cleartext passwords
    By Patpicos in forum Security and Privacy
    Replies: 1
    Last Post: 30th July 2005, 01:04 AM
  5. CIFS and SMBFS
    By digaddictions in forum Servers & Networking
    Replies: 0
    Last Post: 16th March 2005, 07:28 AM

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
  •