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