Chapter 22. Samba
password he uses to log in to the Red Hat Enterprise Linux system as well as the password he must
provide to connect to a Samba share are changed.
To enable this feature, add the following line to /etc/pam.d/system-auth below the
pam_cracklib.so invocation:
password required /lib/security/pam_smbpass.so nullok use_authtok try_first_pass
22.2.4. Starting and Stopping the Server
On the server that is sharing directories via Samba, the smb service must be running.
View the status of the Samba daemon with the following command:
/sbin/service smb status
Start the daemon with the following command:
/sbin/service smb start
Stop the daemon with the following command:
/sbin/service smb stop
To start the smb service at boot time, use the command:
/sbin/chkconfig --level 345 smb on
You can also use chkconfig, ntsysv, or the Services Configuration Tool to configure which
services start at boot time. Refer to
Tip
To view active connections to the system, execute the command smbstatus.
22.3. Connecting to a Samba Share
You can use Nautilus to view available Samba shares on your network. Select Main Menu Button
(on the Panel) => Network Servers to view a list of Samba workgroups on your network. You can also
type smb: in the Location: bar of Nautilus to view the workgroups.
Figure 22.6, "SMB Workgroups in
As shown in
workgroup on the network.
220
Chapter 19, Controlling Access to Services
Nautilus", an icon appears for each available SMB
for details.