1833588 Members
4295 Online
110061 Solutions
New Discussion

Using Samba

 
mogiro
Regular Advisor

Using Samba

Hi,
I have the most common issue with SAMBA. I want to share a UNIX folder in a hpux 11.11 server with a Windows machine. I have installed samba, but I can't still see the directory from Windows. What I did is:
1. at the server:
/etc/exports:
setlet1:/etc/opt/samba # more /etc/exports
/iod
/tmp
2. smb.conf file:
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
workgroup = SEE

# server string is the equivalent of the NT Description field
server string = Samba Server

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/opt/samba/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 1000

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = domain
# Use password server option only with security = server or domain
password server = *

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = yes

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
local master = no

read only = no
preserve case = yes
short preserve case = no
dos filetime resolution = yes
syslog = 0

#============================ Share Definitions ==============================
[iod]
path = /iod
read only = No

[homes]
comment = Home Directories
browseable = no

# This one is useful for people to share files
[tmp]
path = /tmp


I have created a user named ioduser at the UNIX system and then i used smbpasswd to create a samba password for him (the same as the system password).
Now, from the Windows machine, I try to connect the directory like a network unit using the UNIX user. On the path i put \\servername\iod, and Windows says is unable to find the network path.
What I'm missing?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Using Samba

Shalom,

You are using a fairly simple peer to peer setup.

If you are willing to have windows users give a user id and password on entry, you should set up user id's matching the windows users ids in Linux.

There are integration options as well, depending on whether you want to build a domain controller in Linux/HPUX or use a windows controller.

If you let Windows ADS control the domain security, these issue are fairly simple to deal with.

http://docs.hp.com/en/305/uxint.html

http://docs.hp.com/en/J4269-90017/ch02s05.html


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
Dino_4
Frequent Advisor

Re: Using Samba


First question is:

Are the deamons running?
# ps -ef | grep mbd

Is the HP-depot installed?
If yes, please post the output of this command:
# cat /etc/rc.config.d/samba

Are you sure, you want this switch
security = domain
set as it is?
security = server would be my advice.

And btw, /etc/exports has nothing to do with samba.
No need to export anything. Samba handles this internally.

mogiro
Regular Advisor

Re: Using Samba

Hi guys,
Finally I configured it using a Fedora machine. I've mounted the exported UNIX fs on the fedora system and then used the Linux Samba to share it with Windows machines.
It seems that the problem is that my network is in a Novell environment and it uses LDAP to authenticat users, or something like that has told me the Wintel Admin...
Whatever, thanks to all for the help.
mogiro
Regular Advisor

Re: Using Samba

.