To configure Samba using a graphical interface, use the Samba Server Configuration Tool.
The Samba Server Configuration Tool is a graphical interface for managing
To use this application, you must be running the X Window System, have root privileges, and have the system-config-samba RPM package
Note
The first step in configuring a Samba server is to configure the basic settings for the server and a few security options. After starting the application, select Preferences => Server Settings from the pulldown menu. The Basic tab is displayed as shown.
The Security tab contains the following options:
Authentication Mode — This corresponds to the security option. Select one of the following types of authentication.
Using a Samba server as a domain member in an ADS realm assumes proper configuration of Kerberos, including the /etc/krb5.conf file.
Domain — The Samba server relies on a Windows NT Primary or Backup Domain Controller to verify the user. The server passes the username and password to the Controller and waits for it to return. Specify the NetBIOS name of the Primary or Backup Domain Controller in the Authentication Server field.
The Encrypted Passwords option must be set to Yes if this is selected.
After clicking OK, the changes are written to the configuration file and the daemon is restarted; thus, the changes take effect immediately
To add a Samba user, select Preferences => Samba Users from the pulldown menu, and click the Add User button. In the Create New Samba User window select a Unix Username from the list of existing users on the local system.
If the user has a different username on a Windows machine and needs to log into the Samba server from the Windows machine, specify that Windows username in the Windows Username field. The Authentication Mode on the Security tab of the Server Settings preferences must be set to User for this option to work.
To edit an existing user, select the user from the list, and click Edit User. To delete an existing Samba user, select the user, and click the Delete User button. Deleting a Samba user does not delete the associated system user account.
The users are modified immediately after clicking the OK button.
Adding a Share
To create a Samba share, click the
button from the main Samba configuration window.The Basic tab configures the following options:
Directory — The directory to share via Samba. The directory must exist before it can be entered here.
Share name — The actual name of the share that is seen from remote machines. By default, it is the same value as Directory, but can be configured.
Descriptions — A brief description of the share.
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.