1823182 Members
3587 Online
109647 Solutions
New Discussion юеВ

Re: Samba on hp ux

 

Samba on hp ux

Hi,

I need to configure samba on hp ux with foll requirements.

- share to have read access to everyone and write access to few specific users
- How can i map windows users to unix users. I won't be able to sync b/w windows PDC and unix users.
- Can any of you give me sample smb.conf which has a share defined and how you create smbusers, smbpasswd etc.

Regards,
Kusuma
7 REPLIES 7
Bharat Katkar
Honored Contributor

Re: Samba on hp ux

Kusuma,
See the link below:
Hope it helps.

http://www.ysn.ru/docs/samba/Samba-HOWTO-Collection.pdf

Regards,
You need to know a lot to actually know how little you know
R. Sri Ram Kishore_1
Respected Contributor

Re: Samba on hp ux

Hi Kusuma,

Check out these threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=406013

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=187527

HTH.
Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Jan Sladky
Trusted Contributor

Re: Samba on hp ux

hi Kusuma,
following setting is for Linux env, I haven't tried it on HP-UX yet, so keep on mind that there can be differencies for smb.conf name and path and smbpasswd command.


1. /etc/samba/smb.conf, share definition part:

[share]
comment = your comment
path = /share
browseable = yes
printable = no
public = no
writable = yes
write list = user_x
force group = www

2. create user user_x via useradd user_x
edit /etc/passwd and set home for user_x on /share

3.smb.conf, Global Settings part:
# Unixuserscanmap to different SMB User names

username map = /etc/samba/users.map


4.in /etc/samba/users.map

user_x = win_user1 win_user2 win_user3

5.smb user will be added by

smbpasswd -a user_x

6. chown user_x:users /share
chmod 744 /share

template for smb.conf should be on your box, add only entry above into appropriate section



hope this will help you

Jan
GSM, Intelligent Networks, UNIX

Re: Samba on hp ux

Hi Jan,

I tried as you said. Now my smb.conf looks like this:
-----------------------------------------
# Global parameters
[global]
workgroup = NEWTON
netbios name = saturn
server string = Samba on saturn
security = share
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
local master = No
domain master = False
guest account = guest
read only = No
hosts allow = x.x.x.
short preserve case = No
guest account = guest
username map = /etc/opt/samba/user.map
os level = 20

[mton]
path = /mton/app
create mode = 777
comment = Common Share
browseable = yes
public = no
writable = yes
write list = mapp
force group = prod
------------------------------
smbpasswd -a mapp

user.map contains
mapp = kusuma
------------------------------

Now when I try from windows with my login(kusuma), it says \\saturn\mton is not accessible. The specified network password is incorrect.

Can you pl. guide me where i went wrong.

Regards,
Kusuma
Darren Prior
Honored Contributor

Re: Samba on hp ux

Hi,

I'm not sure if you're using Samba or HP's CIFS/9000 server product. If you're not aware of CIFS, it's a free download from http://software.hp.com and is based on the open source Samba.

You will also find it useful to read the O'Reilly "Using Samba" book - this is available with CIFS, or as a traditional book.

regards,

Darren.
Calm down. It's only ones and zeros...
Jan Sladky
Trusted Contributor

Re: Samba on hp ux

hi Kusuma,

sorry I'm getting back late...

everything seems ok, please attach output from /var/opt/samba/log.%m after unsuccessful logging

Jan
GSM, Intelligent Networks, UNIX
Brian Butscher
Frequent Advisor

Re: Samba on hp ux

Kusuma,

Here is a copy of the smb.conf and the user.map file we use. The user.map file allows for Window user_id's to map to unix_id's.
casper:/usr/local/samba/lib#pg smb.conf
# Samba config file created using SWAT
# Date: 2003/05/29 16:50:02

# Global parameters
[global]

client code page = 437
workgroup = AFC
security = SERVER
encrypt passwords = Yes
password server = 10.5.1.53
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 = 10.5.1.120
socket options = TCP_NODELAY
interface = casper
os level = 0

[application_name]
path = /opt/application_name
read only = No
admin users = adminuser1, adminuser2
write list = user1, user2, user3
create mask = 0755
guest ok = Yes

[homes]
comment = Home Directories
read only = No
create mask = 0755
mangle case = Yes
browseable = No

Note: Replace adminuser1 and adminuser2 with the name of the user(s) who have admin priveledges. Also replace user1, user2, etc with real user id's.

user.map file

unix_id=window_id

Both smb.conf and user.map file are located in the .../samba/lib directory.

Try it and let me know.

Thanks,

Brian