LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2007, 11:42 AM   #1
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
[Samba] Setting up a proper smb.conf


Hi,
I have a problem with samba
This is my smb.conf
Code:
localhost oldsko0l # cat /etc/samba/smb.conf
[global]
        encrypt passwords = yes
        security = share
        wins support = yes
        workgroup = APENBOS
        guest ok = yes
        
[public]
        path = /home/oldsko0l
        read only = no
Now, I'm working on my windowspc (windows vista)
& I connect to my linuxpc, I don't have to give in a password, that's good.

I can go in the map /home/oldsko0l & /home/oldsko0l/Desktop,
but I can't go in the map /home/oldsko0l/amsn_received ...

What I want is to set smb.conf so that guests (my windowspc) have all permissions to delete, move, create, adjust,... files

& I want my smb.conf to be as simple as possible, I don't need security I guess (it's just my homenetwork)

So what arguments do I have to add to my smb.conf?

Thanks!
 
Old 11-04-2007, 02:29 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Since the share you are sharing is in your home directory, you may want to use "security = user" instead. However, the only thing I noticed about your smb.conf file is that I think I would put the "guest ok = yes" entry in the definition for the share instead of the global section.

For a globally writable share, you would normally change the permissions with "chmod a=rwxt". However, this would be a bad idea for a home directory. If you only want to access the amsn_recieved directory, you could define the share path and change the permissions on that directory.

Otherwise, create a /home/amsn_recieved directory and change it's permissions.
Code:
sudo mkdir /home/amsn_recieved
chmod a=rwxt /home/amsn_recieved
Then edit smb.conf:
Code:
[amsnrec]
        path = /home/amsn_recieved
        read only = no
        guest ok = yes

Last edited by jschiwal; 11-04-2007 at 02:45 PM.
 
  


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
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
[HELP] Setting in Samba -- smb.conf swmok Linux - Server 2 09-14-2006 03:47 AM
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 12:54 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM
Samba start up questions...Setting up share files and smb.conf file Xeroku Linux - Newbie 1 04-17-2003 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:42 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
Open Source Consulting | Domain Registration