`
Samba is a suite of programs which work together to allow clients to access to a server's filespace and printers via the SMB (Server Message Block) protocol. Initially written for Unix, Samba now also runs on Netware, OS/2 and VMS.
docs/textdocs/UNIX_INSTALL.txt
./configure --prefix=/usr/local/samba --with-lockdir=/var/log/samba --with-privatedir=/var/log/samba/private
/usr/local/samba
, which is not writable by the Unix
clients, I set /var/log/samba so that the log files for each
Unix machine go into /var/log/samba
.
make
as myself, then, as root on the server,
make install
inetd
to start up the samba daemons, though it is possible to use examples/svr4-startup/samba.server
to start samba on each machine at boot time.
/etc/services
# Samba PC connectivity services netbios-ssn 139/tcp netbios-ns 137/udp
(cd /var/yp; make)
/etc/inetd.conf
via nfs, so
I edited the copy on the server and added:
# # samba # netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd netbios-ns dgram udp wait root /usr/local/samba/bin/nmbd nmbd
mkdir /var/log/samba kill -1 `ps -auxgww | grep inetd | grep -v grep | awk '{print $2}'`
security_level.txt
for more information).
Local users can look over the
smb.conf
file we are using.
mkdir /var/log/samba mkdir /var/log/samba/private cd /etc/init.d ln -s /usr/cluster/etc/init.d/samba.server . cd /etc/rc3.d ln -s ../init.d/samba.server S20samba.server cd /etc/rc2.d ln -s ../init.d/samba.server K61samba.server mkdir /var/log/samba/private chown root /var/log/samba/private chmod 700 /var/log/samba/private
sources/Makefile
. Unfortunately, if start smbd
and nmbd
on host hostA
, and then on
hostB
, do
/usr/local/samba/bin/smbclient '\\hostA\homes'my kerberos passwd is passed in cleartext between
hostB
and hostA
[1999/08/03 17:29:32, 0] lib/util_sock.c:read_socket_data(507) read_socket_data: recv failure for 4. Error = Invalid argumentThe fix was to edit lib/util_sock.c and change recv to read
Below is a sample run of smbclient /usr/local/samba/bin/smbclient //gigavault/wwwroot -U cxh -d 100