LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-26-2020, 10:55 AM   #1
MosheWiener
LQ Newbie
 
Registered: Jan 2020
Distribution: Debian 10
Posts: 3

Rep: Reputation: Disabled
Permission denied on cifs mount point


I mount a shared directory of my Win10 machine at my Debian machine. The mount seems to be successful but the mount point directory can't be read.
I run: sudo mount -t cifs -o username=<WIN user>,domain=<WIN machine name>,file_mode=0777,dir_mode=0777,rw,uid=$(id -u),gid=$(id -g),nounix,iocharset=utf8 //<WIN IP>/shared /home/<MY LINUX USERNAME>/network
After providing password it seems to be ok, but when I go:
ls ~/network
I get:
ls: reading directory '/home/<MY LINUX USERNAME>/network': Permission denied
Any help would be highly appreciated.
 
Old 05-29-2020, 05:34 PM   #2
Ratamahatta
Member
 
Registered: Feb 2012
Location: Germany
Distribution: siduction
Posts: 134

Rep: Reputation: 17
I never used that $(id -u) or $(id -g). Does that work? If the shell should misinterpret those things, I assume the mounted shared would not be accessible just as in your case.

Not sure why you need to be able to execute (as a binary) every file on that drive but that's not the issue here...

I use something like
Code:
//<IP or name of CIFS server>/<name of share>/         /media/<mountpoint>     cifs  noauto,users,username=<user name>    0 0
in my /etc/fstab. The point here is the users group that the users have to be in. That way all users in that group will be able to read that share. If that's not what you want, I suggest to create a new group and assign only your one user that is allowed to read the share to it. (This may be a workaround.)
 
  


Reply

Tags
mount, share



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 45 04-06-2020 05:31 AM
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 - Networking

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