LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help Configuring Samba (https://www.linuxquestions.org/questions/linux-software-2/help-configuring-samba-78778/)

Adibe_Hamm 08-04-2003 01:42 AM

Help Configuring Samba
 
Am new on Linux. I recently did install Linux8.0, then had problems configuring Samba after this command:

# smbclient -U% -L localhost

Error:

added interface ip=194.180.75.90 bcast=194.180.255 nmask=255.255.255.0
error connecting to 127.0.0.1:139 (connection refused)
error connecting to 127.0.0.1 (connection refused)

connection to localhost failed>

Can anyone pls help

Ad

zmedico 08-04-2003 02:36 AM

Did you start the service ("/sbin/service smb start"). Does "netstat -tuanp" confirm that the servers are listening?

ppuru 08-04-2003 02:39 AM

Is samba running?

service smb start

Adibe_Hamm 08-04-2003 07:49 AM

When I tried: /usr/sbin/ smbd
or
smbd start from whatever directory level,

DID NOT RETURN ANY VALUE or ERROR MESSAGE

/usr/sbin/ smb start

RETURNED: Command not found!

what else have I got to do please?????

Corin 08-04-2003 08:05 AM

Have you installed the samba server?

rpm -q samba

will tell you if you have or have not.

Find your installation disks and look for the samba rpm
and then install with

rpm -ivh samab-{whatever_version}.rpm

Please note that there have been many security fixes to samba since the RH8 version, so you should get the latest version from the Red Hat site.

Adibe_Hamm 08-04-2003 08:10 AM

SORRY I HAVE TO BOTHER U GUYS MORE111

#Testparm

result:

Load smb config files from //etc/samba/smb.conf
Processing Sections "[netlogon]"
Global parameter logon path found in Service Section!
Global parameter logon home found in Service Section!
Processing Sections "[profiles]"
Processing Sections "[homes]"
Processing Sections "[Printers]"
Loades Services file OK.

I still cant locate source of the problem.

Ad

Adibe_Hamm 08-04-2003 08:15 AM

Dear Corrin,

I hate installed Samba. The command:

rpm -q samba

produced the response:

samba-2.2.3a-64

How else can I resolve this please.

thanks

Ad

Corin 08-04-2003 08:28 AM

Quote:

Originally posted by Adibe_Hamm
When I tried: /usr/sbin/ smbd
or
smbd start from whatever directory level,

DID NOT RETURN ANY VALUE or ERROR MESSAGE

/usr/sbin/ smb start

RETURNED: Command not found!

what else have I got to do please?????

Did you run the command as user root?

You can only start smb as root

Also if you want to ensure that smb starts whenever you but up your machine, as user root, fire up

redhat-config-services

and enable smb to stop in runlevels 0, 1, 2, and 6
and enable smb to start in runlevels 3, 4, 5

I trust that your default runlevel is either 3 or most probably 5
(with Xserver running).

Adibe_Hamm 08-04-2003 08:29 AM

Zmedico,

thanks for your tip.

/sbin/service smb start

produced response:

commend not found

and #whereis service

produced response

:service

what else can I do please???

ad

ppuru 08-04-2003 10:24 AM

As Corin pointed out, you need to have root privileges to start or stop a service.

you can login as root and run

service smb start

zmedico 08-04-2003 02:02 PM

Quote:

Originally posted by Adibe_Hamm
/sbin/service smb start

produced response:

command not found

That's strange because on Redhat 9 that command is part of the initscripts package, which is required. You can verify that package with "rpm --verify initscripts". You may also want to verify the samba package.

BTW- /sbin/service isn't required. The script /etc/rc.d/init.d/smb can be ran directly. Of course, first use "su" to become root.

Adibe_Hamm 08-05-2003 04:21 AM

Zmediko,

rpm --verify initscripts

produced the response:

package initscripts is not installed.

must i install it thru Yast please?

thanks

ad

Corin 08-05-2003 02:49 PM

If you are on a SuSE system, then you do indeed need to install the package initscripts, and this is most easily done through YaST[2].

Adibe_Hamm 08-06-2003 02:30 AM

thanks Corin, how do i install the Package Initscripts thru YaST2. Ihave tried several CDs from the available 7 CDs in the package, but cant get an auto run Installation.

Adibe_Hamm 08-06-2003 03:30 AM

HURRAH!!! I seems to be making some progress, but......

# smbclient -U% -L localhost

produced the response:


added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
added interface ip=194.180.75.90 bcast=194.180.255 nmask=255.255.255.0
Domain=[ARBEITSGRUPPE] OS=[Unix] Service=[Samba 2.2.3a]

Sharename Type Comment
-------------- ------ ------------
netlogon Disk Network Logon Service
IPC$ IPC IPC Service (Samba 2.2.3a)
ADMIN$ Disk IPC Service (Samba 2.2.3a)

Server Comment
-------- ------------

Workgroup Master
------------- ---------

BUT AM YET TO LOCATE THE LINUX/SAMBA SERVER ON MY WINDOWS SERVER.

pls help

ad


All times are GMT -5. The time now is 05:40 PM.