LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba (https://www.linuxquestions.org/questions/linux-networking-3/samba-228333/)

drethenerd 09-08-2004 06:16 PM

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

Thanks in advance

Peacedog 09-08-2004 06:20 PM

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.

drethenerd 09-09-2004 09:25 AM

actually, they didn't help much
I tried to use swat but it didn't work
any other ideas?

thanks in advance

Peacedog 09-09-2004 11:32 AM

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.

maximux 09-09-2004 12:18 PM

everything is in smb.conf
when u find this file and configure it in a right way you are on!

drethenerd 09-09-2004 05:50 PM

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

Peacedog 09-09-2004 06:05 PM

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.

drethenerd 09-10-2004 10:36 PM

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

gulo 09-11-2004 01:05 AM

have you set your IP addy's yet?

Peacedog 09-11-2004 09:19 AM

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.

drethenerd 09-11-2004 11:27 AM

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

Peacedog 09-11-2004 02:13 PM

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.

hasnain 09-11-2004 03:16 PM

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

drethenerd 09-11-2004 04:18 PM

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

drethenerd 09-11-2004 04:43 PM

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


All times are GMT -5. The time now is 03:25 AM.