Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > Linux > system administration

Mounting cifs via fstab

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: Mounting cifs via fstab      Add to my favorites
Nigel.S
Nov 4, 2009 17:09:11 GMT   

Hi

System = RHEL 5.4 Tikanga

I am able to perform the following command from the command line successfully

mount -t cifs //server/user /home/user/windows -o username=user,password=pass

However when I try to mount using fstab it fails

I have a /home/user/.creds file that includes
username=user
password=pass

And the following line has been added to /etc/fstab

//server/user /home/user/windows cifs credentials=/home/user/.creds,_netdev,soft 0 0

I receive the following error message
mount error 13 = Permission denied

I have also tried adding domain=domain to the .creds file but it still fails, can anybody show some light please
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Steven E. Protter Expert in this area This member has accumulated 80000 or more points
Nov 4, 2009 21:04:07 GMT    Unassigned

Shalom,

Has this system joined the domain?

If not, that could explain these issues.

SEP
Nuwan Alwis Expert in this area This member has accumulated 250 or more points
Nov 5, 2009 04:06:06 GMT    Unassigned

Hi Nigel,
Did you try this with selinux off.

i suggest you to try this fstab entry with plain text username and password and see if it works so we can go to next level

Good Luck...
NJ
Dirk Dierickx Expert in this area This member has accumulated 1000 or more points
Nov 5, 2009 08:50:39 GMT    Unassigned

i'm not a big fan myself of using cifs mountpoints directly in fstab, i use automounter for this. you should check it out as well.
Nigel.S
Nov 5, 2009 17:22:31 GMT    N/A: Question Author

Hi SELinux is currently turned off.

I can mount it using the fstab with the following line

//server/user /home/user/windows cifs user=user,password=pass,_netdev,soft 0 0

However when I use the line below it still fails

//server/user /home/user/windows cifs credentials=/home/user/.creds,_netdev,soft 0 0

The user owns /home/user/.creds

But I still recieve mount error 13 = Permission denied, any more ideas out there?
Nuwan Alwis Expert in this area This member has accumulated 250 or more points
Nov 6, 2009 03:29:22 GMT    Unassigned

Hi,
did you try this with root account's username and password. This seems to me a pure rights issue.

Good Luck...!
Nigel.S
Nov 19, 2009 09:16:57 GMT    N/A: Question Author

Hi All,

I was able to resolve the issue by just deleting the file and recreating it. Is it a known bug in the latest version of the samba client for x86_64 where the credentials file is not parsed corectly. If you use a hex editor you will be able to see an extra character before the last character in the password.

Hope this helps somebody else
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.