HP-UX 11.31 Samba Share Steps

Configuration of SAMBA Share on HP-UX is a simple task. Follow few steps and enjoy sharing between HP-UX and windows. 
  1. Create OS level user on server
  2. Add those users to samba database
  3. Set parameter in smb.conf file
  4. Restart SAMBA Service and Check status of SAMBA share
  5. Start Sharing 
1.         Create OS level user on server 
Create OS level user, directory and change owner of shared directory to SAMBA user
# useradd ashish
# grep ashish /etc/passwd
ashish:x:111:20::/home/ashish:/sbin/sh 
# mkdir /home/ashish
# chown ashish:users /home/ashish
# ls -lte /home/ashish
drwxr-x—   2 ashish     users           96 Oct 25 11:12 ashish

2.         Add those users to samba database
# /opt/samba/bin/smbpasswd -a ashish
New SMB password:
Retype new SMB password:
Added user ashish.

3.         Set parameter in smb.conf file
 Set Security parameter in smb.conf  
[global]
security=User

Add share directory parameter in the last of file /etc/opt/samba/smb.conf

[ashish_share]
comment = Public Share
path = /home/ashish
public = yes
only guest = yes
writable = yes
printable = no
4.         Restart SAMBA Service and Check status of SAMBA share

# /sbin/init.d/samba start
# /opt/samba/bin/testpa
Load smb config files from /etc/opt/samba/smb.conf
Processing section “[homes]“
Processing section “[tmp]“
Processing section “[ashish_share]“
Loaded services file OK.
Processing comments in /etc/opt/samba/smb.conf
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = MYGROUP
        syslog = 0
        log file = /var/opt/samba/log.%m
        max log size = 1000
        local master = No
        panic action = /var/opt/samba/panic-action %d
        read only = No
        dos filetime resolution = Yes

[homes]
        comment = Home Directories
        path = /home/%U
        read only = Yes
        create mask = 0700
        directory mask = 0700
        browseable = No

[tmp]
        comment = Temporary file space
        path = /tmp
[ashish_share]
comment = Public Share
path = /home/ashish
public = yes
only guest = yes
writable = yes
browseable = yes
# /opt/samba/bin/smbstatus 
Samba version 3.4.3 based HP CIFS Server A.03.01.05
PID     Username      Group         Machine
——————————————————————- 
Service      pid     machine       Connected at
——————————————————- 
/var/opt/samba/locks/locking.tdb not initialised
This is normal if an SMB client has never connected to your server.
5.         Start Sharing
SHARE

sangeethakumar

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

6 comments:

  1. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. 1 gallon to fl oz

    ReplyDelete
  2. Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good. magnitudinal synonym

    ReplyDelete
  3. I curious more interest in some of them hope you will give more information on this topics in your next articles. half gallon to cups

    ReplyDelete
  4. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job ! phone area code 855 location

    ReplyDelete
  5. Thanks for the informative and helpful post, obviously in your blog everything is good.. cups half gallon

    ReplyDelete
  6. I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. proper order for jumper cables

    ReplyDelete