LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2004, 06:16 PM   #1
drethenerd
Member
 
Registered: Aug 2004
Distribution: Slackware 12.0
Posts: 81

Rep: Reputation: 15
Question Samba


I want to know how to set up samba for a Suse Linux 9.1 machine and Windows XP machine.

Thanks in advance
 
Old 09-08-2004, 06:20 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
there is plenty of documentation here

http://us3.samba.org/samba/docs/man/...TO-Collection/

http://us3.samba.org/samba/docs/using_samba/toc.html

http://fluffygerbil.com/unofficial-samba.txt

hope that gets you headed in the right direction.
good luck.
 
Old 09-09-2004, 09:25 AM   #3
drethenerd
Member
 
Registered: Aug 2004
Distribution: Slackware 12.0
Posts: 81

Original Poster
Rep: Reputation: 15
actually, they didn't help much
I tried to use swat but it didn't work
any other ideas?

thanks in advance
 
Old 09-09-2004, 11:32 AM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
Originally posted by drethenerd
actually, they didn't help much
I tried to use swat but it didn't work
any other ideas?

thanks in advance
did you read them? from all of that info, you should have more than "they didn't help much". in any event post your smb.conf and we'll try to help you get it going.
good luck.
 
Old 09-09-2004, 12:18 PM   #5
maximux
LQ Newbie
 
Registered: Sep 2004
Location: france
Posts: 3

Rep: Reputation: 0
everything is in smb.conf
when u find this file and configure it in a right way you are on!
 
Old 09-09-2004, 05:50 PM   #6
drethenerd
Member
 
Registered: Aug 2004
Distribution: Slackware 12.0
Posts: 81

Original Poster
Rep: Reputation: 15
okay here's my smb.conf file:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE
# Date: 2004-07-21
[global]
workgroup = MSHOME
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
security = user
encrypt passwords = yes
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit permissions = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit permissions = Yes
[pdf]
comment = PDF creator
path = /var/tmp
printable = Yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
create mask = 0600
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
 
Old 09-09-2004, 06:05 PM   #7
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
First thing i see is you could add a netbios name option under global

netbios name = whatever name you choose

Please provide more details, can you access anything from network neighborhood, how about from konqueror? Have you added smbusers? You'll need a valid linux user, smb user, and windows user/account. all of this is in the links above, I love to come here and help people and learn as well, but, if your not willing to read anything, it makes it really tough. I'll hang in here as long as it takes, if your willing to "help me, help you".
good luck.
 
Old 09-10-2004, 10:36 PM   #8
drethenerd
Member
 
Registered: Aug 2004
Distribution: Slackware 12.0
Posts: 81

Original Poster
Rep: Reputation: 15
first of all, I wish to use windows as the server, because it has a printer that i would like to use. i have tried setting up smbclient with the info from the guide from an o'reilly book. i've gotten far enough so that when you run the command:

/usr/local/samba/bin/smbclient -L xar

and then hit the enter key instead of the password it says this:

Anonymous login successful
Domain=[QUOX] OS=[Unix] Server=[Samba 3.0.6]

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba 3.0.6)
ADMIN$ IPC IPC Service (Samba 3.0.6)
Anonymous login successful
Domain=[QUOX] OS=[Unix] Server=[Samba 3.0.6]

Server Comment
--------- -------
AQUA-Q Family room computer
XAR Samba 3.0.6

Workgroup Master
--------- -------
QUOX XAR


(by the way, aqua-q is my windows machine, xar is my linux machine, and quox is the network name)

the only problem is when you do the same command as above, but then type in my password, it only gives me this:

Domain=[XAR] OS=[Unix] Server=[Samba 3.0.6]

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba 3.0.6)
ADMIN$ IPC IPC Service (Samba 3.0.6)
Domain=[XAR] OS=[Unix] Server=[Samba 3.0.6]

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

Workgroup Master
--------- -------
QUOX XAR

also, when you run the command:

/usr/local/samba/bin/smbclient -L aqua-q

you only get this back:

Connection to aqua-q failed

Thank you for your time.

p.s. go easy on me. im only 12
 
Old 09-11-2004, 01:05 AM   #9
gulo
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Ubuntu
Posts: 65

Rep: Reputation: 15
have you set your IP addy's yet?
 
Old 09-11-2004, 09:19 AM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
From smbclient i don't see a shared printer, you'll need to do that first. Once you've done that you may have a look here.

http://www.faqs.org/docs/Linux-mini/...ing_to_windows

That should get you going.
good luck.
 
Old 09-11-2004, 11:27 AM   #11
drethenerd
Member
 
Registered: Aug 2004
Distribution: Slackware 12.0
Posts: 81

Original Poster
Rep: Reputation: 15
i no that there is no shared printer, because it is connected to aqua-q, the windows machine. when i try to connect to aqua-q it doesn't let me, even though aqua-q is listed under the servers when i run smbclient -L xar, and not type in the password.
i think that is the problem

thanks a lot
 
Old 09-11-2004, 02:13 PM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Try this, add aqua-q to your /etc/hosts file in this format

xxx.xxx.xxx.xxx aqua-q

where xxx.xxx.xxx.xxx is the ip of the box. Save the file then try smbclient again. What manner did you set up ip's?
good luck.
 
Old 09-11-2004, 03:16 PM   #13
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
samba problem

well sharing resources on windows XP is not that simple coz when you come to practiacally implement it on the system ...it gives lot.og problems.....s the best posibble solution for implementing the samba is.....to configure the smb.conf filein /etc/samba/smb.con



the best way to learn making samba server is to ....check this given below link..

http://www.icon.co.za

regards
 
Old 09-11-2004, 04:18 PM   #14
drethenerd
Member
 
Registered: Aug 2004
Distribution: Slackware 12.0
Posts: 81

Original Poster
Rep: Reputation: 15
i aqua-q's ip address under /etc/hosts, and tried to connect to it again, but this time this is what i got:

timeout connecting to 192.168.1.100:445
timeout connecting to 192.168.1.100:139
Error connecting to 192.168.1.100 (Operation already in progress)
Connection to AQUA-Q failed

thanks a lot
 
Old 09-11-2004, 04:43 PM   #15
drethenerd
Member
 
Registered: Aug 2004
Distribution: Slackware 12.0
Posts: 81

Original Poster
Rep: Reputation: 15
i tried a different ip address (i have no idea which one is the real one) and got this back when trying to connect to aqua-q:

Error connecting to 24.7.158.161 (Connection refused)
Connection to AQUA-Q failed

again, thanks
 
  


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 - Networking

All times are GMT -5. The time now is 07:38 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