LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-08-2003, 08:28 PM   #1
Lord Ghost
Member
 
Registered: Jul 2003
Posts: 68

Rep: Reputation: 15
Question Newbie in NEED!!! SAMBA questions!!! : )




That's me in a nutshell. I'm a computer tech, I'm fairly knowledgable in M$ land, but not in Linux. However, late at night, something possessed me and I installed Mandrake Linux 9.1 on my box. Love it. I mean that. I've cuddled with it, fooled around a little, but now...now I wanna go all the way, and marry it to my GF's WindowsXP Laptop on our network.

So, with that in mind, I have Mandrake Linux 9.1, samba installed, a Linksys router and absolutely ZERO clue how I should start down this path. I don't even know how to set samba up properly....

I have attempted to RTFM with zero help, although I "think" I understood how to change the workgroup name....maybe...don't quote me on that....

So, now that you fully understand that I am <clue on much of this, please be gentle. If there is an awesome HOWTO that has been written that takes a newbie like me gently by the hand and walks through EACH and EVERY step, PLEASE FEEL FREE TO POINT ME TO IT!!!! I've been searching for a full day and a half, and my brain now officially hurts...which is kinda good....it at least proves I had one to start with....or maybe it grew when I installed Mandrake.

Cheers,
LG
 
Old 07-08-2003, 09:20 PM   #2
leifole
LQ Newbie
 
Registered: Aug 2002
Location: Copenhagen, Denmark
Distribution: Redhat, familiar
Posts: 7

Rep: Reputation: 0
For configuration purpose you could use samba swat (a web interface for the smb.conf file). It describes how to configure samba quite well.

For verification purpose you could use the smbclient program.

Below is an example of the smb.conf file (very simple setup) and a command used for adding an user. The example is an extract from a RH9 installation with samba 2.2.7a-8.9.0 and may vary from your installation:

[global]
workgroup = MYDOMAIN
netbios name = HOSTNAME
bind interfaces only = yes
interfaces = eth0
load printers = no
log file = /var/log/samba/%m.log
max log size = 0
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
show add printer wizard = No
hide dot files = yes
veto files = /.*/*.sh/*mail*/*Mail*/
invalid users = root
character set = ISO8859-1
create mask = 0700
directory mask = 0700
mangled names = No
hide dot files = Yes
hosts allow = 192.168.2.
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
fstype = samba
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes


Please modify 192.168.2. , MYDOMAIN and HOSTNAME to your environment. After setup of smb.conf, you should add your unix users as samba users as well. This is done by: "smbadduser <unix userid>:<samba userid>" as root

Finally restart your samba server
 
Old 07-09-2003, 12:59 PM   #3
Lord Ghost
Member
 
Registered: Jul 2003
Posts: 68

Original Poster
Rep: Reputation: 15
*bump*
 
Old 07-09-2003, 03:44 PM   #4
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
I will post links to some documentation later.
 
Old 07-09-2003, 05:01 PM   #5
Lord Ghost
Member
 
Registered: Jul 2003
Posts: 68

Original Poster
Rep: Reputation: 15
Thanks, I appreciate it, because honestly, I'm still lost.

The only thing I really want to do is either:

A) Be able to browse my GF's file share on WinXP Pro and share my printer with her.

or

B) Allow her access to my second hard drive mounted as /backup and the printer.

We're on a Linksys router which is configured with a DHCP server and a network of 192.168.1.* for our IP addresses.

I just need to know what all I have to set up to make this happen, from start to finish.

Cheers,
LG
 
Old 07-09-2003, 07:18 PM   #6
iPhusion
LQ Newbie
 
Registered: Jul 2003
Location: MI
Distribution: RH8, Mainly Mandrake
Posts: 6

Rep: Reputation: 0
in the same boat

hi, im pretty much in the same boat... Im using Mandrake instead and I tried to add the printer and havn't got it to work yet... My set up is basicly like Lord G's... How ever i did get mounting all worked out, but thats cuz samba is a bit more user friendly in mandrake i think.... i couldn't even find it in Rh... I use to like RH but i made the move to madrake, its quite nice....
 
Old 07-09-2003, 07:32 PM   #7
Lord Ghost
Member
 
Registered: Jul 2003
Posts: 68

Original Poster
Rep: Reputation: 15
Yeah, actually I *do* use Mandrake, as I stated in my original post. I think he was just showing me a "typical" script for samba.

Sadly, the issue I deal with is that if I start editing the smb.conf, I disappear from my own network...lol.

I could really use some step by step help with this, and I'd be happy to supply any information anyone would need.

Cheers,
LG
 
Old 07-09-2003, 07:49 PM   #8
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
I would recommend loading Samba from your installation cd. You can always do the fancy stuff after you understand how it works.

