AIX samba Server Configuration

Source: Internet
Author: User

The simplest installation file is. Bff file, cainiao's favorite. I have been looking for a long time, now contribute: http://www.bullfreeware.com/

1. Download samba-3.0.4.0.bff

2. Place files in the temporary installation directory of the AIX system, for example,/usr/samba.

3. smit installp: locate the installation source directory under/usr/samba and install it;

4. After the installation is successful, the/usr/local/samba directory will be generated. The bin directory under this path is the samba application, and the sbin directory is the samba daemon, smb In the lib directory. conf is the configuration file of samba.


Configuration process

1. Edit the/usr/local/samba/lib/smb. conf/file. An example of a simple smb. conf file is as follows:

[Global]

Workgroup = workgroup

Server string = Samba 3.0.4.0

Security = user

Encrypt passwords = Yes

Smb passwd file =/var/samba/private/smbpasswd

Log file =/usr/local/samba/var/log. % m

Mangle case = Yes

[Homes]

Force user = % U

Read only = No

Hosts allow = 129.183.

[Printers]

Comment = All Printers

Path =/usr/spool/samba

Printable = Yes

Browseable = No

[Public]

Path =/jdlssoft/interface

Read only = no

Public = yes

[Root]

Comment = root directory

Path =/

Read only = no

Public = yes


2. Check the/etc/services file to see if there are the following lines:

Netbios-ns 137/tcp # NETBIOS Name Service

Netbios-ns 137/udp # NETBIOS Name Service

Netbios-dgm 138/tcp # NETBIOS datemediservice

Netbios-dgm 138/udp # NETBIOS datemediservice

Netbios-ssn 139/tcp # NETBIOS Session Service

Netbios-ssn 139/udp # NETBIOS Session Service

Swat 901/tcp # swat service of samba

If not, Add.


3. Check the/etc/inetd. conf file to see if the following lines exist:

Netbios-ssn stream tcp nowait root/usr/local/samba/sbin/smbd

Netbios-ns dgram udp wait root/usr/local/samba/sbin/nmbd

Swat stream tcp nowait.400 root/usr/local/samba/sbin/swat

If not, Add.


4. because the authentication method for passwords in AIX and Windows is different, it still fails to pass the correct password. encrypt passwords = Yes in conf. The current Samba 3.0.1.0 version defaults to Yes, and the smb password file defaults to/usr/local/samba/private/smbpasswd, which can be modified by the SWAT tool;


5. Run/usr/local/samba/bin/smbpasswd-a xxx. The password is the same as the operating system password of the user and the access password of the xxx user is created;

For example,/usr/local/samba/bin/smbpasswd-a root


6. refresh-s inetd and refresh inetd to start samba;


7. Use the Windows client for shared access to test whether the configuration is successful.


Oracle video tutorial follow: http://u.youku.com/user_video/id_UMzAzMjkxMjE2.html


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.