Advanced applications of Samba server under Solaris

Source: Internet
Author: User
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

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.