LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-10-2004, 06:52 PM   #1
boardtc
Member
 
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53

Rep: Reputation: 15
Newbie Samba problems, no swat...


I have samba running on a fresh install of 9.2, it's tricky to get going for a newbie. From my XP machine I can find the samba server but when I click on it I get the message \\LocalHost is not accessible.

In the init.d directory logged on as root I first typed "service smb stop", which stopped samba. I then typed "smbpasswd -a username" where username is my xp login id, I filled in the password and confirmation but i then got a message that this user is not in the system passwords file which is usually contained in /etc/passwd (I can't se that).

I had previously successfully added a user, the name of my xp computer, rather than the login. Why is it not letting me add this user? I assume this is the reason I'm getting the message in xp.

When I tried to run Swat from Configuration | Networking | Samba Configurationthat I get : An error occurred while loading h t t p : / / localhost:901/: Could not connect to host localhost (port 901)

I then downloaded swat 2.2.8a on rpmfind.net, installing this gives Some package requested cannot be installed: swat-2.2.8a-1.i386 (due to unsatisfied cups-lib) do you agree ?

The Linux install was such a breeze I should have expected a hiccup such as this, seems like you need to be a Linux guru to get samba working. Any recommendations from here?

Thanks a lot, Tom.
 
Old 02-10-2004, 09:27 PM   #2
mmc
Member
 
Registered: Sep 2003
Location: Macon, GA
Distribution: Mandrake cooker, Fedora Core 3, Linspire, Libranet,Debian, SuSE 9.2, Slack
Posts: 113

Rep: Reputation: 15
try using webmin to configure samba

and please report any output such as errors, etc.
 
Old 02-11-2004, 04:30 AM   #3
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Hi

Also you need to go to the rpm installer and install SWAT as this doesnt happen by default (mmm??)
or at least check if it is installed !

Cheers
 
Old 02-11-2004, 12:31 PM   #4
jjohnston62
Member
 
Registered: Aug 2003
Location: Minnesota, USA
Distribution: RedHat, Suse
Posts: 106

Rep: Reputation: 15
Are you sure your machine is doing internal name resolution properly? What is the content of /etc/hosts?

When you setup samba, you will typically be adding the user name twice, once to unix/linux, and once to samba using smbpasswd (or pdbedit, depending upon which version samba you're using)

- on the samba site - www.samba.org - there is a howto guide on getting samba running that is available as a PDF. There is a troubleshooting chapter that should be able to assist you in getting it going properly.
 
Old 02-11-2004, 03:36 PM   #5
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
Another good thing to look at doing would be to install the version of SWAT that's on your install discs. It's usually on the third disc, in the Mandrake/RPMS directory

Put in the disc, mount the drive, and type (as root)

Code:
ls *.rpm | grep swat
once you find the swat rpm file try to run

Code:
rpm -ivh samba-package-version.whatever.rpm
after that restart the xinetd service (/etc/init.d/xinetd restart), and then trying to go to http://localhost:901 and see if that yeilds results.
 
Old 02-12-2004, 05:10 AM   #6
Bulbous
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
Quote:
From my XP machine I can find the samba server but when I click on it I get the message \\LocalHost is not accessible.
Stupid question, I know, but have you named your Linux host, or left it as the default LocalHost? From the quote above, it looks like you've left it as the default. Windows also uses \\localhost (not case-senstive) to mean the local machine, so it might be getting confused...
 
Old 02-15-2004, 08:12 PM   #7
Invdaderzim
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 30

Rep: Reputation: 15
I use webmin to configure samba, it works soo easily. hint: make sure samba is open on your built in shorewall firewall : )
 
Old 02-16-2004, 06:14 PM   #8
boardtc
Member
 
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53

Original Poster
Rep: Reputation: 15
A newbie drowning

Thanks for the replies. To be honest, as a newbie most of them were over my head.

>>try using webmin to configure samba
>>and please report any output such as errors, etc.

I had a look for webmin on my system and could not find it.

>>Also you need to go to the rpm installer and install SWAT as this doesn't happen by >>default (mmm??) or at least check if it is installed !

I googled for rpm installer but could not find it, I don't know what this is. Would running the swat rpm I installed not be the same? That was the one that gave me the unsatisfied cups-lib error.

>>Are you sure your machine is doing internal name resolution properly?
How do I check this?

>>What is the content of /etc/hosts?
I haven't changed the default setup....I don't seem to have this directory.

>>Another good thing to look at doing would be to install the version of SWAT that's on >>your install discs. It's usually on the third disc, in the Mandrake/RPMS directory
>>Put in the disc, mount the drive, and type (as root)
>>ls *.rpm | grep swat

I hadn't downloaded the 3rd CD,a ls without the grep swat gives lots of rpm files but with it none.

>>rpm -ivh samba-package-version.whatever.rpm

This package is on the 2nd cd, should I run it to try and reinstall samba?

>> but have you named your Linux host, or left it as the default LocalHost? From the >>quote above, it looks like you've left it as the default. Windows also uses \\localhost >>(not case-senstive) to mean the local machine, so it might be getting confused...

It probably is as I have not changed the default installation. Can't figure out where in the control centre to do this.

Wow, it looks like the breeze of an installation was a red herring. I'm a programmer who has worked with computers for 10+ years. What chance does the regular joe have of deciphering this very un newbie friendly os.

I'll keep trying. I'm reading the samba pdf trying to figure out what to do but not getting anywhere for now.

Thanks for ye'r help.

Cheers, Tom.
 
Old 02-16-2004, 08:32 PM   #9
mmc
Member
 
Registered: Sep 2003
Location: Macon, GA
Distribution: Mandrake cooker, Fedora Core 3, Linspire, Libranet,Debian, SuSE 9.2, Slack
Posts: 113

Rep: Reputation: 15
1.Webmin is a configuration tool. Once you install it, you open konqueror and type https://localhost:10000 then login as root. Explore to the servers and try editing it a little bit.
2. rpm installer is rpmdrake (also called Install Software) you can use this to get SWAT Webmin, etc.
3. The lib-cups error will automatically be fixed when using rpmdrake
4. I have heard that changing your host name is a pain.
5. try doing: urpmi ksambaplugin. This is a module that plugs into KDE control center
Webmin:

make sure if you have a firewall, that webmin is allowed (port 10000)
When you first start it, you will be prompted with some certificate questions. allow the certificates
click on servers
click on samba windows filesharing

This will allow you to configure samba.
Hope it helps
 
Old 02-17-2004, 06:07 PM   #10
boardtc
Member
 
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks for the tips. In RpmDrake I found nothing for swat or webmin. I found webmin-1.121-2mdk.src.rpm from rpmfind.net and downloaded it. Logged on as root I tried :

rpm - ivh webmin-1.121-2mdk.src.rpm

and was given warnings: user flepied does not exist - using root.

I have a default instalation of madrake 9.2 with practical everything installed. Would someone be able to point me where I can find something? ANy advice much appreciated.

Thanks, Tom.
 
Old 02-17-2004, 07:00 PM   #11
mmc
Member
 
Registered: Sep 2003
Location: Macon, GA
Distribution: Mandrake cooker, Fedora Core 3, Linspire, Libranet,Debian, SuSE 9.2, Slack
Posts: 113

Rep: Reputation: 15
Don't download the source files -src.rpm
get this webmin-1.2.1
do rpm -ivh webmin-1.121.noarch.rpm
 
Old 02-17-2004, 07:43 PM   #12
boardtc
Member
 
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53

Original Poster
Rep: Reputation: 15
Great, thanks. I did that. Going to url https://localhost:10000 in Konqueror gave me an error : the server certificate failed the autenenticity test (localhost), I accepted and continued, logging on as root when it asked.

I navigated to https://localhost:10000/samba/ and there I will continue my journey over the next few days. Thanks for the start.

Cheers, Tom.
 
Old 02-18-2004, 01:38 AM   #13
Invdaderzim
Member
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 30

Rep: Reputation: 15
P.S. In the mandrake control center ("mcc") make sure that the firewall is open for Samba : ).
 
Old 02-19-2004, 10:06 AM   #14
boardtc
Member
 
Registered: Feb 2004
Location: London, England
Distribution: MDK 9.2
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks guys. I have no firewall on while I am getting everything setup, I'll add it once everthing is working. However. there is a built in one of my router which I use to give all3 machines a net connection (it also has a printer port). Does this matter?

Webmin is fantastic, so nice to have an interface on all those file, huge help to a newbie and, maybe I am wrong, but I would imagine everyone....

Ok. I can edit the password of the user I added already but I can't figure out how to delete this user and add another in webmin?

I want to add one to correspond to my windows login name. I am now getting the login screen on my xp machine so hoefully I just need to add this user!

Cheers, Tom.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems installing Samba-SWAT Dolphin2005 Linux - Newbie 1 11-18-2005 05:43 PM
Problems with Samba-Swat: Unable to see other Windoze machines on my network. sutherncomfort Linux - Networking 9 02-02-2005 09:30 PM
Newbie having problems with Suse 9 and Samba Irf Linux - Software 10 05-11-2004 01:43 AM
samba and swat problems talkinggoat Linux - Software 5 09-27-2003 07:06 AM
Newbie: swat problem buzzvang Linux - Networking 2 09-17-2003 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration