LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-04-2004, 04:15 PM   #1
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
Samba


How do I setup samba properly.. It is installed and so is ksambaplugin (samba configurator for kde).. I think i have it setup right but i cannot get my moms winxp laptop to see the printer on my computer... How do i go about doing all this. Also how do i get it to autostart i dont see that it starts
 
Old 05-04-2004, 06:54 PM   #2
kerplunk322
LQ Newbie
 
Registered: May 2004
Posts: 3

Rep: Reputation: 0
You can get Samba to start on boot by logging in as root and using pkgtool. You will need to go into the Setup section followed by the Services section (I think its called services, I'm currently not at my slackware box right now), from there you can select Samba to start as a service on boot.

For configuration I usually use SWAT which is provided with Samba. Please read through the documentation at www.samba.org to get it up and running it's not that hard and the guides are well written (a very good resource). Any more specific problems you have I will be more than happy to help out with
 
Old 05-04-2004, 08:44 PM   #3
salahuddin_66
Member
 
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Rep: Reputation: 30
i am a samba user (not the admin)

it is possible for me configure it with SWAT
 
Old 05-05-2004, 05:29 PM   #4
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
anyone that can help me setup samba properly to connect 2 my 2 computers... They dont require a username and password to connect and its only windows xp computers
 
Old 05-05-2004, 07:04 PM   #5
elawman
LQ Newbie
 
Registered: Apr 2004
Location: Chesterfield, Virginia
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
You can generally mount any samba shared directory on a remote computer with the following:

mount -t smbfs //SERVERNAME/sambashare /mnt/sambashare -o username=USER,password=pass

This is if you have samba installed on your slack box, and you've created the directory "sambashare" in your /mnt directory. If you've compiled from source, make sure you configured with "./configure --with-smbclient" before you "make; make install".

You can also add /etc/fstab entries so you can mount the share with a simple "mount /mnt/sambashare" by adding this line in /etc/fstab

//SERVERNAME/sambashare /mnt/sambashare smbfs username=USER,password=PASS

I hope this helps...
 
Old 05-19-2004, 10:20 AM   #6
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Rep: Reputation: 15
I'm trying to get a Linux box to access a Samba share that the Windows boxes already can. When I try it gives an error:
Code:
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
        No such file or directory
Can't load /etc/samba/smb.conf - run testparm to debug it
Could not resolve mount point /mnt/export
Why or how do I need to configure smb.conf on the clients?
 
Old 05-25-2004, 10:14 AM   #7
caged
Member
 
Registered: Jan 2004
Location: new zealand
Distribution: Mandrake,Slackware
Posts: 165

Rep: Reputation: 30
i get the same error id be interested to find a cure, samba seems to work anyhow.
 
Old 05-25-2004, 11:36 AM   #8
elawman
LQ Newbie
 
Registered: Apr 2004
Location: Chesterfield, Virginia
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
In the /etc/samba directory, there's a smb.conf-default (or something along those lines). Just rename it to smb.conf, and you're done. You can also edit the file and set your workgroup and other parameters.

As for the "cannot resolve mount point" error for "/mnt/export", make sure that directory does indeed exist.
 
Old 05-25-2004, 12:37 PM   #9
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Rep: Reputation: 15
It does mount fine now although there is a strange permissions problem.

When I use the samba share from a Win2k box I have full access (read/write) to the directory. When I access the share from a linux box, using the same name & pass, I only have read access. I'm not sure what the deal is on that.
 
Old 06-02-2004, 11:43 PM   #10
caged
Member
 
Registered: Jan 2004
Location: new zealand
Distribution: Mandrake,Slackware
Posts: 165

Rep: Reputation: 30
do you have permission problems even as root?
 
Old 06-03-2004, 11:03 PM   #11
Spooner Nash
LQ Newbie
 
Registered: Jun 2004
Location: Florida
Distribution: Slackware, Ubuntu, KnoppMyth
Posts: 9

Rep: Reputation: 0
RE: not being able to log in from Win boxes, I think Samba will only accept connections from users with a valid user name and password on the box running the Samba server. Also, I think you have to do a user add in Samba. Then you have to make sure the Win box is sending the correct user name and password, same as set up on the Samba box.

I have Samba running on a Slack 9.1 box serving multiple Win 98se and Win 2000 pro boxes, including remote boxes over vpn. It took some doing, and it was a set up about 6 months ago, so I don't recall all the details.
 
Old 06-03-2004, 11:09 PM   #12
Spooner Nash
LQ Newbie
 
Registered: Jun 2004
Location: Florida
Distribution: Slackware, Ubuntu, KnoppMyth
Posts: 9

Rep: Reputation: 0
Also, I ran in to problems when I created directories on the Samba box logged in as root. Caused permission problems and denied access later when accessing from the Win boxes. I decided it was best to make any directory/file changes as one of the Win clients/users, and I don't ever work in those directories/files on the Samba box.

Also, you can set the default umask for the Samba files to avoid permission problems. I set mine up using swat. The box it runs on is console based only, no X.
 
  


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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

All times are GMT -5. The time now is 08:12 PM.

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