Page 1 of 1

Access denied secured samba - windows 10

Posted: 2017/02/01 01:15:54
by tsinelas30
Hi CentOS comm,

What is the possible problem on my secured samba share folder?
When I tried to access the folder using created user "user1" I got access denied response.
I know I typed in the correct password.

[root@localhost demo]# useradd user1
[root@localhost demo]# groupadd group1
[root@localhost demo]# usermod -a -G group1 user1
[root@localhost demo]# smbpasswd -a user1
New SMB password:
Retype new SMB password:
Added user user1.
[root@localhost demo]# mkdir /home/secure
[root@localhost demo]# chown -R user1:group1 /home/secure/
[root@localhost demo]# chmod -R 0770 /home/secure/
[root@localhost demo]# chcon -t samba_share_t /home/secure/
[root@localhost demo]# gedit /etc/samba/smb.conf


[Secure]
path = /home/secure
valid users = @smbgrp
browsable = yes
writable = yes
guest ok = no
read only = no

Re: Access denied secured samba - windows 10

Posted: 2017/02/01 01:19:13
by TrevorH

Code: Select all

# getsebool -a | grep -i samba
samba_create_home_dirs --> off
samba_domain_controller --> off
samba_enable_home_dirs --> off
samba_export_all_ro --> off
samba_export_all_rw --> off
samba_load_libgfapi --> off
samba_portmapper --> off
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
sanlock_use_samba --> off
tmpreaper_use_samba --> off
use_samba_home_dirs --> off
virt_use_samba --> off
Third one down looks hopeful.

Re: Access denied secured samba - windows 10

Posted: 2017/02/01 01:27:07
by tsinelas30
Sorry I dont get it.

Im new in Centos.

Re: Access denied secured samba - windows 10

Posted: 2017/02/01 07:34:10
by TrevorH
samba_enable_home_dirs --> off
That's an selinux boolean that you need to change to allow samba to access home directories - so setsebool -P samba_enable_home_dirs 1