Article Title: advanced applications of Samba servers under Solaris. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. user-level Samba Configuration
The user name and password must be provided for verification. Here, Samba users must be Solaris users. For the same user, the samba password and system password do not have to be the same.
1) Add a system user (you can also use an existing user)
# Useradd-d/export/home/c?- m-s/usr/bin/bash c=
2) use smbpasswd to add Samba users
#/Usr/sfw/bin/smbpasswd-a cquota
New SMB password:
Retype new SMB password:
Added user cquota.
#/Usr/sfw/bin/smbpasswd-e cjh
Enabled user cquota
3) edit the configuration file smb. conf.
===========/ Usr/sfw/smb. conf ==============
Security = user
[Homes]
Comment = Home Directories for % S
Valid users = % S # Only the owner can access the share.
Browseable = no # this share is invisible to other users
Writable = yes
Create mask = 0640 # permission mask when creating a file
Directory mask = 0750 # permission mask when creating a directory
Here, the % S wildcard can be extended to the actual sharing name. In this way, the csung shared comment will be "Home Directories for csung ".
4) restart the Samba service.
# Svcadm restart samba
When samba is used to access the Solaris machine from other systems, if the user name is cashed and the password is Samba, you can see the content in/export/home/cjh.
[1] [2] [3] Next page