Samba NAS mounting error after chmod -R 666 the share directory
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.