Red Hat SATELLITE 5.1.0 RELEASE NOTES Manual de instalación Pagina 191

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 268
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 190
Chapter 12. Cloning open source virtual servers 173
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
12.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/
because it contains a significant amount of useful Linux documentation. The following
example will create 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 5.2 on System z documentation
path = /usr/share/doc/
You can verify the syntax of your changes with 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 will create an SMB share named sharedoc consisting of the contents of the
directory /usr/share/doc and below.
12.3.4 Adding a Samba user
The default method that Samba uses to determine user 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).
To create a new Samba user, the smbpasswd -a command is used. 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>
Re-enter new password: <lnx4vm>
Password changed
Add the user sambauser1 to the smbpasswd file using the smbpasswd -a command:
# smbpasswd -a sambauser1
New SMB password: <lnx4vm>
Vista de pagina 190
1 2 ... 186 187 188 189 190 191 192 193 194 195 196 ... 267 268

Comentarios a estos manuales

Sin comentarios