Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-25-2011, 06:04 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
Setting up Samba... (Newbie! Kinda)


I am quite new to Linux, we've done some of it at school (basic shell scripting and such). I'm using Ubuntu 11.04, I'm very impressed thus far but I've been trying to get Samba set up for the better part of 8 hours now with no luck.

(I'm trying to shift over my old Vista machine to Ubuntu while mimicking what I was doing with it as closely as possible - with the goal of sort of learning how to use Linux!)

Using Personal File Sharing I was able to see the shared folder in Windows, but unable to access it.

Apparently though this is not the way to gain access to the samba share from windows, so what should I set the linux permissions to before continuing on with samba? I am familiar with chmod - shouldn't have issues getting that right.

But what is my smb.conf supposed to look like, and should an additional user be created for the windows box to access the share?

At the moment I can only access the ubuntu machine using its IP and no shares are visible.

server string = Samba Server Version %v
encrypt passwords = No
map to guest = Bad User
obey pam restrictions = Yes
guest account = johan
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
guest ok = Yes

comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

comment = Printer Drivers
path = /var/lib/samba/printers

comment = Shares
path = /home/johan/Share
read only = No
browseable = No
Any help would be much appreciated! :>
Old 08-25-2011, 06:14 AM   #2
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 78
Have a look at the S.W.A.T. tool. This makes configuring samba a piece of cake

apt-get install swat xinetd

Have a read here:

** EDIT **
But what is my smb.conf supposed to look like, and should an additional user be created for the windows box to access the share?
yes you need a user account set up in samba, smbpasswd -a <your_username>
will add your user account to the samba share.

Last edited by bret381; 08-25-2011 at 06:18 AM.
Old 08-25-2011, 03:27 PM   #3
LQ Newbie
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hey man, thanks, got it working in the end.

SWAT was just making things harder - couldn't get it to listen on port 901 (even though it was specified!)

Don't know what fixed it but I basically ran through my entire smb.conf fiddling and things are working fine now. Thanks though.


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 mount point failing on boot - kinda lenny8088 Linux - Networking 2 06-22-2007 08:24 PM
kinda newbie... lol SCARHARDT Member Intro 1 05-14-2007 06:10 PM
newbie in need of help setting up a samba server roddyguk Linux - Software 4 05-05-2006 01:20 PM
basic proftp questions - kinda works kinda don't case1984 Linux - Newbie 4 11-06-2003 12:29 AM
Maybe better off in the newbie section...but it's kinda general...sort of...maybe.. Valael Linux - General 2 10-20-2002 11:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration