LinuxQuestions.org
Visit Jeremy's Blog.
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 08-06-2016, 03:02 AM   #1
james3
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Rep: Reputation: Disabled
Samba NAS mounting error after chmod -R 666 the share directory


-------------------------
ERROR (after I did chmod -R 666 /mnt/sda1 on the NAS router )
------------------------
alex@alex-N56VZ ~ $ sudo mount -a
[sudo] password for alex:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

------------------------
MY /etc/fstab
------------------------

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=ee50e785-e4ae-47dd-97b6-be535a875207 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda7 during installation
UUID=9572e21a-5230-4c67-9d4d-05949c7c91f9 /home ext4 defaults 0 2
# swap was on /dev/sda8 during installation
UUID=9918b556-be44-4d56-9095-f5a4304bf22d none swap sw 0 0
#NTFS disco da 618GB
/dev/sda4 /media/alex/618GB ntfs defaults 0 0
#NAS 750 GB su Router Netgear
//192.168.1.1/SEAGATE_750GB_NAS /media/alex/SEAGATE_750GB_NAS cifs guest,rw,iocharset=utf8,uid=1000,gid=1000 0 0

I have an OpenWrt Router with a NAS Hard Drive

here is the etc/samba/smb.conf
root@WNDR4300owrt:/etc/samba# cat /etc/samba/smb.conf
[global]
netbios name = WNDR4300_OpenWrt
display charset = UTF-8
interfaces = 127.0.0.1/8 lo 192.168.1.1/24 br-lan
server string = OpenWrt
unix charset = UTF-8
workgroup = WORKGROUP
browseable = yes
deadtime = 30
domain master = yes
encrypt passwords = true
enable core files = no
guest account = nobody
guest ok = yes
invalid users = root
local master = yes
load printers = no
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
obey pam restrictions = yes
os level = 20
passdb backend = smbpasswd
preferred master = yes
printable = no
security = user
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY IPTOS_LOWDELAY
syslog = 2
use sendfile = yes
writeable = yes


[homes]
comment = Home Directories
browsable = no
read only = no
create mode = 0750

[SEAGATE_750GB_NAS]
path = /mnt/sda1
read only = no
guest ok = yes
create mask = 777
directory mask = 777
 
Old 08-06-2016, 06:47 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Make the folder 777, or at least 775. Directories cannot execute, but they need the execute bit turned on for several kinds of things. Apparently this is one of them.
 
  


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
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 01:10 PM
Difficulties mounting samba share (I/O Error) SebKG Linux - Software 8 12-22-2005 08:16 AM
Cannot set chmod for directory to 777 or 666 q.sa Linux - Software 6 07-19-2005 09:36 AM
did chmod 666 on a directory but it doesn't work r3dhatter Linux - Newbie 6 06-10-2005 10:06 AM
Error mounting Samba Share cmfarley19 Linux - Software 2 08-22-2003 12:56 PM

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

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