Encrypted Passwords; Command Line Configuration; Starting And Stopping Samba - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

Chapter 20. Samba
• Writable — Enables users to read and write to the shared directory
• Visible — Grants read-only rights to users for the shared directory.
On the Access tab, select whether to allow only specified users to access the share or whether to
allow all Samba users to access the share. If you select to allow access to specific users, select the
users from the list of available Samba users.
The share is added immediately after clicking OK.

20.4.2. Command Line Configuration

Samba uses /etc/samba/smb.conf as its configuration file. If you change this configuration file,
the changes do not take effect until you restart the Samba daemon with the command service smb
restart.
To specify the Windows workgroup and a brief description of the Samba server, edit the following lines
in your smb.conf file:
workgroup = WORKGROUPNAME
server string = BRIEF COMMENT ABOUT SERVER
Replace WORKGROUPNAME with the name of the Windows workgroup to which this machine should
belong. The BRIEF COMMENT ABOUT SERVER is optional and is used as the Windows comment
about the Samba system.
To create a Samba share directory on your Linux system, add the following section to your smb.conf
file (after modifying it to reflect your needs and your system):
[sharename]
comment = Insert a comment here
path = /home/share/
valid users = tfox carole
public = no
writable = yes
printable = no
create mask = 0765
The above example allows the users tfox and carole to read and write to the directory /home/
share, on the Samba server, from a Samba client.

20.4.3. Encrypted Passwords

Encrypted passwords are enabled by default because it is more secure to do so. To create a user with
an encrypted password, use the command smbpasswd -a <username>.

20.5. Starting and Stopping Samba

To start a Samba server, type the following command in a shell prompt while logged in as root:
/sbin/service smb start
274

Advertisement

Table of Contents
loading

Table of Contents