Operating System - HP-UX
1833758 Members
3209 Online
110063 Solutions
New Discussion

Need to test CIFS in a test environment

 
SM_3
Super Advisor

Need to test CIFS in a test environment

I'm trying to set-up a HP-UX CIFS server so that a windows client can view a file system.

I've installed the server software on the hp-ux machine and ran samba_setup. I used the samba web gui to try to configure the file share... but I'm having problems

I did create the user accounts and used smbpasswd...
but from the windows side i'm getting incorrect username or password

thanks for any help
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: Need to test CIFS in a test environment

You need to decide on an authentication scheme - do you want to authenticate with your Windows Domain?

Please post your smb.conf

If yes to above, then you need something like:

# Samba config file created using SWAT
# from gwild.pcacorp.net (156.44.163.69)
# Date: 2003/07/10 14:06:39

# Global parameters
[global]
workgroup = MYDOMAIN
netbios name = server1
netbios aliases = HPSERVER
security = SERVER
encrypt passwords = Yes
password server = BDC1, BDC2, BDC3
log level = 1
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 10000
keepalive = 0
load printers = No
show add printer wizard = No
preferred master = False
domain master = False
valid users = user1, user2, user3
read only = No
create mask = 0664
force create mode = 0664
directory mask = 0775
short preserve case = No
dos filetime resolution = Yes

[APPL]
comment = APPL
path = /export/APPL



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.
SM_3
Super Advisor

Re: Need to test CIFS in a test environment

In this case authentication using the easiest method.

John Dvorchak
Honored Contributor

Re: Need to test CIFS in a test environment

When dealing with CIFS (Samba) and from the client you get "incorrect username or password" there are a couple of places to look. First of all make sure that the username and password are in fact correct and the correct case. Remember they are both case sensitive.

Then look at the /opt/samba/lib/smb.conf for the encrypt passwords line:

# Global parameters
[global]
workgroup = D07200RC
netbios name = CHOP
encrypt passwords = Yes
preferred master = False
local master = No
domain master = False
wins server = 132.201.87.6

By default a Windows client will send the userid/password combo encrypted. Your windows machine may have it set to EnablPlainTextPassword in the registry at this key:

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]

"EnablePlainTextPassword"=dword:00000001

If the smb.conf file is looking for encryption and you have this registry key dword at 1 they won't communicate with each other. Also be sure not to include a "Domain Name" in any authenticaton on MS as that prepends the domain name to your username i.e.

domain_name\Your_name

And the UNIX system only knows you as "Your_name" not domain_name\Your_name.

Hope this helps a little.

I would suggest using SWAT to configure your shares etc. if you are not used to working with CIFS or Samba.

Good luck.

If it has wheels or a skirt, you can't afford it.
Steven E. Protter
Exalted Contributor

Re: Need to test CIFS in a test environment

Posting a working smb.conf file that works without Windows PDC authentication. We're thinking of moving to the authentication model in the first post, but just in case you haven't this one works.

CIFS, latest release.

see attachment.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com