LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-20-2017, 11:26 AM   #1
dpreviti
LQ Newbie
 
Registered: Nov 2017
Posts: 1

Rep: Reputation: Disabled
Ubuntu 16.04.3 Can no longer mount cifs drive from credential file


hello all,

This is a new issue on a machine that had the cifs share working fine up till I assume the last mount update. I can no longer mount a cifs drive using a credentials file from either the fstab or command line.

when I try mount -a I get
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The machine has no trouble mounting from the command line using ' -o user=,password=' but I don't want the credentials in my fstab which is how I had it setup before.

I have tried changing the .credentials file to 666 and I am of course doing this as root, to make sure that a file permissions are not the issue, & the credentials are correct in the file.

My machine is Ubuntu 16.04.3, using the 4.48 kernel with mount version 2.27.1-6ubuntu3.3, cifs-utils 2:6.4-1ubuntu1.1.


from my syslog

Nov 20 12:09:19 espressobin kernel: [106835.963960] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Nov 20 12:09:19 espressobin kernel: [106835.963990] CIFS VFS: Send error in SessSetup = -13
Nov 20 12:09:19 espressobin kernel: [106835.969401] CIFS VFS: cifs_mount failed w/return code = -13

my .credentials file
user=myuser
password=mypassword

I have also tried
user='myuser' & user = myuser both had no luck.


my fstab
# qbittorrent download dir on hizouse
//192.168.1.124/downloads /mnt/hizouse cifs credentials=/.qbit-samba-creds,sec=ntlmssp -1 0


Any help or advice would be awesome, Thanks!!

EDIT: Looks like there may have been a carriage return in the .credentials file that was trowing it off.

Last edited by dpreviti; 11-20-2017 at 12:37 PM. Reason: solved
 
Old 11-20-2017, 08:16 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Well, many happy returns, then. (Just to get this off of the zeero-reply list.)
 
  


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
CIFS window shares "permission denied" when using a credential file louiscar Linux - Networking 1 10-29-2015 06:18 PM
finding mount point path for Windows CIFS volume visible in Ubuntu file browser knighttof3 Linux - Newbie 6 01-08-2010 03:40 PM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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