r0ck
04-16-2007, 01:47 PM
I've migrated from an old Centos to SLES10, and I'm trying to setup Samba again. I'm able to connect to my 2 partitions, but there's no authentication ! Just goes straight to the folders . Can someone take a look at my smb.conf and tell me what's wrong here. I have kind of a mishmash of the old Centos and the smb.conf settings that were part of SLES10.
[global]
workgroup = SmbTest
server string = Samba Test
encrypt passwords = True
security = user
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain master = No
local master = Yes
preferred master = No
os level = 65
dns proxy = No
name resolve order = lmhosts host bcast
# bind interfaces only = True
hosts allow = 192.168.
debug level = 1
create mask = 0644
directory mask = 0775
level2 oplocks = True
read raw = no
write cache size = 262144
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
# winbind use default domain = no
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
[data1]
comment = Master
path = /data1
read only = Yes
[data3]
comment = Backup
path = /data3
read only = Yes
I want 2 things actually.
1) For anyone to connect to my IP to be prompted a login/password, which if located in the smbpasswd file and would grand them access. Right now this is not happening, so anyone can just connect to the IP and get access.
2) I'v noticed that despite the user closing the session on their end (like closing Windows Explorer) the PID remains open, so if say someone is using a public PC and leaves the station without logging off (but closing the WinExplorer) another person can just open WinExplorer and they take that person's samba session and can browse the files on my machine
[global]
workgroup = SmbTest
server string = Samba Test
encrypt passwords = True
security = user
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain master = No
local master = Yes
preferred master = No
os level = 65
dns proxy = No
name resolve order = lmhosts host bcast
# bind interfaces only = True
hosts allow = 192.168.
debug level = 1
create mask = 0644
directory mask = 0775
level2 oplocks = True
read raw = no
write cache size = 262144
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
# winbind use default domain = no
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
[data1]
comment = Master
path = /data1
read only = Yes
[data3]
comment = Backup
path = /data3
read only = Yes
I want 2 things actually.
1) For anyone to connect to my IP to be prompted a login/password, which if located in the smbpasswd file and would grand them access. Right now this is not happening, so anyone can just connect to the IP and get access.
2) I'v noticed that despite the user closing the session on their end (like closing Windows Explorer) the PID remains open, so if say someone is using a public PC and leaves the station without logging off (but closing the WinExplorer) another person can just open WinExplorer and they take that person's samba session and can browse the files on my machine