http://www-1.ibm.com/servers/esdd/tu...mba/index.html


http://networking.earthweb.com/netos...le.php/1144701

http://networking.earthweb.com/netos...le.php/1151091


Remember to include the

domain logons = yes

command in your smb.conf file. This is required for Windows 2000/XP logons even though the literature suggests otherwise.
 
Old 07-10-2003, 08:05 PM   #9
Lord Ghost
Member
 
Registered: Jul 2003
Posts: 68

Original Poster
Rep: Reputation: 15
Okay. I'll start from scratch on this one, maybe someone can give me some solid help.

Facts:

#1: I am running a Mandrake Linux 9.1 computer.
#2: My GF is running a Windows XP Pro laptop.
#3: Both are connected to a Linksys Router.
#4: The router has DHCP enabled.
#5: Both use the router to connect to the internet via broadband cable.

Challenges:
#1: Configure the router and/or samba to allow her laptop access to shared folders on my system, as well as allowing her access to the laser printer via my computer.
#2: Present this in a simple to read, easy to understand, step-by-step process of all things required to make this happen.
#3: Offer information on how to achieve the things required in simple to read, easy to understand, step-by-step instructions.
#4: Attempt to do so without sarcasm.

Thanks in advance.

Cheers,
LG
 
Old 07-10-2003, 09:20 PM   #10
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Rep: Reputation: 30
Try this site out
www.samba.netfirms.com
This has a step by step way of showing you haow to get Samba started.
Very easy to read- took me all of ten minutes to read it.

Good Luck,
ikw38
 
Old 07-10-2003, 10:29 PM   #11
Lord Ghost
Member
 
Registered: Jul 2003
Posts: 68

Original Poster
Rep: Reputation: 15
Thanks for that link, it's actually been helpful! I've gotten it up to the point where I have shares set up properly, now I just need to set it up so that windows can see it. : )

Cheers,
LG
 
Old 07-12-2003, 04:05 AM   #12
DBAONLINUX
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Rep: Reputation: 0
Hi There....

I need some help ...
I have RH linux 8.0 and win 98 on my network...I have configured SMB and iam able to access Win files using smbmount on Linux box.....I can see linux machine on network neighbour hood on Windows 98 but when i click on machine it says "Access denied or the machine not found" I dont understand what is wrong ... I am logging in to linux as a root.....does that have anything to do can u please guide me.........

Thanks in advance

Milano
 
Old 07-13-2003, 09:37 PM   #13
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Rep: Reputation: 30
You may still have a fire wall up type lokit and disable it.
If this don't work ping your box make sure you can ping it from Vendow$.

Hope this helps,
ikw38
 
Old 07-14-2003, 07:48 AM   #14
DBAONLINUX
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Rep: Reputation: 0
Thanks for the reply..

I have default setting for firewall which i selected during installation and i can ping the machine from Win 98 .....
I can access files from Linux box but not from windows....

I am attaching my cmb.conf let me know if any thing is wrong..



[Global]

workgroup = LES
netbios name = MILANO LINUX
encrypt passwords = yes
security = user

os level = 65
preferred master = yes
domain master = yes
logon path = \\%n\profiles\%u

logon drive = c:
logon home = \\mcname\%u

[netlogon]
path = /var/lib/samba/netlogon
guest ok = yes
writable = no
share mode = no

[homes]
read only = no
browseable = no

[music]
path = /data/mp3
browseable = yes
public = yes
write list = ADMINISTRATOR, Milan

[everyone]
path = /data/everyone
read only = no
browseable = yes

[apps]
path = /data/apps
browseable = yes
valid users = @admins, root
write list = @admin, root


reagrds
Milan
 
Old 07-15-2003, 05:34 AM   #15
DBAONLINUX
LQ Newbie
 
Registered: Jul 2003
Posts: 15

Rep: Reputation: 0
Thanks a lot..

It works ........ It was only becoz of firewall......
I can see my Linux box on all the Windows machines.....
One more thing is, i want to use My Linux as primary DNS server and also internet sharing for which i have configured smb.conf but its not working.......

Can anyone help me in this matter....

Thanks and Regards

Milan
 
  


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
Help the newbie...:D Got some questions... desperate_penguin Linux - Software 8 11-22-2005 07:34 AM
SAMBA Newbie Questions gblasius Linux - Newbie 3 09-26-2005 07:31 AM
Newbie Questions microsoft/linux Debian 11 09-24-2004 12:19 PM
yes! its another newbie questions today53 Linux - Newbie 5 10-18-2003 07:15 AM
Newbie Samba PDC questions zos Linux - Networking 3 06-22-2003 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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