LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-19-2012, 04:28 PM   #1
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Rep: Reputation: 24
Setting up Samba for file sharing


I am using a Full install of Puppy Linux 5.2.8. I just installed samba 3.5.6 lucid. Can someone please help me set up samba or direct me to an easy to follow step by step guide on how to set it up so that I can share files with my Mac and PC and learn something along the way?

I see so many guides out there to set up Samba but I am not sure which one to use. I would really like something that is geared towards newbies to Linux or maybe someone on this form can guide me?

Thanks!
 
Old 01-19-2012, 04:45 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi rmcellig,

Here are the documentations that will help you:

1. http://puppylinux.org/wikka/Samba (Parent Link)
2. http://www.murga-linux.com/puppy/viewtopic.php?t=60981 (Links you should look at)
3. http://www.murga-linux.com/puppy/viewtopic.php?t=60836 (Links you should look at)
 
Old 01-19-2012, 04:52 PM   #3
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
Thanks! I already saw those links and took a look at them and got totally confused. I'm sorry but I need a step by step guide that is drop dead simple to use if there is such a thing. I don't mind installing Samba in stages. I am trying this on my test PC so that once I do install and configure Samba onece, I should be good to go on the other computers on my LAN.
 
Old 01-19-2012, 05:12 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

You're welcome.

Could you please let us know which part in those links you are finding confusing. Those links explain how to setup samba on puppy linux step by step. I can give you pointers. I am not sure what type of step by step guide you are looking for.

Have a look at the following and it might be helpful:

1. Make sure that you have got samba package installed.
2. Take a backup of smb.conf file and edit it as follows:
Code:
	workgroup = SMBGROUP /* You can define workgroup for your samba server */
	server string = My Samba Server /* Optional. Like I specified My Samba Server you can specify something like Puppy Samba */
	
	netbios name = MYSERVER /* Hostname of your server. Again optional if you don't want to define comment it out */
	
	interfaces = lo eth0 eth1 192.168.1.0/24 172.168.1.0/24 /* Interfaces on which samba will be listening on */
	hosts allow = 192.168.1.0/24 /* Define the network that you want to allow to access your samba server */


# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should 
# use either tdbsam or ldapsam. smbpasswd is available for backwards 
# compatibility. tdbsam requires no further configuration.

	security = user /* Keep these settings as it is */
	passdb backend = tdbsam /* Keep these settings as it is */

[common]
	comment = common share
	path = /common
	browseable = yes
 	valid users = testuser
 	writable = no
My share name is [common]. Path is /common on my samba server. It is browseable. Valid users are the users who are allowed to access this share. If you want to allow a group of people to access the share then put valid users = @groupname

You can also specify read list = username or @groupname (user/group which you want to allow read only access) write list = username or @groupname (user/group which you want to allow read/write access)

3. Save the configuration file and run testparam to check smb.conf file syntax.
4. Make sure you allow your firewall to allow samba traffic (ports 139,445,137 and 138)
5. Set up users account for samba by running smbpasswd -a <username> /* This command is used to add the users who are allowed to access samba with the password mentioned after running smbpasswd */
6. Restart smb and nmb services.
7. Access samba share either via command line (by mounting it) or via explorer.
 
Old 01-19-2012, 05:23 PM   #5
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
I just installed samba 3.5.6 lucid. I am slowly starting to understand it. Takes me a while but once I see how it works, I am OK. I created a directory in my root folder called srv and inside that I created a folder called Downloads. How can I make sure that I have the correct permissions set for the Downloads folder? I can post back the results here.
 
Old 01-19-2012, 05:58 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Run the following command:

Code:
ls -l /srv
and it should show the output similar to:

Code:
drwxrw-rwT. 2 root root 4096 Jan  8 12:57 Downloads
 
Old 01-19-2012, 07:44 PM   #7
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
This is what the output looks like:

sh-4.1# ls -l /srv
total 4
drwxrwxrwt 2 root root 4096 2012-01-19 17:14 Downloads
sh-4.1#
 
Old 01-20-2012, 01:42 AM   #8
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

The output looks fine to me.
 
  


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
problems setting up file sharing on KDE in Backtrack 4 R2 bitbomb Linux - Software 5 04-06-2011 05:34 PM
Setting up printer and File sharing ONLY on Local Network ngjunkie0011 Linux - Networking 5 10-10-2008 05:10 PM
File sharing over Samba mapster Mandriva 2 03-16-2005 12:05 PM
File sharing using Samba adammthompson Linux - Networking 4 12-02-2004 09:01 PM
Sharing via samba & pre-setting Cavenaghi Linux - Wireless Networking 0 04-14-2004 06:18 AM

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

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