LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2006, 08:48 PM   #1
O(V)eGA_l2el)
Member
 
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:
username=username
password=password
[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
LiamFromLeeds
Member
 
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
Micro420
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:44 PM.

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