Why I can't browse my Samba share?
by n00b_noob from LinuxQuestions.org on (#5HJ6E)
Hello,
I'm setting up a Samba DC on the Fedora Server 33 and joined a Windows client to my domain.
I want to create a share that just accessible for specific users.
I have a "login" group with below members:
Code:# groupmems -l -g login
user2 user3Then I created a "share directory as below:
Code:# mkdir share
# chmod -R 0770 share/
# chown -R :login share/
# chcon -t samba_share_t /home/share/After it, I added below lines to my "smb.conf" file:
Code:[Secure]
path = /home/share
valid users = @login
guest ok = no
writable = yes
browsable = yesThen restarted my Samba service and did:
Code:# testparm
Load smb config files from /usr/local/samba/etc/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_ACTIVE_DIRECTORY_DC
Press enter to see a dump of your service definitions
# Global parameters
[global]
bind interfaces only = Yes
dns forwarder = 8.8.8.8
interfaces = lo enp0s17
passdb backend = samba_dsdb
realm = MYDOMAIN.Z
server role = active directory domain controller
workgroup = MYDOMAIN
rpc_server:tcpip = no
rpc_daemon:spoolssd = embedded
rpc_server:spoolss = embedded
rpc_server:winreg = embedded
rpc_server:ntsvcs = embedded
rpc_server:eventlog = embedded
rpc_server:srvsvc = embedded
rpc_server:svcctl = embedded
rpc_server:default = external
winbindd:use external pipes = true
idmap_ldb:use rfc2307 = yes
idmap config * : backend = tdb
map archive = No
vfs objects = dfs_samba4 acl_xattr
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
[netlogon]
path = /usr/local/samba/var/locks/sysvol/mydomain.z/scripts
read only = No
[Secure]
path = /home/share
read only = No
valid users = @loginOn Windows client, when I want to open my share then it shows me below window and don't accept my username and password:
Attachment 36324
Why? Which part of my configuration is wrong?
Thank you.
Attached Thumbnails


I'm setting up a Samba DC on the Fedora Server 33 and joined a Windows client to my domain.
I want to create a share that just accessible for specific users.
I have a "login" group with below members:
Code:# groupmems -l -g login
user2 user3Then I created a "share directory as below:
Code:# mkdir share
# chmod -R 0770 share/
# chown -R :login share/
# chcon -t samba_share_t /home/share/After it, I added below lines to my "smb.conf" file:
Code:[Secure]
path = /home/share
valid users = @login
guest ok = no
writable = yes
browsable = yesThen restarted my Samba service and did:
Code:# testparm
Load smb config files from /usr/local/samba/etc/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_ACTIVE_DIRECTORY_DC
Press enter to see a dump of your service definitions
# Global parameters
[global]
bind interfaces only = Yes
dns forwarder = 8.8.8.8
interfaces = lo enp0s17
passdb backend = samba_dsdb
realm = MYDOMAIN.Z
server role = active directory domain controller
workgroup = MYDOMAIN
rpc_server:tcpip = no
rpc_daemon:spoolssd = embedded
rpc_server:spoolss = embedded
rpc_server:winreg = embedded
rpc_server:ntsvcs = embedded
rpc_server:eventlog = embedded
rpc_server:srvsvc = embedded
rpc_server:svcctl = embedded
rpc_server:default = external
winbindd:use external pipes = true
idmap_ldb:use rfc2307 = yes
idmap config * : backend = tdb
map archive = No
vfs objects = dfs_samba4 acl_xattr
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
[netlogon]
path = /usr/local/samba/var/locks/sysvol/mydomain.z/scripts
read only = No
[Secure]
path = /home/share
read only = No
valid users = @loginOn Windows client, when I want to open my share then it shows me below window and don't accept my username and password:
Attachment 36324
Why? Which part of my configuration is wrong?
Thank you.
Attached Thumbnails