Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 07-29-2006, 10:34 PM   #1
LQ Newbie
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
Why does CIFS mount fail

I am using FC5 and I am attempting to do a CIFS mount from the FC5 workstation to a Solaris workstation.

I run:

mount -t cifs //<workstation>/<dir> /mnt/<mntpoint> -o credentials=/root/.credentials,ro

The credentials file is:

When I execute this I get the following error:

mount error 5 = Input/output error
Refer to the mount.cifs(8) manual page ( mount.cifs)

When I attempt the same thing from the same FC5 workstation to a Windows-based server it works great so I know that the appropriate services and permissions are correct.

One thing that the Solaris administrator told me was that the password was transferred as "plaintext" (yeah, i know that is bad but i have no control over that). Any idea how I can make the CIFS mount use plaintext passwords?
Old 07-30-2006, 12:05 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
You might try "echo 1 >/proc/fs/cifs/cifsFYI" to print out more debug information to the system error log. Reference: /usr/src/linux/fs/cifs/README

The message doesn't seem to indicate an authentication error, so I don't think the problem is with the password. I didn't find a reference to the error code in the manpage.

Last edited by jschiwal; 07-30-2006 at 12:13 AM.
Old 07-30-2006, 11:18 PM   #3
LQ Newbie
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I did this and /var/log/messages only indicated the same error message
Old 07-30-2006, 11:32 PM   #4
LQ Newbie
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
This is the dmesg log

fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 16) rc = -5
CIFS VFS: cifs_mount failed w/return code = -5
fs/cifs/cifsfs.c: Devname: //<Server>/<directory> flags: 65
fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 17 with uid: 0
fs/cifs/connect.c: Username: name
fs/cifs/connect.c: UNC: \\<server>\<directory> ip:
fs/cifs/connect.c: Socket created
fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffff
fs/cifs/transport.c: Sending smb of length 68
fs/cifs/connect.c: Demultiplex PID: 30427
fs/cifs/connect.c: Existing smb sess not found
fs/cifs/transport.c: For smb_command 114
fs/cifs/transport.c: Sending smb of length 47
fs/cifs/connect.c: rfc1002 length 0x82000004)
fs/cifs/connect.c: Good RFC 1002 session rsp
fs/cifs/connect.c: rfc1002 length 0x53)
fs/cifs/cifssmb.c: share mode security
fs/cifs/connect.c: No session or bad tcon
fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 17) rc = -5
CIFS VFS: cifs_mount failed w/return code = -5
Old 09-02-2006, 11:15 AM   #5
LQ Newbie
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Do you have the CIFS client or samba on the Solaris box?
I mount from FC5 to Solaris 9 basic load box with mount -t nfs...
Old 12-02-2009, 10:42 AM   #6
Registered: May 2008
Location: Columbus Ohio
Distribution: CentOS 5.9/6.4 x64
Posts: 44

Rep: Reputation: 19
This is a common problem with the credentials file.

You will need to install ghex2, open the credentials file and remove the dot at the end of your password.


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
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 44 02-26-2016 12:45 PM
mount.cifs - mount error 20 = Not a directory da_kidd_er Linux - Networking 10 10-16-2008 12:55 PM
mount smbfs vs cifs Zurvan Linux - Networking 2 12-29-2006 02:46 PM
Fedora 5 mount.cifs showing incorrect permissions Peter Gordon Linux - Software 0 04-18-2006 01:15 AM
Unable to mount via cifs but fine with sbmfs drewhead Slackware 6 01-27-2006 09:31 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:52 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