LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-21-2004, 02:10 PM   #1
ninmonkeys
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10
Posts: 28

Rep: Reputation: 15
creating a safe samba config


I have the dir
Code:
$ ls -ld /shared/
drwxr-xr-x  2 jake users 112 2004-11-21 13:36 /shared/
That I want "jake" to be able to write to.

On my lan, which all have ip's of 192.168.1.xxx I want to allow read only access to this directory.

So I need to 1) allow only lan IP's to connect to my computer, and 2) allow read only access to my directory to win computers on the network.

I'm confused by the output of "testparm"
Code:
[global]
        workgroup = HOME
        server string = Jake Linux Server
        passdb backend = tdbsam
        log file = /usr/local/samba/var/log.%m
        max log size = 50
        dns proxy = No
        hosts allow = 192.168.1.

[data]
        comment = Data
        path = /shared
        guest ok = Yes
But when I check my config file, I get
Code:
[data]
   comment = Data
   path = /shared
   read only = yes
#syn for guest ok
   public = yes
1) I believe I have this solved with my hosts allow line, correct me if I am wrong.

2) Why Does the testparm not show read only? This worries me that guest users will be able to edit my files.

After I get this fixed, I want to later add a subdirectory that someone on my LAN can copy a file to, so I can access it. (ex: /shared/public ) that has read/write access either with a password or guest, it shouldn't matter since I only allow people on my LAN to write to my computer.

Any advice would be greatly appreciated.

thanks
--monkey
 
Old 11-21-2004, 04:47 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Have you restarted the smbd, and nmbd? You'll have to do that after any changes you make to the smb.conf for them to take effect.
good luck.
 
Old 11-22-2004, 04:09 PM   #3
ninmonkeys
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10
Posts: 28

Original Poster
Rep: Reputation: 15
1) How do you restart it? I wrote a script that the howto toldhow to start samab, but not how to end/restart it. I haven't started it yet because of not knowing how to stop it besides rebooting, and

2) I'm confused by the output of testparm. Why Does the testparm not show read only? This worries me that guest users will be able to edit my files.
 
Old 11-22-2004, 05:03 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
1) smbd stop
nmbd stop

smbd start
nmbd start

2) I think you have to restart the daemons for the changes to take effect.

good luck.

Last edited by Peacedog; 11-22-2004 at 05:04 PM.
 
  


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
Bah, Config GRUB to boot in Windows safe mode evera Linux - Distributions 3 10-10-2005 04:57 PM
X config tool not creating X config file Pingus Debian 3 05-02-2005 11:49 AM
is this kernel .config safe for system? rgiggs Slackware 14 07-20-2004 01:20 PM
Makin the use of Samba safe herc Linux - Software 1 01-29-2004 02:21 PM
creating mount points and is the data safe if i change system JMK Linux - Newbie 4 01-22-2004 09:57 AM

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

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