Sun.betty
2006-Oct-31 02:30 UTC
[Samba] On Solaris8 install samba show error: libsendfile.so.1: open failed: No such file or directory
samba everyone:
How do you do!
I have a question about install samba on solaris8.I search internet a
lot.but don't find useful info. wish can get work it out there.Hope any
advices and tips.Thanks lot.
OS: solaris8
I have installed follow softeware:
gcc-3.3.2-sol8-sparc-local.gz
libiconv-1.9.2-sol8-sparc-local.gz
ncurses-5.4-sol8-sparc-local.gz
popt-1.7-sol8-sparc-local.gz
readline-5.1-sol8-sparc-local.gz
samba-3.0.10-sol8-sparc-local.gz
gettext-0.14.1.tar.gz
after configure . /usr/local/samba/bin/testparm
/usr/local/samba/lib/smb.conf
it show error:
# truss -f /usr/local/samba/bin/testparm -L elsbeth 2>&1 | more
24844: execve("/usr/local/samba/bin/testparm", 0xFFBEFBE4,
0xFFBEFBF4) argc = 3
24844: resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1",
1023) = 16
24844: open("/var/ld/ld.config", O_RDONLY) = 3
24844: fstat(3, 0xFFBEF468) = 0
24844: mmap(0x00000000, 160, PROT_READ, MAP_SHARED, 3, 0) = 0xFF3A0000
24844: close(3) = 0
24844: stat("/usr/lib/libthread.so.1", 0xFFBEF304) = 0
24844: open("/usr/lib/libthread.so.1", O_RDONLY) = 3
24844: fstat(3, 0xFFBEF304) = 0
24844: mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xFF390000
24844: mmap(0x00000000, 245760, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xFF350000
24844: mmap(0xFF37E000, 6644, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 3, 122880) = 0xFF37E000
24844: mmap(0xFF380000, 45704, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF380000
24844: munmap(0xFF36E000, 65536) = 0
24844: memcntl(0xFF350000, 31224, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
24844: close(3) = 0
24844: stat("/usr/lib/libsendfile.so.1", 0xFFBEF304) Err#2 ENOENT
24844: stat("/usr/local/lib/libsendfile.so.1", 0xFFBEF304) Err#2
ENOENT
24844: stat("/usr/local/BerkeleyDB.4.2/lib/libsendfile.so.1",
0xFFBEF304) Err#2 ENOENT
24844: stat("/usr/local/ssl/lib/libsendfile.so.1", 0xFFBEF304) Err#2
ENOENT
24844: stat("/usr/openwin/lib/libsendfile.so.1", 0xFFBEF304) Err#2
ENOENT
24844: stat("/usr/local/lib/libsendfile.so.1", 0xFFBEF304) Err#2
ENOENT
24844: stat("/lib/libsendfile.so.1", 0xFFBEF304) Err#2 ENOENT
24844: stat("/usr/lib/libsendfile.so.1", 0xFFBEF304) Err#2 ENOENT
24844: stat("/u5/pgsqldba/pgsql/lib/libsendfile.so.1", 0xFFBEF304)
Err#2 ENOENT
24844: stat("/u8/apache_bbs2/libexec//libsendfile.so.1", 0xFFBEF304)
Err#2 ENOENT
24844: mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF340000
ld.so.1: /usr/local/samba/bin/testparm: fatal: libsendfile.so.1: open failed: No
such file or directory
24844: write(2, " l d . s o . 1 : / u s".., 104) = 104
24844: munmap(0xFF390000, 8192) = 0
24844: lwp_self() = 1
24844: *** process killed ***
#
I seach internet , not found right method resolve it.Maybe you can give me
some advice and tips.Thanks very much.
Best regards.
---------------------
Betty
---------------------------------
ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡ From richard at net-solutions.net.nz Tue
Oct 31 02:52:51 2006
From: richard at net-solutions.net.nz (Richard Greaney)
Date: Tue Oct 31 03:24:29 2006
Subject: [Samba] Winbind mappings change over time
Message-ID: <4546BA83.7070303@net-solutions.net.nz>
Hi all
I have a peculiar problem that has been ongoing over the last few years.
I have a mail server which is running winbind and giving distributed
authentication from a Windows server. Winbind UID mapping is in the
typical 10000-20000 range. Everything works fine... for the first little
while at least anyway.
From what I can tell, when winbind is first set up it allocates UIDs
for all existing Windows users, in order of their SID on the Windows
server (eg, the lowest SID on the Windows server gets the UID of 10000,
the next gets 10001 and so on). Again, this works fine.
However, this is where things start to get messy. The problem I'm
getting is that over time, these Windows - Unix ID maps get muddled up.
I've deployed some 40 odd Linux servers, some talking to AD, some
talking to Windows NT, some using Postfix for mail, some using Exim. In
all cases, this problem comes up at one time or another. You notice it
because the mailboxes (/var/mail/username) start having different
owners. This effectively kills a particular person's mail. For example,
the user 'jsmith' should have 'jsmith' as the mailbox owner, but
they
might have 'jbloggs' as the owner. This is because the UID that was
assigned to jsmith has now been assigned to jbloggs. And yet there was
never any change to the jsmith or jbloggs account on the Windows server.
Has anybody else had this problem?
I'm using a range of samba builds up to 3.0.14a which, I realise is
rather old. However I'm loathed to upgrade when this is the only problem
I'm getting, if the problem isn't fixed in later versions.
I've tried a search in bugzilla but couldn't seem to come up with a
query that returned less than 200 bugs.
relevant part of smb.conf:
winbind separator = ~
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind cache time = 15
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%U
template shell = /bin/false
winbind use default domain = yes
Thanks in advance
Richard
