LinuxQuestions.org
Review your favorite Linux distribution.
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 06-17-2007, 06:04 AM   #1
Scott65
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
How to make Linux as unsecured as Windows for file sharing


This is my first post and I am a Linux newbie. Did get FC6 installed and played around with the configuration and read many web pages trying to understand how to make this work for my application, but it is time to throw in the towel and see if I can get some help.

I am trying to set-up a simple home network that anyone on the network can freely create, access, modify or delete files in my Linux shared folders, just like Windows file sharing. No firewalls, no passwords, no domain controllers.

I have played with the smb.conf file for a week, trying different example versions, combining them, modifications… and no success. Before I erase the hard drive and buy another copy of windows XP, I would like to give Linux anther chance. If anyone has a suggestion or a smb.conf file I could use, that would be great.

Thanks.
 
Old 06-17-2007, 06:31 AM   #2
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
Code:
workgroup = WORKGROUP
server string = Samba Server
security = user
guest account = pcguest
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY
interfaces = 192.168.150.1/24
local master = yes
os level = 33
domain master = yes
preferred master = yes
dns proxy = yes
Replace "intefaces = ..." with yours, and run
Code:
testparm
 
Old 06-17-2007, 09:18 AM   #3
strick1226
Member
 
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, OS X, SLES, Ubuntu
Posts: 327

Rep: Reputation: 63
And, if you're new to linux, don't forget either to restart the samba service after modifying smb.conf, or simply reboot.

Glad you were willing to give linux a try. Hang in there--it's a very rewarding operating system, and so much more customizable (and, thus, complex) than Windows.
 
Old 06-18-2007, 08:58 AM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 1,944
Blog Entries: 7

Rep: Reputation: 274Reputation: 274Reputation: 274
I just fiddled with my smb.conf until I got it to do what I wanted (which is what you want).

I wanted to share a folder named /home/isaackuo/shared/. This folder is owned by user isaackuo. The changes to smb.conf were:

Set "security" to "share".

Create an entry at the bottom to configure the /home/isaackuo/shared/ share.

Made it to only allow guest logins, with the guest account set to "isaackuo".

After making these changes, I had to restart samba. I'm not sure how you restart samba in Fedora.

Of course, setting the security like this is practically like having no security at all. Sure, the "only" thing an attacker can do is trash/infect/modify/steal the files in my shared folder, but that includes pretty much all the files I care about! Obviously, I work hard to ensure my LAN's borders are secure, because once inside the borders all heck can break loose.

If I ever add wireless to my LAN, I'm going to have to figure out how to do Windows shares more securely.
 
Old 06-18-2007, 09:02 AM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 1,944
Blog Entries: 7

Rep: Reputation: 274Reputation: 274Reputation: 274
Oh--additionally...I can sympathize with your struggle. I've never found samba configuration easy. In contrast, nfs configuration for sharing files between Linux systems was dead simple.

Every bit of documentation about SAMBA I've ever seen tells you to use "user" security instead of "share". All documentation seems to assume you're using "user" security. But I never got it to work the way I wanted with "user" security. I always gave up and reverted back to the "share" security method I could get working.
 
  


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
How file sharing on linux to windows cbcats Linux - Networking 6 01-25-2005 02:58 PM
File Sharing Windows and linux together ? maxboost Linux - Networking 4 12-30-2004 12:24 PM
Linux-Windows file sharing ar1 Linux - General 6 01-22-2004 11:54 PM
re: windows and linux file sharing rahul_jain_9684 Linux - Software 4 07-28-2003 02:42 AM
windows and linux file sharing dpreed7 Linux - Networking 4 04-01-2002 07:08 AM

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

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