LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2008, 03:01 AM   #1
jennifer.ayag
LQ Newbie
 
Registered: Nov 2008
Posts: 16

Rep: Reputation: 0
Help with regards to samba file sharing/networking


Hello there!

Sorry if this thread is as similar as the one I've posted last month. I just to make my queries detailed.

We have 20 computer at the office.....10 are ubuntu hardy and 10 are windows xp. I want to be able to share respective files of the computers. I've installed samba at one of the computers for trial purpose.

I want to know if how can I configure samba to work with the network. As of the moment the ubuntu computers can see windows computers and can access/write on the winxp computerd but unfortunately the windows computers cannot connect to the ubuntu computers.

Can anyone please show me how to configure samba either in GUI or command line?

Thanks in advance.
 
Old 12-04-2008, 03:58 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
There is a file in /etc/samba (or there should be) called smb.conf that you can change so that the Windows machines should be able to access the Linux machine's share.

Here's my smb.conf. It allows the specific windows machines listed in the

Code:
hosts allow = 10.0.0.1 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.6 10.0.0.7 10.0.0.8 10.0.0.9 10.0.0.10 10.0.0.11 10.0.0.11
line to access itself. Take a peek and change relevant options in yours - it should be more or less obvious:

Code:
[global]

netbios name = development
workgroup = WORKGROUP
security = share
log file = /var/log/samba.log 
log level =  1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384 
wins support = yes 
domain logons = no
logon drive = f: 
logon home = \\stefan\%U
os level = 99 
preferred master = yes
local master = yes
hosts allow = 10.0.0.1 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.6 10.0.0.7 10.0.0.8 10.0.0.9 10.0.0.10 10.0.0.11 10.0.0.11
encrypt passwords = yes
browseable = yes
lanman auth = yes 
lm announce = yes 

[shared]
path = /mnt/win/shared
guest ok = yes 
writeable = yes 
create mode = 0666 
directory mode = 0777
browseable = yes
public = yes
Of course, you'll also need to change

Code:
path = /mnt/win/shared
to whichever folder you want available on the XP machines, from that Linux machine.

Once this is done, copy the /etc/samba/smb.conf file to /var/local/samba/lib

Then restart samba

Do as root:

Code:
# killall smbd
# killall nmbd
# smbd -D
# nmbd -D
WARNING: This is probably not secure - the above file allows any XP machine on my LAN which has one of the listed IP addresses to connect to it, and to read and write (and delete) files in my /mnt/win/shared folder. No passwords are required, so it might be risky, depending on your environment.

Hope this helps...
 
  


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
File Sharing Networking Server mailviruskid Linux - Networking 2 04-29-2006 04:35 PM
Suse 10.0 File Sharing/networking, How To??? pinguino80 Linux - Networking 3 02-21-2006 10:46 AM
networking notebook to desktop file sharing linuxdork Linux - Networking 5 02-23-2005 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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