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