Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-04-2003, 01:42 AM
|
#1
|
Member
Registered: Jul 2003
Posts: 36
Rep:
|
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
|
|
|
08-04-2003, 02:36 AM
|
#2
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
Did you start the service ("/sbin/service smb start"). Does "netstat -tuanp" confirm that the servers are listening?
|
|
|
08-04-2003, 02:39 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
Is samba running?
service smb start
|
|
|
08-04-2003, 07:49 AM
|
#4
|
Member
Registered: Jul 2003
Posts: 36
Original Poster
Rep:
|
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?????
|
|
|
08-04-2003, 08:05 AM
|
#5
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
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.
|
|
|
08-04-2003, 08:10 AM
|
#6
|
Member
Registered: Jul 2003
Posts: 36
Original Poster
Rep:
|
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
|
|
|
08-04-2003, 08:15 AM
|
#7
|
Member
Registered: Jul 2003
Posts: 36
Original Poster
Rep:
|
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
|
|
|
08-04-2003, 08:28 AM
|
#8
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
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).
|
|
|
08-04-2003, 08:29 AM
|
#9
|
Member
Registered: Jul 2003
Posts: 36
Original Poster
Rep:
|
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
|
|
|
08-04-2003, 10:24 AM
|
#10
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
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
|
|
|
08-04-2003, 02:02 PM
|
#11
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
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.
Last edited by zmedico; 08-04-2003 at 02:04 PM.
|
|
|
08-05-2003, 04:21 AM
|
#12
|
Member
Registered: Jul 2003
Posts: 36
Original Poster
Rep:
|
Zmediko,
rpm --verify initscripts
produced the response:
package initscripts is not installed.
must i install it thru Yast please?
thanks
ad
|
|
|
08-05-2003, 02:49 PM
|
#13
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
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].
|
|
|
08-06-2003, 02:30 AM
|
#14
|
Member
Registered: Jul 2003
Posts: 36
Original Poster
Rep:
|
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.
|
|
|
08-06-2003, 03:30 AM
|
#15
|
Member
Registered: Jul 2003
Posts: 36
Original Poster
Rep:
|
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
Last edited by Adibe_Hamm; 08-06-2003 at 03:37 AM.
|
|
|
All times are GMT -5. The time now is 10:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|