LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-21-2016, 01:16 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post mount error(13): Permission denied


Hello.
I want mount a network location via "fstab" and add below command to "fstab" file :

//remote address/share /mnt/network cifs auto,credentials=/etc/sambapasswords 0 0

but when I use "sudo mount -a" it show me :

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

What is your idea?

Tnx.
 
Old 02-21-2016, 02:01 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Then login as root and try again.

Second idea:
1. The permissions for mount are not set correctly for the sudo account.
2. The permissions of the sudo account are not set correctly.
 
Old 02-21-2016, 02:51 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Keruskerfuerst View Post
Then login as root and try again.

Second idea:
1. The permissions for mount are not set correctly for the sudo account.
2. The permissions of the sudo account are not set correctly.
Is you mean "network" directory?
 
Old 02-21-2016, 03:57 AM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
I haven`t said anything about network directory.
 
Old 02-21-2016, 04:24 AM   #5
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Keruskerfuerst View Post
I haven`t said anything about network directory.
Can you tell me more? with "sudo" I can install and... on my system and not have any problem.
 
Old 02-23-2016, 05:04 AM   #6
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Then check the permissions of mount and the permissions of sudo.
 
Old 02-27-2016, 04:28 AM   #7
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
No, The problem is my "credentials=/etc/sambapasswords" file and when I add below line, problem solved :

cifs username=jason,dom=example,password=123456,uid=1000 0 0

What is the correct syntax of "credentials=/etc/sambapasswords" ?
 
  


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
Permission denied Error between two mount point Masoom Linux - Newbie 4 10-12-2015 05:34 AM
Mount error (13). Permission denied Esaraujo Linux - Newbie 3 06-05-2013 07:47 AM
Mount error 13:permission denied while trying to mount Buffalo NAS to RHEL grendle65 Linux - Newbie 4 05-06-2013 05:39 PM
mount cifs error 13 (permission denied) but... realized Linux - Networking 2 10-25-2012 06:00 PM
Permission denied error when trying to mount image contained in sshfs mount openSauce Linux - General 2 03-08-2009 08:50 AM

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

All times are GMT -5. The time now is 12:32 AM.

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