Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-04-2006, 08:48 PM   #1
Registered: May 2005
Distribution: Fedora & Debian
Posts: 56

Rep: Reputation: 15
Mounting windows share via cifs (fstab entry) - error 13 opening credentials file

Distro: 2.6.18-1.2239.fc5

The following command works via terminal.

mount -t cifs //windowsxpbox/windows\ share /media/mount\ point/ -o credentials=/home/user1/.cifscredentials

The above .cifscredentials file has the following permissions: -rwxr--r-- 1 root root

Below is the entry format of said credentials file:
[An empty line or space is here]

The following is the fstab entry for the above windowsxp share:

//windowsxpbox/windows\040share /media/mount\040point cifs credentials=/home/user1/.cifscredentials 0 0

Upon rebooting, I receive error 13 opening credentials file

Note: Adding auto, in front of the credentials=... column does not resolve error 13.

What am I overlooking in the fstab entry or permissions?
Old 12-05-2006, 06:45 AM   #2
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
My guess would be the problem is with the order things are mounted in your fstab. Is your windowsxp share mounted before your /home fielsystem?
Old 12-05-2006, 11:22 AM   #3
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Try this: after your system is booted up, can you then manually do a mount -a and see if that works?

Also, I would not make the permission of your .cifscredential file 744. I would make it 400! This way users cannot view your username/password except admins on your system.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab entry does not mount nfs share nanbudh Linux - Networking 13 06-07-2012 02:05 PM
Problem mounting a samba share "CIFS VFS: Send error in SETFSUnixInfo = -5" mrcoffee11 Linux - Software 1 11-07-2006 05:29 PM
Smbmount Error In Mounting Windows XP Share Pauli Linux - General 2 05-26-2006 02:40 PM
Error Mounting Windows SMB Share plustiber Linux - Networking 1 06-27-2005 12:39 AM
Help with fstab entry to connect to network share adamsjw2 Linux - Networking 6 02-15-2004 11:24 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration