HP-UX SAMBA service configuration Manual

Source: Internet
Author: User

Author: Xu Liang Olympus (Shenzhen) Industrial Co., Ltd. | sap Development Engineer/SAP basis Consultant

1. obtain and install the software package 
1. Software Package name
CIFS-SERVER
CIFS-CLIENT
The Samba service for the HP-UX is installed with the system by default (for the new version 11.31 system, the lower version 11.21 should also be available on the system disc), Just configure it.
Install the Samba server package and client package together.

Mount the optical drive:
# Ioscan-FNC Disk
Class I h/W path driver S/W State H/W type description
========================================================== ======================================
Disk 1 1/0/0/3/0.6.0 sdisk claimed device HP 36.4st336752lc
/Dev/DSK/c0t6d0/dev/rdsk/c0t6d0
Disk 0 1/0/0/3/1.2.0 sdisk claimed device HP DVD-ROM 305
/Dev/DSK/c1t2d0/dev/rdsk/c1t2d0
Disk 2 1/0/1/0/0/1/1.6.0 sdisk claimed device HP 36.4st336753lc
/Dev/DSK/c3t6d0/dev/rdsk/c3t6d0
# Mount/dev/DSK/c1t2d0/CDROM

2. Software Installation
# Swinstall

3. installation directory of the software
# Find/-name samba
/Etc/opt/samba
/Etc/rc. config. d/samba
/Opt/samba
/Opt/samba/newconfig/etc/opt/samba
/Opt/samba/newconfig/etc/rc. config. d/samba
/Var/opt/samba
/Sbin/init. d/samba
It is not difficult to see:
Main Program Directory:/opt/samba
Configuration file directory:/etc/opt/samba
Directory of the Startup File/sbin/init. d/
2. Configure samba 
1. Configure the SMA. conf file
# Grep-V "^ #"/etc/opt/samba/smb. conf | grep-V "^ ;"
Filter the comment module of the configuration file. If you need to modify it based on your actual situation, I will highlight it in blue to facilitate modification.

[Global]
Workgroup = mygroup
Realm = <realm name, in caps, from/etc/krb5.conf on this machine>
NetBIOS name = <This machines NetBIOS Name>
Server String = Samba Server
Log File =/var/opt/samba/log. % m
Max log size = 1000
Security = user
Password Server = Server
Encrypt passwords = Yes
Socket Options = tcp_nodelay
Local Master = No
Hosts allow = hostname 10.200.30. 10.200.34. 10.200.38.
Socket Options = tcp_nodelay
Preserve case = Yes
Short preserve case = No
DOS filetime resolution = Yes
Read Only = No
Syslog = 0

[Homes]
Comment = Home Directories
Browseable = No

[TMP]
Comment = temporary file space
Path =/tmp
Read Only = No

[Websoft] You can add your own shared directory here.
Path =/opt/hpws/Apache/htdocs
Valid users = root
Public = No
Writable = Yes
Printable = No
Create mask = 0765

2. Add Samba users
#/Opt/samba/bin
#./Smbpasswd-a root
New smb password:
Retype new smb password:
Added user root.
3. permission settings for shared directories
# Chown-r root/opt/hpws/Apache/htdocs
# Chgrp-r root/opt/hpws/Apache/htdocs
# Ll-D/opt/hpws/Apache/htdocs
Drwxr-XR-x 2 root Root 8192 Jun 10 10:39/opt/hpws/Apache/htdocs
In the preceding settings, the owner of the/opt/hpws/Apache/htdocs directory is root. Non-root users cannot perform any operations on this directory.
Iii. Start the samba Service 
1. Samba configuration under/etc/rc. config. d/
Before starting samba, enter/etc/rc. config. d/to configure the startup level of Samba. The default value is 0, even if Samba is not started. Typically, the startup level of the HP-UX is 3 and you can view the startup level of the current system through "who-R", so configure Samba startup level to 3. If no configuration changes are made here, the samba service will not be able to survive. So pay special attention to it !!!
# Cd/etc/rc. config. d
# Vi samba
Configure run_samba = 3
2. Start samba
#/Sbin/init. d/samba start
Smbd & nmbd started successfully; process IDs: smbd: 6516, nmbd: 6510.
Iv. Windows host access to Samba Server 
In "run", enter the IP address of the // Samba server:


For more applications and configuration parameters, see Linux Samba file sharing service configuration manual.

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.