- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Samba on hp ux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2004 04:57 PM
тАО07-15-2004 04:57 PM
Samba on hp ux
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2004 06:09 PM
тАО07-15-2004 06:09 PM
Re: Samba on hp ux
See the link below:
Hope it helps.
http://www.ysn.ru/docs/samba/Samba-HOWTO-Collection.pdf
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2004 06:44 PM
тАО07-15-2004 06:44 PM
Re: Samba on hp ux
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2004 06:46 PM
тАО07-15-2004 06:46 PM
Re: Samba on hp ux
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2004 07:04 PM
тАО07-15-2004 07:04 PM
Re: Samba on hp ux
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2004 09:20 PM
тАО07-15-2004 09:20 PM
Re: Samba on hp ux
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2004 10:18 PM
тАО07-18-2004 10:18 PM
Re: Samba on hp ux
sorry I'm getting back late...
everything seems ok, please attach output from /var/opt/samba/log.%m after unsuccessful logging
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2004 05:17 AM
тАО07-19-2004 05:17 AM
Re: Samba on hp ux
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