Game Development Reference
In-Depth Information
You can then navigate to /etc/samba and edit the smb.conf file. On a private
network for personal use, you may skip any steps that require the use of passwords
to mount network shares. In an exposed or production environment, always
use authentication.
If you personally do not like to put security on internal network shares that is
perfectly safe, since these files cannot be accessed from the Internet, you may just
want to browse your network freely and copy or move files around without the
extra headache of entering passwords.
By default, Samba is set for anonymous (unauthenticated) access. To change this,
scroll down and uncomment the line security = user by removing the preceding # .
This will tell Samba to authenticate against the users that you have created.
For demonstration purposes, create a system user to access Samba. We will quickly
create a user for the purpose of demonstration, as there is an extra step to add the
user to the Samba authentication list. The following command line snippet is an
example of creating a system user to access Samba:
useradd bond007 -m -G users
passwd bond007
smbpasswd -a bond007
Network shares
At the bottom of the smb.conf file, we will add two shares as shown in the following
command line snippet. One account is for guests without authentication, while the
other account will only be accessible by our new user, James Bond.
[public] comment = Media share
path = /nas/USB001/public
force user = "root"
read only = no
guest ok = yes
public = yes
[work]
comment = Work share
path = /nas/USB001/work
valid users = "bond007" #or @users to allow the group users access
force group = users
read only = no
writeable = yes
 
Search WWH ::




Custom Search