Can any kind soul out there tells me what is wrong with my setup...I can see SAMBA in my windows XP-SP1 but I can not connect. I disabled ZoneAlarm just in case, yet that did not help.
1. My /etc/samba/smb.conf
Code:
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = HOME
# server string is the equivalent of the NT Description field
server string = Samba Server
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.
hosts allow = 192.168.1.
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes
# This option tells cups that the data has already been rasterized
cups options = raw
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
# log file = /var/log/samba/log.smbd
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
#============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[homes]
comment = Home Directories
browseable = no
writable = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
[media]
path = /mnt/media
public = yes
writable = no
[work]
path = /mnt/work
public = yes
writable = yes
2. Testing the configurations
Code:
/usr/bin/testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[media]"
Processing section "[work]"
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
workgroup = HOME
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
hosts allow = 192.168.1.
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[media]
path = /mnt/media
guest ok = Yes
[work]
path = /mnt/work
read only = No
guest ok = Yes
3. I added someuser
Code:
smbpasswd -a someuser
4.
/mnt/media and
/mnt/work are owned by
someuser and I chmod them 777!!!
5. I'm not an expert in SELinux .....So I disabled it...
Code:
/usr/sbin/setsebool -P smbd_disable_trans 1
6. I opened the required ports
Code:
/sbin/iptables -A INPUT -p tcp -s 192.168.1.2 --sport 137:139 -j ACCEPT
/sbin/iptables -A INPUT -p udp -s 192.168.1.2 --sport 137:139 -j ACCEPT
/sbin/iptables -A INPUT -p tcp -s 192.168.1.2 --sport 445 -j ACCEPT
/sbin/iptables -A INPUT -p udp -s 192.168.1.2 --sport 445 -j ACCEPT
7. My /etc/sysconfig/network
Code:
NETWORKING=yes
HOSTNAME=LaptopFC4.localdomain
8. My /etc/hosts
Code:
127.0.0.1 LaptopFC4.localdomain LaptopFC4
9. started SAMBA
Code:
/sbin/service smb start
And when I click on "samba server(laptopfc4)" in "My Network Places" I receive this message
"Laptopfc4 is not accessible. You might not have permission....."....
So I'm not getting the user/pass box. Where is the problem??!!