RHCE basics-SAMBA

Source: Internet
Author: User
The samba server contains two service programs: smbdsmbd. The Service Program provides the client with access to the nmbdnmbd service program for shared resources (directories and files) on the server, and resolution of the netbios host name, resolve the samba Software Package samba-commonsambasamba-clientsystem-config-samba -- force -- nodepssam for hosts in the windowns network or in the Working Group.

The samba server contains two service programs.
The smbd service program provides the client with access to shared resources (directories and files) on the server.
The nmbd service program resolves the netbios host name and resolves the host name for the host in the windowns network domain or in the Working Group.

Samba Software Package
Samba-common
Samba
Samba-client
System-config-samba
-- Force -- nodeps
Samba-swat/etc/xinetd. d/swat only_from = 192.168.13.168, port 901

Samba startup command
/Etc/init. d/smb Startup Script File
Service smb start service
Service smb status query service status
Service smb stop service

Samba Account Management
Samba user accounts use an independent smbpasswd file to Save User Account and encrypted password information
The User Account of the samba server must have a linux User Account with the same name as the user account of the samba server.
The passwords of samba users and system users with the same name are independent of each other.
When a samba user does not need to log on to linux, the System user account with the same name may not set a password.

User Account of the samba server
The user account file of the samba server is saved in the/etc/samba/smbpasswd file.
The smbpasswd file does not exist. It is automatically created when you use the smbpasswd command to create a samba user for the first time.
The smbpasswd file only has the read and write permissions for the root user.
Smbpasswd-a sambauser: Add a samba User Account
Smbpasswd-d sambauser disabled
Smbpassed-e sambauser Enabled
Delete smbpasswd-x sambauser
 
[Global] in/etc/samba/smb. conf
Grep-v "^ #"/etc/samba/smb. conf | grep-v "^;" command to view valid configurations of smb. conf

[Global]
Workgroup = MYGROUP default workgroup
Server string = Samba Server description
Log file =/var/log/samba/% m. log file
Max log size = 50 log size kb
Security = user security level (share user server domain)
[Homes]
Comment = Home Directories description
Browseable = no indicates that all samba users' home directories cannot be viewed. Only logged-on users can see their home directories shared.
Writable = yes write?
[Public] Share Name
Path =/home/public path
Public = yes shared directory visible to all users
Only guest = yes indicates that all user identities when using the shared directory are nobody
Writable = yes: whether to allow write (the directory permission is required)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.