Fedora Linux Support Community & Resources Center
  #1  
Old 15th May 2008, 07:49 PM
kpj104 Offline
Registered User
 
Join Date: Aug 2007
Posts: 73
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
Reply With Quote
  #2  
Old 15th May 2008, 08:13 PM
ogetbilo Offline
RPMFusion Dev
 
Join Date: May 2004
Location: PA
Age: 35
Posts: 466
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...
Reply With Quote
  #3  
Old 15th May 2008, 08:41 PM
mooninite Offline
Registered User
 
Join Date: Nov 2004
Posts: 69
Here's my fstab line.

\\computername\share /media/foldername cifs user=username,pass=password 0 0
__________________
Lulz
Reply With Quote
  #4  
Old 15th May 2008, 10:05 PM
kpj104 Offline
Registered User
 
Join Date: Aug 2007
Posts: 73
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
Reply With Quote
  #5  
Old 15th May 2008, 11:17 PM
dejan.kitic Offline
Registered User
 
Join Date: May 2008
Posts: 34
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.
Reply With Quote
  #6  
Old 15th May 2008, 11:45 PM
kpj104 Offline
Registered User
 
Join Date: Aug 2007
Posts: 73
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!
Reply With Quote
  #7  
Old 16th May 2008, 02:30 PM
kpj104 Offline
Registered User
 
Join Date: Aug 2007
Posts: 73
Looks like there was a bug reported for those interested.

Bugzilla Report #445623
Reply With Quote
Reply

Tags
cifs, fedora, fstab, mounts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs mounts from fstab not shown in fedora 9 duni Servers & Networking 7 15th June 2008 08:54 PM
kernel 2.6.18-1.2200.fc5smp and cifs mounts jnatschev Using Fedora 0 9th November 2006 11:09 PM
mount.cifs in /etc/fstab bob49 Servers & Networking 0 16th June 2004 10:25 PM


Current GMT-time: 22:22 (Wednesday, 22-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Guernsey Photos on Instagram - Heusenstamm Photos on Instagram - Asti Travel Photos on Instagram