1826451 Members
4430 Online
109692 Solutions
New Discussion

samba error

 
SOLVED
Go to solution
xiandao
Occasional Advisor

samba error

I install samba-2.0.7 in hpux 11.00
when I run $make install
follow msg print :
-----------------------------------------------
Creating codepage file /usr/local/samba_test/lib/codepages/codepage.437
Creating unicode map /usr/local/samba_test/lib/codepages/unicode_map.437 sh: Execute permission denied.
......
-----------------------------------------------

When install completed,
I run $/usr/local/samba/bin/testparm
(smb.conf has bean created before)
then
$sh: testparm: Execute permission denied.

I'v chmod -R +x /usr/local/samba

but why still Execute permission denied.
Pls hlp!
4 REPLIES 4
Zeev Schultz
Honored Contributor
Solution

Re: samba error

1)what ll shows on /usr/local/samba and
/usr/local/samba/bin/testparm ?

Here is from my samba server:

-rwxr-xr-x 1 root sys 479232 Apr 12 2002 testparm

May be smb.conf doesn't allow you checking (with testparm) - try another copy of testparm

2)why not to install hp prepared samba depots
from www.software.hp.com?

rgds

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Robert Binkhorst
Trusted Contributor

Re: samba error

Hi,

I've seen this happen when you try to run software that was compiled for a different architecture (64-bit verses 32-bit).

The version of samba that you're trying to install has a couple of security vulnerabilities that have been addressed in later versions. I also strongly recommend that you upgrade, my preference is HP's package, they also provide a version for 11.00. You can find it here:
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

linux: the choice of a GNU generation
xiandao
Occasional Advisor

Re: samba error

Zeev Schultz
You're right, Because of smb.conf

but the next porblem comes:
---------------------------------------------
$ ./smbclient -U% -L localhost
doing parameter dead time = 5
doing parameter max log size = 200
doing parameter interfaces = 10.3.6.130/255.255.255.0
pm_process() returned Yes
added interface ip=10.3.6.130 bcast=10.3.6.255 nmask=255.255.255.0
Client started (version 2.0.10-ja-1.2).
resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
getlmhostsent: lmhost entry: 10.3.6.144 SEJMM1
resolve_hosts: Attempting host lookup for name localhost<0x20>
Connecting to 127.0.0.1 at port 139
session request to LOCALHOST failed (code 0)
resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
getlmhostsent: lmhost entry: 10.3.6.144 SEJ
resolve_hosts: Attempting host lookup for name localhost<0x20>
Connecting to 127.0.0.1 at port 139
session request to *SMBSERVER failed (code 0)
---------------------------------------------

My hosts:
10.3.6.144 SEJ
127.0.0.1 localhost
My lmhosts
10.3.6.144 SEJ
My smb.conf
workgroup = 10.3.6.235
netbios name = SEJ
server string = Samba version 2.0.10-ja-1.2
......

Pls help!
Zeev Schultz
Honored Contributor

Re: samba error

most probably since LOCALHOST is not a valid NetBIOS (wins) name? you can try with
"-n" flag for smbclient (give a valid NetBios name / check with 'nmblookup'.
So computers don't think yet. At least not chess computers. - Seymour Cray