| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
|
By cdabb at 2005-02-07 10:08
|
|
Basic Samba Network File Sharing
Introduction to Samba Server:
Samba can be setup to function as different types of network server. In this article we will cover the basic Samba setup for the Novell Linux Desktop. This document will cover the following areas of the Samba server:
1. Samba Server Types overview
2a. Basic file sharing with MS Windows computers
2b. Samba Server User Accounts & Services
3. Mounting MS Windows File server
4. Troubleshooting
1. Samba Server types:
This is a list of the main Samba server role.
1.Domain Controller
ADS Domain Controller
Primary Domain Controller
Backup Domain Controller
2.Domain Servers
Active Directory Domain Server
NT Domain Servers
3. Stand-alone Server
This list can be found at Samba's web site:
http://www.samba.org
2a. Basic Samba Stand-Alone File Server:
To setup the Samba server you will need to have root privileges. Go in to the Samba directory and edit the smb.conf file.
# su
# cd /etc/samba
# vi smb.conf
To setup a basic share in Samba you will need the following entrys.
[global]
# The workgroup is going to be setup to your internal networks workgroup or domain.
workgroup = TUX-NET
# Netbios name it going to be the computer name of the Samba server.
netbios name = NOVELL
# Server string is the equivalent of the NT Description field
server string = Linux Samba Server
# Samba Security Setting
security = user
# You may wish to use password encryption. If you are going to be connecting from a windows 9x computer you will not want to enable this option. Windows 2000 and up, you will want to enable the encrypt passwords.
encrypt passwords = yes
# Set local master to no if you don't want Samba to become a master browser on your network. You may want to have this turned off by default.
local master = no
#===== Share Definitions =====
# This part of the smb.conf is where you setup the network share
This will let the the home directory get shared. All users home directory on the computer will show up with if this is added. (Note: You will only be able to access you own home directory by default. Other users directory's will not show up in your network browser unless you have setup the permissions to let you access it. most of the time you will want to comment out this entry.
[homes]
comment = Home Directories
browseable = yes
writable = yes
# Here is a private directory that can only be accessed by tim. (Note: tim will need to have write access to this directory)
[timsdir]
comment = Tim's Share
path = /usr/somewhere/private
valid users = tim
public = no
writable = yes
printable = no
2b. Samba Server User Accounts & Services
Now that the smb.conf file has been setup you will need to add the Samba user account. The Samba user account will tie in with your local Linux account. The password to access the Samba can be setup to use the same or different password than your local account. In the example you will see the -a option, this will tell Samba to add the users account to the smbpasswd.
# smbpasswd -a tim
To change a users Samba password use the same command as above with out the -a option. Now you can start the Samba service.
# /etc/init.d/smb start
To have the Samba service start on boot, use the chkconfig tool:
# chkconfig
|
|
|
|
All times are GMT -5. The time now is 05:42 PM.
|
testparm on mandrake 10.1
# /etc/init.d/smb start
line and I got the message
-su /etc/init.d/smb: no such file or directory
and now I cant get that computer on the Internet even can you tell me how to fix this problem. I am running Slackware 10.1
Regards
David (Newbie, of course)
Wrong!
As soon as I do
My smb.conf seems to have many more entries than the example in the tutorial, and hence I have no way of knowing whether removing any of the addtional entries my smb.conf seems to have, is likely to be detrimental to either machine/the system overall.
It seemed to start well, but that was it.
This isn't meant as a criticism, just how I see it from in front of my monitor! I'm unable to tell if it's just that I'm using a different distro or what.
Though well done to the author for having the "smarts" to be able to even write the tutorial in the first place - I couldn't do it. Just because it hasn't been of any real help to me, doesn't mean that other won't benefit!
regards
John
What you need is "Linux Installation and Getting Started Guide". This is part of the Linux Documentation Project (LDP). Website is: http://www.tldp.org/LDP/gs/node3.html. This gave me the right commands and sequence and eventually I got my Linux box into my home network.
Most importantly, it gave an explanation of VIM, the editor you need to use.
Unfortunately, with Linux, you need to do a lot of reading before anything works. It's basically like Windows 3.1, if you go back that far.
Good luck.
David (semi Newbie now)
vi I can do enough to get by, but I'm not so happy with tldp (one of my "soap box subjects" is documentation).
The collation methods of the tldp, fine, but it's not so good for newbs who need the info put in a form thats straight forward i.e. "plain english". Hence it's my belief that just putting it all in a this, that, the other, etc provides the info, but so do man pages and that format is equally unintelligible.
It's the newbs who need good quality docs the most, those with reasonable "prior knowledge" can always skip the "hand holding" part(s).
Still, if the link gives me the basic stages of what I'm supposed to be doing, it may help some.
Again, many thanks.
regards
John
This thread is to discuss the article titled: Basic Samba Network File Sharing
You only talk about servers: a Samba server (your Linux box I presume) and a Windows server. No clients?
You don't tell us what kind of windows (95,98,xp home, xp pro, some more) you connect to.
After setting up /etc/samba/smb.conf (vi is no problem for me, others: choose 'joe' or another easy editor), I want to connect to my Win XP-home box.
typing litteraly:
$ su
# mount -t smbfs //servername/share /mountpoint -o username=douwe
gives all kind of errors.
I can understand that /mountpoint has to exist on my linuxbox, but what to fill in for //servername/share???
I have another Win98 SE box, that I would like to connect to my linux-box via Samba.
Both Windows-computers and the Linux-box are connected to the internet via a Freesco router, and I can browse the internet on each of them.
I have no idea how to prepare a Windows box for the samba-job.
Please give some indication where to find this.
Indeed: I have more knowledge of Linux than of MsWindows(tm).
PS. also here the command is:
#testparm
Please cdabb, correct this in your story.
I believe that I have to mount the samba share before I can access it in Windows
David