AW: AW: AW: AW: Re: AW: [Samba] samba installatio

A.A 1alp at gmx.de
Mon Jun 2 22:20:51 GMT 2003


hi kenn ,
now i installed samba again like you wrote. I have know the same
configuration on your machine:)
I see that the new installation has no smbd/nmbd Daemons(see Error).



****************************************************************************
******
ps fax  ---> ID for smbd and nmbd
balalayka:kill -9 1234
balalayka:kill -9 1235
balalayka:/usr/local/src/samba-2.2.8a # rcsmb
Samba daemon, /usr/local/src/samba-2.2.8a/source/classic/smbd is not
skippeded.
balalayka:/usr/local/src/samba-2.2.8a # whereis smbd
smbd: /usr/sbin/smbd /usr/share/man/man8/smbd.8.gz
balalayka:/usr/local/src/samba-2.2.8a # which smbd
/usr/sbin/smbd
balalayka:/usr/local/src/samba-2.2.8a #
**************************************************
/usr/sbin/smbd this is the old smbd(and  nmd too)
what i did wrong? this is the same configuration like you have it?

:(

Thanks

henry











-----Ursprüngliche Nachricht-----
Von: kenneth westelinck [mailto:kenneth.westelinck at pandora.be]
Gesendet: Montag, 2. Juni 2003 18:50
An: A.A
Cc: samba at lists.samba.org
Betreff: Re: AW: AW: AW: Re: AW: [Samba] samba installatio


This is how I configured samba:

./configure  --sysconfdir=/etc/samba --localstatedir=/var/log/samba --mandir
=/usr/local/man --with-lockdir=/var/run --with-configdir=/etc/samba --with-s
mbmount

Depending on your situation, you might want to add some features. Full help
is available typing ./configure --help

I have directory called /usr/local/src. I always unpack sources in this
directory, which is a good habit I think.

Using the above config results in the following:
- all samba stuff is in /usr/local/samba
- configuration is in /etc/samba
- logs are in /var/log/samba

Startup/stop script will be (Debian):
---------8<-------------8<------------8<---------------
#! /bin/sh
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
SMBDAEMON=/usr/local/samba/bin/smbd
NMBDAEMON=/usr/local/samba/bin/nmbd
SMBNAME=smbd
SMBOPT="-D"
NMBNAME=nmbd
NMBOPT="-D"
NAME=samba
DESC="samba service"

test -f $SMBDAEMON || exit 0
test -f $NMBDAEMON || exit 0

set -e

case "$1" in
  start)
        echo -n "Starting $DESC:"

        if start-stop-daemon --start --quiet \
                --pidfile /var/log/samba/locks/$SMBNAME.pid \
                --exec $SMBDAEMON -- $SMBOPT
        then echo -n " $SMBNAME"
        else echo -n " $SMBNAME (already running)"
        fi

        if start-stop-daemon --start --quiet \
                --pidfile /var/log/samba/locks/$NMBNAME.pid \
                --exec $NMBDAEMON -- $NMBOPT
        then echo -n " $NMBNAME"
        else echo -n " $NMBNAME (already running)"
        fi

        echo "."
        ;;
  stop)
        echo -n "Stopping $DESC:"

        if start-stop-daemon --stop --quiet \
                --pidfile /var/log/samba/locks/$SMBNAME.pid \
                --exec $SMBDAEMON
        then echo -n " $SMBNAME"
        else echo -n " $SMBNAME (already stopped)"
        fi

        if start-stop-daemon --stop --quiet \
                --pidfile /var/log/samba/locks/$NMBNAME.pid \
                --exec $NMBDAEMON
        then echo -n " $NMBNAME"
        else echo -n " $NMBNAME (already stopped)"
        fi

        echo "."
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop}" >&2
        exit 1
        ;;
esac

exit 0
---------8<-------------8<------------8<---------------

Or edit the startup script you currently have to point to the new location
for smbd and nmbd.

----- Original Message -----
From: "A.A" <1alp at gmx.de>
To: <kenneth.westelinck at pandora.be>
Cc: <samba at lists.samba.org>
Sent: Monday, June 02, 2003 4:39 PM
Subject: AW: AW: AW: AW: Re: AW: [Samba] samba installatio



hi ke,
****************************************************
Since you've compiled with default options, your smb.conf is located in
/usr/local/lib/smb.conf . You should copy your working smb.conf for version
2.2.7 (/etc/samba/smb.conf) to /usr/local/lib.

You should run ./testparm as well.

***********************************
That's just what i did and the Result is the same!
Is there a way for a better (new) compiling?
My idee is to compile and install in old samba dirctory and overwrite in
this Directory old scripts and files(/etc/samba)??
In any case i will do a better compiling option.
Or maybe i should delete all old files in old Samba (smaba-2.2.7a) and than
try to compile and install in this directory??

??

henry



-----Ursprüngliche Nachricht-----
Von: kenneth.westelinck at pandora.be
[mailto:kenneth.westelinck at pandora.be]
Gesendet: Montag, 2. Juni 2003 16:17
An: A.A; kenneth.westelinck at pandora.be
Cc: samba at lists.samba.org
Betreff: Re: AW: AW: AW: Re: AW: [Samba] samba installatio


Since you've compiled with default options, your smb.conf is located in
/usr/local/lib/smb.conf . You should copy your working smb.conf for version
2.2.7 (/etc/samba/smb.conf) to /usr/local/lib.

You should run ./testparm as well.

------------------------
 "A.A" <1alp at gmx.de> wrote:
------------------------
there is some new Error:connections.tdb not initialized.
>
>
>
>balalayka:/usr/local/samba/bin # ./smbstatus
>params.c:OpenConfFile() - Unable to open configuration file
>"/usr/local/samba/lib/smb.conf":
>        No such file or directory
>Can't load /usr/local/samba/lib/smb.conf - run testparm to debug it
>*************************************
>I do copy the old smb.conf to /usr/local/samba/lib/
>after that use ./smbstatus
>*******************************************
>
>balalayka:/usr/local/samba/bin # ./smbstatus
>/usr/local/samba/var/locks/connections.tdb not initialized.
>This is normal if an SMB client has never connected to your server.
>
>*****************************************************
>and testparm get the smb.conf from old samba directory in /etc/samba !!!!
>!
>***************************************************
>
>balalayka:/usr/local/samba/bin # testparm
>Load smb config files from /etc/samba/smb.conf
>Processing section "[homes]"
>Processing section "[netlogon]"
>Processing section "[Profiles]"
>Processing section "[printers]"
>Processing section "[amshared]"
>
>
>??
>henry
>
>
>
>
>
>
>
>
>
>
>
>-----Ursprüngliche Nachricht-----
>Von: kenneth.westelinck at pandora.be
>[mailto:kenneth.westelinck at pandora.be]
>Gesendet: Montag, 2. Juni 2003 14:51
>An: A.A; kenneth.westelinck at pandora.be
>Cc: samba at lists.samba.org
>Betreff: Re: AW: AW: Re: AW: [Samba] samba installation
>
>
>You need to do ./smbstatus as well.
>
>------------------------
> "A.A"  wrote:
>------------------------
>hi,
>>
>>in the meantime  i uninstalled and reinstalled samba again.
>>it' s strage because i get two directories , Samba and samba-2.2..8a   !
>!
>>Newertheless i did as you wrote but there is still the old Samba ther!
>>i Killed both  Daemons and do :
>>
>>balalayka:/etc/samba # ps fax | grep nmbd
>>balalayka:/etc/samba # ps fax | grep nmbd
>>balalayka:/etc/samba # cd /usr/local/samba/bin/
>>
>>balalayka:/usr/local/samba/bin # ./smbd -D
>>balalayka:/usr/local/samba/bin # ./nmbd -D
>>balalayka:/usr/local/samba/bin # ps
>>  PID TTY          TIME CMD
>> 1393 pts/1    00:00:00 bash
>> 1614 pts/1    00:00:00 ps
>>balalayka:/usr/local/samba/bin # smbstatus
>>
>>Samba version 2.2.7a-SuSE
>>Service      uid      gid      pid     machine
>>----------------------------------------------
>>
>>No locked files
>>
>>It inetd.conf i found no entry for samba.
>>
>>
>>??
>>
>>Thanks
>>henry
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>-----Ursprüngliche Nachricht-----
>>Von: kenneth.westelinck at pandora.be
>>[mailto:kenneth.westelinck at pandora.be]
>>Gesendet: Montag, 2. Juni 2003 11:18
>>An: A.A; samba at lists.samba.org
>>Cc: kenneth.westelinck at pandora.be
>>Betreff: Re: AW: Re: AW: [Samba] samba installation
>>
>>
>>you'll need to type './smbd -D' instead of 'smbd -D' if you're in the
>>/usr/local/samba directory (same for nmbd -D and smbstatus).
>>
>>BTW, you need to type 'ps fax | grep smbd' and then 'kill -9
>>',
>>where  is listed in the 'ps fax | grep smbd' command. Same fo
>>r
>>nmbd.
>>
>>Also, make sure the smbd and nmbd daemons are not started through the in
>e
>>td.
>>Put the lines in comment in /etc/inetd.conf .
>>
>>------------------------
>> "A.A"  wrote:
>>------------------------
>>hi,
>>>
>>>there is the output of the command samba stop
>>>and some more outputs.
>>>Maybe you see now more what do i wrong :(!
>>>
>>>balalayka:/usr/local # ls
>>>..   bin    include  man    samba-2.2.8a         sbin   src
>>>...  games  lib      samba  samba-2.2.8a.tar.gz  share
>>>
>>>
>>>
>>>balalayka:/ # /etc/init.d/samba stop
>>>bash: /etc/init.d/samba: No such file or directory
>>>
>>>balalayka:/ # whereis samba
>>>samba: /etc/samba /usr/lib/samba /usr/include/samba /usr/local/samba
>>>/usr/share/samba /usr/share/man/man7/samba.7.gz
>>>
>>>balalayka:/ # rcsmb stop
>>>Shutting down Samba classic SMB daemon  Warning: daemon not running. do
>n
>>e
>>>
>>>balalayka:/etc/samba # * ps fax | grep smbd kill all listed processes
>>>bash: #smb.conf#: command not found
>>>grep: kill: No such file or directory
>>>grep: all: No such file or directory
>>>grep: listed: No such file or directory
>>>grep: processes: No such file or directory
>>>
>>>
>>>balalayka:/usr/local/samba/bin # smbd -D
>>>balalayka:/usr/local/samba/bin # nmbd -D
>>>balalayka:/usr/local/samba/bin # smbstatus
>>>
>>>Samba version 2.2.7a-SuSE
>>>Service      uid      gid      pid     machine
>>>----------------------------------------------
>>>
>>>No locked files
>>>
>>>
>>>??
>>>Thanks
>>>henry
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>-----Ursprüngliche Nachricht-----
>>>Von: kenneth.westelinck at pandora.be
>>>[mailto:kenneth.westelinck at pandora.be]
>>>Gesendet: Montag, 2. Juni 2003 08:19
>>>An: A.A; samba at lists.samba.org
>>>Betreff: Re: Re: AW: [Samba] samba installation
>>>
>>>
>>>If you compile samba like this, then the full samba install is undernea
>t
>>h
>>>/usr/local/samba, not /usr/local/samba-2.2.8a. The latter is the source
>>>tree. So you should try this:
>>>- kill the current samba daemons: /etc/init.d/samba stop
>>>- make sure they are really dead
>>>  * ps fax | grep smbd kill all listed processes
>>>  * ps fax | grep nmbd kill all listed processes
>>>- now type /usr/local/samba/bin/smbd -D
>>>- now type /usr/local/samba/bin/nmbd -D
>>>You should now be running the latest samba distribution. If so, change
>t
>>h
>>>e
>>>init scripts (/etc/init.d/samba) accordingly.
>>>
>>>------------------------
>>> "A.A"  wrote:
>>>------------------------
>>>hi,
>>>>
>>>>i see there is no sbin directory after the installation!!
>>>>
>>>>After unpacking wite xzvf and Instllation(.configure/make/make install
>/
>>m
>>>a
>>>>ke
>>>>installman ) of samba-2.2.81.tar.gz i have two directories:
>>>>
>>>>smba and samba-2.2.8a
>>>>
>>>>There are in samba directory only bin, lib, man swat,private, var
>>>>
>>>>and in samba-2.2.8a are : source, packing, swat, source testsuite, doc
>s
>>>,
>>>>pcp
>>>>
>>>>???!!!
>>>>
>>>>henry
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>-----Ursprüngliche Nachricht-----
>>>>
>>>>Von: Thomas Wild at aDog [mailto:tw at adog.de]
>>>>
>>>>Gesendet: Sonntag, 1. Juni 2003 23:26
>>>>
>>>>An: A.A
>>>>
>>>>Cc: samba at lists.samba.org
>>>>
>>>>Betreff: Re: AW: [Samba] samba installation
>>>>
>>>>
>>>>
>>>>Hi again,
>>>>
>>>>
>>>>
>>>>A.A wrote:
>>>>
>>>>> Hi Thomas,
>>>>
>>>>> As i wrote that's still the old Version:
>>>>
>>>>> /usr/local/samba-2.2.8a/bin/smbstatus --> samba version 2.2.7a-SUSE
>>>>
>>>>> When i type "Which smbstatus" i get /usr/bin /smbstatus
>>>>
>>>>this looks like a standard installation of SuSE.
>>>>
>>>>>
>>>>
>>>>> I dont know what you mean with :
>>>>
>>>>> For startup the samba processes you should change your Startscript i
>n
>>>>
>>>>> "/etc/init.d/samba" where the other version is still started.
>>>>
>>>>>
>>>>
>>>>> Sorry,what should i do with /init.d/samba ?
>>>>
>>>>under /etc/init.d are all system startscripts on SuSE Distributions. S
>o
>>>>
>>>>change the path of the both daemons smbd and nmbd. At the moment there
>>>>
>>>>are pathes like
>>>>
>>>>/usr/sbin/smbd
>>>>
>>>>/usr/sbin/nmbd
>>>>
>>>>you should change it into
>>>>
>>>>/usr/local/samba-2.2.8a/bin/smbd
>>>>
>>>>/usr/local/samba-2.2.8a/bin/nmbd
>>>>
>>>>and all other processes in that startscript - winbind is daemon which
>i
>>s
>>>>
>>>>started, too. I attachted my samba startscript for you.
>>>>
>>>>I changed the PATH variable which has the same effect.
>>>>
>>>>- Thomas
>>>>
>>>>
>>>>
>>>>PATH=/usr/local/samba-2.2.8a/sbin:$PATH
>>>>
>>>>export PATH
>>>>
>>>># The echo return value for success (defined in /etc/rc.config).
>>>>
>>>>return=$rc_done
>>>>
>>>>case "$1" in
>>>>
>>>>start)
>>>>
>>>>echo -n "Starting SMB services..."
>>>>
>>>>nmbd -D
>>>>
>>>>smbd -D
>>>>
>>>>winbindd
>>>>
>>>>echo -e "$return"
>>>>
>>>>;;
>>>>
>>>>stop)
>>>>
>>>>echo -n "Shutting down SMB services."
>>>>
>>>>killproc -TERM winbindd
>>>>
>>>>killproc -TERM nmbd
>>>>
>>>>killproc -TERM smbd
>>>>
>>>>sleep 2
>>>>
>>>>killproc -TERM nmbd
>>>>
>>>>echo -e "$return"
>>>>
>>>>;;
>>>>
>>>>*)
>>>>
>>>>echo "Usage: $0 {start|stop}"
>>>>
>>>>exit 1
>>>>
>>>>esac
>>>>
>>>># Inform the caller not only verbosely and set an exit status.
>>>>
>>>>test "$return" = "$rc_done" || exit 1
>>>>
>>>>exit 0
>>>>
>>>>
>>>>
>>>>>
>>>>
>>>>> Thanks
>>>>
>>>>> henry
>>>>
>>>>>
>>>>
>>>>>
>>>>
>>>>>
>>>>
>>>>> Hi,
>>>>
>>>>>
>>>>
>>>>> please try
>>>>
>>>>>
>>>>
>>>>> "/usr/local/samba-2.2.8a/bin/smbstatus"
>>>>
>>>>>
>>>>
>>>>> Might be, you have a standard installation on your system.
>>>>
>>>>> Type
>>>>
>>>>>
>>>>
>>>>> "which smbstatus"
>>>>
>>>>>
>>>>
>>>>> and you will see which prgram are in your default path ($PATH variab
>l
>>e
>>>)
>>>>
>>>>>
>>>>
>>>>> For startup the samba processes you should change your Startscript i
>n
>>>>
>>>>> "/etc/init.d/samba" where the other version is still started.
>>>>
>>>>>
>>>>
>>>>> - Thomas
>>>>
>>>>>
>>>>
>>>>> A.A wrote:
>>>>
>>>>>
>>>>
>>>>>>Hi,
>>>>
>>>>>>
>>>>
>>>>>>first of all i am Samba beginner! I have this problem :
>>>>
>>>>>>
>>>>
>>>>>>Samba-2.2.7a is just runing on my Linux Server. I will now install t
>h
>>e
>>>>new
>>>>
>>>>>>Version of samba-2.2.28a
>>>>
>>>>>>
>>>>
>>>>>>When i do ./configure, make and make-> install->smbstatus I see that
>>t
>>>h
>>>>ere
>>>>
>>>>>>is still old Version runing and not
>>>>
>>>>>>
>>>>
>>>>>>Samba-2.2.8a?!!
>>>>
>>>>>>
>>>>
>>>>>>My old samba is installed in /etc/samba
>>>>
>>>>>>
>>>>
>>>>>>and the new vesion is downloaded and installed ( i hope) in
>>>>
>>>>>>/usr/local/samba-2.2.8a
>>>>
>>>>>>
>>>>
>>>>>>thnks for your reply
>>>>
>>>>>>
>>>>
>>>>>>Henry
>>>>
>>>>>>
>>>>
>>>>>
>>>>
>>>>>
>>>>
>>>>> --
>>>>
>>>>> Thomas Wild
>>>>
>>>>>
>>>>
>>>>> Telephones do not have constitutional rights to be accepted!
>>>>
>>>>> - It's better to send me an Email ...
>>>>
>>>>>
>>>>
>>>>>
>>>>
>>>>--
>>>>
>>>>Thomas Wild
>>>>
>>>>Telephones do not have constitutional rights to be accepted!
>>>>
>>>>- It's better to send me an Email ...
>>>>
>>>>--
>>>>To unsubscribe from this list go to the following URL and read the
>>>>instructions:  http://lists.samba.org/mailman/listinfo/samba







More information about the samba mailing list