Access denied secured samba - windows 10
Posted: 2017/02/01 01:15:54
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
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