1832986 Members
2514 Online
110048 Solutions
New Discussion

Re: samba

 
Emilio Brusa
Frequent Advisor

samba

Hello,
I have samba running in my hpux.
I have configured a directory one in the hpux so that they see it the clients windows, this configured with guest access, so all the users can acces to that directorio(500 users).

here the history goes well.
But...
For another application also in the same team machine need to share another directory, but now with validation of user/password from 6 machines windows (from necessity of security and application).
It was trying to configure the security shared in the samba.
But when trying to enter to the "shared directory" (I can see from windows) requests me user and password but not you which to give him.
That I can make to configure it?
P.S. doesn't want join the HPUX to a domain Wintel.

Thank you
E.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: samba

Interesting problem. Take a look at the smb%%.log(there are a few chars in there%%) file(defined in smb.conf).

An error code would be useful.

Shot in the dark: Consider LDAP for simplifying the user authentication. No need to use a PDC domain then. a workgroup setting in smb.conf would be helpful.

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
Brian Butscher
Frequent Advisor

Re: samba

Try defining the users for each specific directory as shown in the 'smb.conf' file below. Also create a 'users.map' file which maps the unix-id to the user's Window user-id (see example).

'smb.conf' file

# Global parameters
[global]

client code page = 437
workgroup = TeamA
security = SERVER
encrypt passwords = Yes
password server = XX.XX.XX.XX (DNS server IP)
username map = /usr/local/samba/lib/users.map
log file = /usr/local/samba/logs/log.%m
max log size = 50
preferred master = false
local master = No
domain master = No
wins server = XX.XX.XX.XX (IP address)
socket options = TCP_NODELAY
interface = HPUX_server_name
os level = 0

[directory1]
path = /opt/directory1
read only = No
admin users = admin1, admin2 (these are unix-id's)
write list = user1, user2, user3, etc (these are unix-id's)
create mask = 0755
guest ok = Yes

[directory2]

path = /opt/directory2
read only = No
admin users = admin1, admin2 (these are unix-id's)
write list = user4, user5, user6, etc (these are unix-id's)
create mask = 0755
guest ok = Yes
[homes]
comment = Home Directories
read only = No
create mask = 0755
mangle case = Yes
browseable = No

'users.map' - put this file into the samba/lib directory

(unix-id=window-user-id) format

user1=windows-user-id1
user2=windows-user-id2
user3-windows-user-id3

Regards,

Brian