Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 535.7K On-Premises Infrastructure
- 138.1K Analytics Software
- 38.6K Application Development Software
- 5.6K Cloud Platform
- 109.3K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
Samba - reading directory : Permission denied

User_GSQTY
Member Posts: 84 Bronze Badge
in Oracle Linux
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
[[email protected] ~]$ ls /mnt ls: reading directory /mnt: Permission denied
What did I do wrong ?
Thanks
Best Answer
-
I found my problem. I had to setenforce
setenforce 0
Answers
-
I found my problem. I had to setenforce
setenforce 0