Ask Your Question

Revision history [back]

Hi, thanks for you reply. Yes, I changed also the name in the brackets.

[myshare]
comment = myshare
path = /myshare
public = yes
writable = no

[raid1share]
comment = raid1share
path = /mnt/raid1/raid1share
public = yes
writable = no

and the folder raid1share exists.

[root@amofdr01 adam]# namei -l /myshare
f: /myshare
dr-xr-xr-x root root /
drwxr-xr-x root root myshare

[root@amofdr01 adam]# namei -l /mnt/raid1/raid1share
f: /mnt/raid1/raid1share
dr-xr-xr-x root root /
drwxr-xr-x root root mnt
drwxrwxr-x adam adam raid1
drwxrwxr-x adam adam raid1share

I figured out that temporary disabling selinux:

setenforce 0

helps:

[root@amofdr01 adam]# setenforce 0
[root@amofdr01 adam]# mount //localhost/raid1share /test2 -o username=adam
Password for adam@//localhost/raid1share:  *****
[root@amofdr01 adam]#
[root@amofdr01 adam]#
[root@amofdr01 adam]# ls /test2
raid1file1
[root@amofdr01 adam]# setenforce 1
[root@amofdr01 adam]#
[root@amofdr01 adam]#
[root@amofdr01 adam]# ls /test2
ls: reading directory '/test2': Permission denied

not sure what's wrong with the permissions.