Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-06-2016, 03:02 AM   #1
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
// /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
netbios name = WNDR4300_OpenWrt
display charset = UTF-8
interfaces = lo 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
syslog = 2
use sendfile = yes
writeable = yes

comment = Home Directories
browsable = no
read only = no
create mode = 0750

path = /mnt/sda1
read only = no
guest ok = yes
create mask = 777
directory mask = 777
Old 08-06-2016, 06:47 AM   #2
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,730

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration