Red Hat LINUX VIRTUAL SERVER 4.6 - ADMINISTRATION Installationshandbuch Seite 212

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 296
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 211
192 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
2. Confirm that the RPMs were added:
# rpm -qa | grep samba
samba-common-3.0.28-0.el5.8
samba-client-3.0.28-0.el5.8
samba-3.0.28-0.el5.8
samba-common-3.0.28-0.el5.8
11.3.3 Configuring the Samba configuration file
The one configuration file for Samba is /etc/samba/smb.conf. It is easy to add an SMB share
that will be made available by the Samba server. A good test directory is /usr/share/doc,/ as
it has good Linux documentation. The following example creates a file
share named sharedoc:
# cd /etc/samba
# cp smb.conf smb.conf.orig
# vi smb.conf // add three lines at the bottom of the file:
...
[sharedoc]
comment = RHEL 6 on System z documentation
path = /usr/share/doc/
You can verify the syntax of your changes by using the testparm command:
# testparm smb.conf
Load smb config files from smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[sharedoc]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
...
This change creates an SMB share named sharedoc that contains the contents of the
/usr/share/doc directory and its subdirectories.
11.3.4 Adding a Samba user
The default method that Samba uses to determines users’ credentials is to look in the
/etc/samba/smbpasswd file. That user must first exist in the Linux file system (/etc/passwd,
/etc/shadow, and so on).
Perform the following steps:
1. To create a new Samba user, run the smbpasswd -a command. First, use the useradd and
passwd commands to add a user locally. In this example, the user sambauser1 is used:
# id sambauser1
id: sambauser1: No such user
# useradd sambauser1
# passwd sambauser1
Changing password for sambauser1.
New password: lnx4vm
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password: lnx4vm
passwd: all authentication tokens updated successfully.
Seitenansicht 211
1 2 ... 207 208 209 210 211 212 213 214 215 216 217 ... 295 296

Kommentare zu diesen Handbüchern

Keine Kommentare