LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2004, 11:35 PM   #1
aethiolas
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
Samba Newbie


Ok, so totally newb to linux. I'm using Mandraken 10.1 and KDE(b/c I know nothing of the command line interface). Basically I'm just trying to replace windows and learn about linux some. Anyway, I have two more windows boxes on my home network, an XP and a 98. I've been told that Samba can connect to these so I can pull files off of them but I have absolutely no idea how to use Samba. Is there a tutorial somewhere online or can someone give me the run-down? I went the Configure Your Computer and Mount Points and used search for Servers but nothing happened. I know the network works fine b/c I can boot back into XP and it works great so I know there's no problem, just gotta get used to linux. Thanks in advance.
 
Old 11-23-2004, 12:20 AM   #2
jmajor
Member
 
Registered: Nov 2004
Location: Australia
Distribution: Fedora, Ubuntu
Posts: 55
Blog Entries: 2

Rep: Reputation: 17
Grab a terminal window. Should be somewhere like "K->utilities->terminal(konsole)".

use the following commands

cd /mnt

mkdir somename

mount -t smbfs -o username=windowsuser //windowsmachine/sharename somename

somename should be some name that is meaningful to you.
windowsuser should be a username on the windows machine or "guest".

you should now see your windows share as a subdirectory of /mnt called somename.
 
Old 11-23-2004, 05:44 AM   #3
montylee
Member
 
Registered: May 2003
Location: India
Distribution: Ubuntu 7.04, Fedora Core 9
Posts: 168

Rep: Reputation: 30
Just verify that you have samba installed by issuing the following command:

# rpm -q samba
or
# rpm -qa |grep samba

If you don't have it then install the RPMs from the Cds.

After that, login with root permission and enter the following commands:
# /etc/init.d/smb start
# mkdir /mnt/junk
# mount -t smbfs -o username=windowsuser //windowsmachine/sharename somename

This would mount ur windows share.

For mounting Linux shares on Windows, you need to modify the /etc/samba/smb.conf file.
Read the smb.conf man page for details.

After you have added your share to the smb.conf file, run the following:
# testparm
Add a new samba user:
# smbpasswd -a username
This username should be an existing Linux username.

# /etc/init.d/smb restart

To view samba shares:
# smbclient -L localhost -U username

Now, in Windows open Start->Run and type the following:
\\linux-ip-address\sharename
Now you can access your linux shares.

All the best!!!!!!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 newbie westverg Linux - Networking 2 10-04-2005 06:08 AM
Newbie-Samba help dyn0myte Slackware 4 07-27-2005 10:42 PM
Samba Newbie !!! burki Linux - Software 2 03-25-2005 07:58 PM
Newbie Samba help MasterCephus Linux - Newbie 9 08-29-2004 06:42 PM
!!!!!!! newbie needs SaMBa help !!!!!!!! spaztic_fury Linux - Networking 1 11-02-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration