![]() Optionally checkmark IPP printer sharing. Simply scan down the list to Samba and checkmark the box. You can use the tool in System > Administration > Firewall. Now change the firewall to allow Samba to get through. If you want to have a trash-bin on the share, you might consider adding following section: Thus, the section heading should be named the same: path = /home/shared writeable = yes browseable = yes read only = No guest ok = Yes public = Yes valid users = username1 username2 create mask = 0666 directory mask = 0777 Go all the way to the bottom of the file and add some lines. If you want to bind to specific interfaces only you maybe want to consider The other (192.168.1.) is the private LAN network I use for my home router by leaving off the last section after the dot, it automatically includes every computer with that prefix, which is reserved for LANs. The “127.” is the IP address for everything on your own machine. Below that, start a new line with the same indentation: hosts allow = 127. Below that is a line with hostsallow as a model. Remove the semicolon from the next line and the IP address numbers from the sample all we need are the two interfaces lo eth0. You’ll need to remove the semicolon in front of the next line and provide a proper hostname for the netbios name, which would be the name you gave your RHEL computer during installation, again in lower case. Default is workgroup in lower case letters. Change the workgroup name to whatever your Windows computer will be seeking. Setup a samba config ¶įind the section headed ''. So CentOS recognizes the person logging in from the Winbox by their samba-username. Immediately below this, add a line with this format: username = samba-username Scan down the file until you see something like this: root = administrator admin It will prompt for the password, which you type in blindly: New SMB password: Remember what we said about coming up with good passwords: smbpasswd -a samba-username As usual, substitute the actual Real Name and samba-username in the command above. useradd -c "Real Name" -d /home/samba-username -s /sbin/nologin samba-username However, Samba users must be handled differently, so that the system forces them to use the Samba server. ![]() There is a GUI tool for adding Linux user accounts to the machine for them to use the computer itself. This is a different task than simply adding a user account. Now anyone using this computer can move files in and out of the folder, as well as the Samba users. That last line insures the SELinux security system knows to allow outside systems to poke around in that folder. The samba_export_all Flag will allow to share any folder on the machine, use with care.Ĭreate shared directory I used /home/shared: mkdir /home/shared This and more information can be found at setsebool -P samba_domain_controller on If SeLinux is active, then it might be necessary to set some samba-related variables depending on the share-location. If you want to have access to samba-shares you also want to Install Samba by logging into a Terminal as root: After fighting with it a bit, this is what I did to get it working. I’ve found a couple of tutorials on Samba, but neither one had all the right information. ![]() CentOS 7.x)Īnd the samba for groups part is taken from
0 Comments
Leave a Reply. |