Skip to Main Content

Samba - reading directory : Permission denied

Minh TrinhApr 13 2022

Oracle linux : 7.9 - Kernel : 5.4.17-2011.6.2.el7uek.x86_64 - S amba : 4.10.16 -
smb.config

[global]
workgroup = SAMBA
security = user

passdb backend = tdbsam

printing = cups
printcap name = cups
load printers = yes
cups options = raw

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775

[share163]
browseable = yes
path = /u98/share
writeable = yes
valid users = usamba oracle
write list = usamba oracle
public = yes
read only = no

Here is the permission of the share directory

$ ls -ld /u98
drwxr-xr-x. 7 oracle oinstall 74 Apr 13 10:30 /u98
$ ls -ld /u98/share
drwxrwxrwx. 2 usamba usamba 28 Apr 13 11:12 /u98/share

Share is mounted as followed
mount -t cifs //192.168.2.163/share163 -o user=usamba,password=<password>,uid=oracle /mnt

When oracle user ( or root user ) issue an ls /mnt I got error : reading directory /mnt: Permission denied

[oracle@ol79rmtest ~]$ ls /mnt
ls: reading directory /mnt: Permission denied

What did I do wrong ?
Thanks

This post has been answered by Minh Trinh on Apr 13 2022
Jump to Answer
Comments
Post Details
Added on Apr 13 2022
1 comment
62 views