Operating System - HP-UX
1832645 Members
2797 Online
110043 Solutions
New Discussion

Samba Configuration on HP-UX 11i

 
varian_1
Advisor

Samba Configuration on HP-UX 11i

Hi,

I have windows NT 4 domain with user ids on it, I want to configured the samba on HP-UX 11i server so all users log on to winnt domain can able to access the shared directories on HP-UX server.
Please suggest what will be my smb.conf files setting.

Thanks in Advance.
Regards
Walter
4 REPLIES 4
SureshKumar_2
Valued Contributor

Re: Samba Configuration on HP-UX 11i

Hi Walter,

The Samba shares are entrily different from the NFS shares.

Samba share you have to create separately.. by using smb.conf file.

(Before that make a copy of origial file)
find herewith sample configuration: smb.conf
# Global parameters
workgroup =
netbios name =
security = Share
hosts allow = All
[root]
path = /
comment = HPUX root
guest ok = Yes
read only = Yes

[share]
path = /share
comment = Common share
guest ok = Yes
read only = No

In above configuration / is ro for all, and /share is rw for all.

Make customization as per your requirement
http://docs.hp.com/en/T2341-90001/ch01s01.html
http://samba.oss.eznetsols.org/samba/docs/man/Samba-HOWTO-Collection/And also have a look in below url.

if any queries let me know.
suresh
Things are very easy, when u know about it...
Steve Lewis
Honored Contributor

Re: Samba Configuration on HP-UX 11i

Setting security = domain will cause Samba to authenticate people to the MS windows PDC/BDC.

smb.conf:
[global]
workgroup = MY_WINDOWS_WORKGROUP
netbios name = UNIX_HOSTNAME
server string = Unix fileserver
security = DOMAIN
encrypt passwords = Yes
password server = WINDOWS_PDC_BDC
remote announce = broadcast_address
dos filetime resolution = Yes

[homes]
comment = home directories

[docs]
path = /docs


Then go onto your PDC and add a MS 'trust' relationship for your UNIX server.
Your users will then be able to map drives from \\UNIX_HOSTNAME\homes or \\UNIX_HOSTNAME\docs and use them just like a Windows network drive.

Then edit /etc/rc.config.d/samba at set
RUN_SAMBA=1

Add a swat line to your /etc/inetd.conf file, see the samba manual about that. inetd -c to make it re-read the file.

Then you will be able to configure your shares on-line through a browser on the swat port, 901, plus start/stop the service daemons.


Geoff Wild
Honored Contributor

Re: Samba Configuration on HP-UX 11i

Install HP's samba (CIFS):

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

Use SECURITY=DOMAIN

You will need an admin in the NT domain to enter the admin password to add your HP-UX box to the domain like so:

smbpasswd -j \YOURNTDOMAIN -r YOURNTDC -Uadministrator

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Donald Fisher
Advisor

Re: Samba Configuration on HP-UX 11i

We try not to open up directories to everyone. So we create groups on the ADS server that match the purpose of the SAMBA share. Then we tell the user how to map a drive (\\bays0153\acunainc)the shares are not published under the SAMBA server.

# Global parameters
[global]
workgroup = BAY
netbios name = BAYS0153
server string = Samba 2.2.8a bays0153
security = DOMAIN
encrypt passwords = Yes
password server = bays0012
show add printer wizard = No
os level = 0
preferred master = No
local master = No
domain master = No
winbind uid = 20000-21999
winbind gid = 20000-21999
winbind separator = @
winbind use default domain = Yes
guest account = smbnull
dos filetime resolution = Yes

[acunainc]
path = /usr2/intranet/acuna/includes
valid users = @acunainc
write list = @acunainc
force user = acunaadm
force group = acunainc
create mask = 0774
force create mode = 0774
directory mask = 0775
force directory mode = 0775
case sensitive = Yes
browseable = No