Comments on How to Install Samba Server on CentOS 8

Samba is a free and open-source software that can be used to share files, folders, and printers between Linux and Windows systems. In this tutorial, we will learn how to install Samba and configure it as a standalone sharing server on CentOS 8.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: testsmb

The following gives error:

semanage fcontext –at samba_share_t "/samba/share/public(/.*)?" restorecon /samba/share/publicusage: semanage fcontext [-h] [-n] [-N] [-S STORE] [ --add ( -t TYPE -f FTYPE -r RANGE -s SEUSER | -e EQUAL ) FILE_SPEC | --delete ( -t TYPE -f FTYPE | -e EQUAL ) FILE_SPEC | --deleteall | --extract | --list [-C] | --modify ( -t TYPE -f FTYPE -r RANGE -s SEUSER | -e EQUAL ) FILE_SPEC ] semanage fcontext: error: one of the arguments -a/--add -d/--delete -m/--modify -l/--list -E/--extract -D/--deleteall is required

By: till

Try this instead:

setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
semanage fcontext -a -t samba_share_t "/samba/share/public(/.*)?"
restorecon /samba/share/public

By: Marek

[2020/06/24 12:39:02.702561,  0] ../../source3/smbd/uid.c:412(change_to_user_internal)

Jun 24 12:39:02 smbd[14042]:   change_to_user_internal: chdir_current_service() failed!

Not working i cant access files.

By: SiB

[global]ntlm auth = yesThen Windows 10 start work with a Secret Share.