View Single Post
  #1   (View Single Post)  
Old 26th September 2008
bsduser bsduser is offline
Port Guard
 
Join Date: Jun 2008
Location: Toronto
Posts: 12
Default Samba 3.0 problem to setting up private folder - FreeBSD 71-pre

Hello ... I am new in Samba. I have 13 users in my local network, and each of these users own their home folder. what I want to do is to permit each users to have acces to their home folder only, with username and passwd or something like that ... I created as test user "winuser" and I add it in /etc/group as well,

Code:
winuser:*:1012:1012::0:0:Windows Q. User:/home/winuser:/bin/tcsh
and thats what I put in /usr/local/etc/smb.conf
Code:
[global]
workgroup = FREEBSDBOX
netbios name = Share
server string = %h-the-FreeBSD-Samba-Server
security = share
load printers = no
log file = /var/log/samba/log.%m
max log size = 50
passdb backend = tdbsam

[winuser]
comment = %h Windows User Share Directory
path = /usr/home/winuser/Docs
force directory mode = 0777
force create mode = 0777
force user = winuser
force group = winuser
writeable = yes
read only = no
browseable = yes

[public]
comment = %h Shared Public Directory
path = /usr/home/samba/public
force directory mode = 0777
force create mode = 0777
public = no
writeable = yes
read only = no

[Pietro]                          
comment = %h Rackbsd home
path = /usr/home/rackbsd
force directory mode = 0777
force create mode = 0777
public = no
writeable = yes
read only = no
So, as you can see for the user "winuser" I put these line here "force user = winuser" "force group = winuser" but unfortunately I can still join and doing whatever I want with every samba users in winuser home folder ... how come ? whats wrong in my /usr/local/etc/smb.conf ?? perhaps is there another way to do it ??
__________________
OpenSource + Free Thinking + Free Choise = FreeBSD
http://www.openbsd.org/zaurus.html
Edit/Delete Message
Reply With Quote