Hi,
Here is the step by step to configure samba
May this help you,
TO check the CIFS Software is installed or not.
#swlist -l product| grep -i cifs
Edit the file and make the value 1 to stsrt the smb services at every boot.
#vi /etc/rc.config.d/samba
RUN_SAMBA=1
Configure /etc/opt/samba/smb.conf
#vi /etc/opt/samba/smb.conf {Make the changes as per your requirment}
...
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
workgroup = UKDOM1
# server string is the equivalent of the NT Description field
server string = CIFS9000 Samba Server
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/opt/samba/log.%m
log level = 1
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
#=========================== Share Definitions =========================
[homes]
comment = Home Directories
browseable = no
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /tmp
read only = no
[ora1]
comment = Shared Database Directory
path = /ora1
writable = yes
browseable = yes
Verify your smb.conf configuration with the testparm utility
#/opt/samba/bin/testparm
Load smb config files from /etc/opt/samba/smb.conf
Processing section "[homes]"
Processing section "[tmp]"
Processing section "[ora1]"
Loaded services file OK.
Processing comments in /etc/opt/samba/smb.conf
The SMB/CIFS password file does not exist by default. We need to create it and ensure that the permissions are correct. Again
#ll /var/opt/samba/private
#touch /var/opt/samba/private/smbpasswd
#chmod 500 /var/opt/samba/private
#chmod 600 /var/opt/samba/private/smbpasswd
#ll /var/opt/samba/private
#/opt/samba/bin/smbpasswd -a
Start the CIFS daemon
#/sbin/init.d/samba start
Verify the configuration with the smbclient utility
#/opt/samba/bin/smbclient -L localhost -U%
Suraj
Thanks for the reply
I already go through Charlees Keenans HP-UX Bible.
Hi Anoop,
1. Depends on how you want to map users: usermap file, winbind, Unified Login. Look at this whitepaper:
http://docs.hp.com/en/16322/CIFSUnifiedLoginV2.pdf
2. Don't understand the question, but you can use [homes] as the default for /home. But for /share/test you need a specific share defined.
3. No - not for authentication. But for ACL management you need to run syncsmbpasswd (see appendix C in the whitepaper above).
4. Mount the share from a Windows client. /share/test needs to have the correct local (HP-UX) permissions for user authorization.
Eric Roseme