Help with Samba configuration on FreeBSD

LuckyTaxi

Diamond Member
Dec 24, 2000
6,044
23
81
Here's my current config.
Now if I add the following line under the [web_user] directive I can log on.
'guest ok = yes'

Obviously then anyone with an account on the BSd system can log on. I only want a couple
of users to log on. w/o 'guest ok=yes' it tells me I dont have permission to log on!

I made sure I created a password utilizing smbpasswd to create my password and that works
fine with 'guest ok = yes' added.

=================================================
[global]
workgroup = sacred-heart
log file = /var/log/log.%m
max log size = 50
socket options = TCP_NODELAY
dns proxy = no
load printers = yes
os level = 20
server string = Students' Web Server
encrypt passwords = yes

[web_dir]
comment = Students' Web Stuff
path = /usr/local/www/data/Students
valid users = ssen jbennett
writeable = yes
public = yes
read only = no
browseable = yes
==========================================
 

LuckyTaxi

Diamond Member
Dec 24, 2000
6,044
23
81
nothing helpful in the log files.

i CAN log in as 'root' though!

Ok ... I took out 'guest ok = yes' and now I can log in as anyone who has an account on the BSD box?!!!!!

How can I restrict it to allow only a couple of users.

I added 'valid users = username' and that didnt work. I could still log in as user B
when I only added user A on that line.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
I think that if you want to restrict users, you don't want "public = yes". Try setting that to no instead.