<---- template headericclude ----->
cifs mounts in fstab after Fedora 9
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2007
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cifs mounts in fstab after Fedora 9

    So I've been looking around all morning to try and figure this one out. I have a couple lines copied from my f8 fstab which I put in my f9 tab. I've installed samba-client and can manually mount the cifs partitions with the user name and password I have in my credentials file. However, when I have the line in my fstab:

    //server/share$ /mount/point cifs credentials=/etc/credentials.smb 0 0

    It doesn't mount specifying a login failure. the credentials file has the following format:

    username=myusername
    password=mypassword

    as I said, I can mount it just fine doing this:

    mount -t cifs //server/share$ /mount/point -o username=myusername,password=mypassword

    I've not yet tried to put spaces in between the '=' signs in the file, but I wanted to see if anyone else has seen this problem in F9?

    thanks

  2. #2
    Join Date
    May 2004
    Location
    PA
    Age
    45
    Posts
    466
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know the answer to your question. It's been a long while since I mounted a samba share.

    But there is an alternative method if you are using KDE. Open konqueror, and on the address bar type:

    smb://x.x.x.x

    Replace x.x.x.x with the host's IP address and hit enter. You will be asked for the username and password. This way you don't need to mount it.

    But again this may or may not suit your needs.
    oget, the "Pulse against"

    Thnigs that rule: Angelina, TKT, Linux, Supergravity, Alcohol...

  3. #3
    Join Date
    Nov 2004
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's my fstab line.

    \\computername\share /media/foldername cifs user=username,pass=password 0 0
    Lulz

  4. #4
    Join Date
    Aug 2007
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mooninite
    Here's my fstab line.

    \\computername\share /media/foldername cifs user=username,pass=password 0 0

    Yup, this works... just looks like using the credentials is broken

    Thank you for the suggestions! I do, unfortunately, want to mount to use as a source for local mail... if only I could convince the department to go to linux I wouldn't need a samba share

  5. #5
    Join Date
    May 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Man mount.cifs says:
    PHP Code:
    OPTIONS
           user
    =arg
               specifies the username to connect 
    as. If this is not giventhen the environment variable USER is    
              used

    Same is for password argument, if not set it uses enviroment variable PASSWD. Belive all this happens before consulting cred file.Check what those env variables hold, that might be the answer.

  6. #6
    Join Date
    Aug 2007
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dejan.kitic
    Man mount.cifs says:
    PHP Code:
    OPTIONS
           user
    =arg
               specifies the username to connect 
    as. If this is not giventhen the environment variable USER is    
              used

    Same is for password argument, if not set it uses enviroment variable PASSWD. Belive all this happens before consulting cred file.Check what those env variables hold, that might be the answer.
    environment variable is unset and the username is the same as user variable and should override. Thanks though!

  7. #7
    Join Date
    Aug 2007
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like there was a bug reported for those interested.

    Bugzilla Report #445623

Similar Threads

  1. nfs mounts from fstab not shown in fedora 9
    By duni in forum Servers & Networking
    Replies: 7
    Last Post: 15th June 2008, 08:54 PM
  2. kernel 2.6.18-1.2200.fc5smp and cifs mounts
    By jnatschev in forum Using Fedora
    Replies: 0
    Last Post: 10th November 2006, 12:09 AM
  3. mount.cifs in /etc/fstab
    By bob49 in forum Servers & Networking
    Replies: 0
    Last Post: 16th June 2004, 10:25 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
  •  
[[template footer(Guest)]]