LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2024, 11:14 AM   #1
porican
LQ Newbie
 
Registered: May 2024
Posts: 1

Rep: Reputation: 0
Ubuntu Desktop 22.04.4 LTS - error 13 (Permission denied) opening credential file /etc/cred_1


Hello! This is my first post so please forgive me if I forget something. I'm pretty new to linux, I installed my first instance (Ubuntu Desktop 22.04.4 LTS) on a mini PC to run a Plex and Torrent server. I mount two network drives that host the files—one is a Drobo 5N, the other a Synology DS713+—using CIFS. I had no idea what I was doing but did some reading, some trial an error, and managed to get both servers up and running, and they've been working flawlessly for several months.

Today while watching a movie, Plex lost access to the file. When I went to check the mini PC, and the drive had been umounted and the torrent client had shut down. There were system updates pending, so I installed them and rebooted. My Synology drive had no issues mounting, but the Drobo would not mount, and I got this error:

Quote:
error 13 (Permission denied) opening credential file /etc/cred_1
I use a credential file to mount both drives with (the same) admin login info, and edited etc/fstab to do it automatically upon reboot. This has worked flawlessly for four months. Some searching shows that recent updates to the linux kernel have broken SMB shares, but most of the errors I'm seeing people report refer to "Resource temporarily unavailable" which is not my specific error. And again, only one of the shares (the Drobo) broke—the Synology still mounts just fine. And both shares are still fully accessible from other computers (running macOS).

When I try to force the mount in terminal with sudo mount -a, I get:

Quote:
mount error: Server abruptly closed the connection.
This can happen if the server does not support the SMB version you are trying to use.
The default SMB version recently changed from SMB1 to SMB2.1 and above. Try mounting with vers=1.0
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
I then tried editing the smb.conf file, adding "client min protocol = NT1" below the "[global]" line, in case the drobo only used the old SMB version (I don't know if it does or not). It didn't work.

I foolishly do not have a backup to roll back to. How can I fix this? Both my Plex and Torrent servers are out of commission until I can mount this drive on my miniPC again. I'm a linux noob but willing to study up, I'm just baffled that my whole setup can break instantly from a random update.

Please help, and thank you in advance!
 
Old 05-19-2024, 02:38 PM   #2
GeordieJedi
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Rep: Reputation: 2
Hi @porican

Based upon what you have written so far, I'd agree (in that, the issue seems to lie
between your Linux box, and the Drobo NAS).

1. How do your host machines get their IP addresses on your internal network ?
Are they -
1.1. DHCP
1.2. IP address reservation / DHCP reservation

2. (On the Drobo NAS) When setting up the permissions / CA for your Linux box how do you you identify it ?
2.1. Hostname
2.2. IP address


3. IIRC the Drobo will only work successfully when using SMB V1
(So make sure that is enabled at the correct version on the Drobo).

4. (On the Drobo) Can you check the following files -
hosts
hosts.allow

Is your Linux box (either IP address or hostname) showing in both of those files ?

5. (On your Linux box) as above, is the Drobo NAS box, showing in both the
hosts & hosts.allow files ?
(If not, edit these files to make sure that it is.
 
  


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
[SOLVED] Error Opening File Permission Denied on all 3 drives Ztcoracat Linux - General 55 04-05-2016 04:47 PM
CIFS window shares "permission denied" when using a credential file louiscar Linux - Networking 1 10-29-2015 06:18 PM
Error when mounting nfs -- mount: Permission denied / rpc.gssd ERROR: No credential intmail01 Linux - Server 1 04-20-2015 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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