I'm using CentOS 7!
I want to know if is possible share root /
Linux directory.
In root mode:
# kwrite /etc/samba/smb.conf
Here the line contents
[global]
workgroup = MyGroup
server string = Description
netbios name = MyServer
...
[lnxroot]
path = /
valid users = root
browsable =yes
writable = yes
guest ok = yes
read only = No
[homes]
...
Now apply changes!
# chcon -R -t samba_share_t /
Is smart Before sentence applying to "/"? Because, I had problem with the before command, and now, I can't logging with root user or another user.
# service nmb restart
# service smb restart
# service winbind restart
chcon
command, you have broken the security context of your system which has very specific contexts by default throughout your filesystem. Try booting in rescue mode, mount your disk, changeSELINUX
todisabled
in/etc/sysconfig/selinux
. Then unmount your disk and restart normally. – MikeA Oct 10 '16 at 20:14