LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba NOT allowing access (https://www.linuxquestions.org/questions/linux-software-2/samba-not-allowing-access-499787/)

cucolin@ 11-08-2006 11:48 AM

Samba NOT allowing access
 
Friends, I have tried very hard for the past week and a half to set up this Samba thing with no luck, about to give up! this is my smb.conf:

#Global Parameters
workgroup= LAB
netbios name=
#security= SHARE
encrypt passwords= yes

[homes]
read only= no
browseable= no

[music]
path= /data/mp3
browseable= yes
public=yes
write list= xrgm,gts18,rguisbert

[everyone]
path= /data/everyone
read only= no
browseable= yes

[apps]
path= /data/apps
browseable= yes
valid users= @admins, root, rguisbert
write list= @admins, root, rguisbert

I have being following the instructions from http://www.samba.netfirms.comwhich
gives simple process on setting up samba.

This is the error that I keep getting when trying to access Samba server:

\\XubuntuLab is not accessible. You might not have permission to use this network resource.
Network path was not found.

Im in a Computer lab in which all pcs are under the LAB workgroup name. What should I do? We are a non-profit org trying to quit Windows in order to save some $ by using Linux, but everything seems to be failing at this point. Thanks for any help....

macemoneta 11-08-2006 12:29 PM

Have you allowed ports 137,138,139 and 445 through your firewall? For example, with IPTABLES:

Code:

-A INPUT -p tcp -m tcp --dport 137:139  --syn -j ACCEPT
-A INPUT -p udp -m udp --dport 137:139        -j ACCEPT
-A INPUT -p tcp -m tcp --dport 445      --syn -j ACCEPT
-A INPUT -p udp -m udp --dport 445            -j ACCEPT


cucolin@ 11-08-2006 03:37 PM

This is what I have:

xrgm@XubuntuLab:/$ sudo netstat -plant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2759 0.0.0.0:* LISTEN 4188/python
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 5312/smbd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4936/cupsd
tcp 0 0 127.0.0.1:4409 0.0.0.0:* LISTEN 4185/hpiod
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 5312/smbd
tcp 0 1 10.0.3.238:3361 64.186.240.114:80 SYN_SENT 4303/freshclam
tcp 0 0 127.0.0.1:4409 127.0.0.1:1176 ESTABLISHED4185/hpiod
tcp 0 0 127.0.0.1:1176 127.0.0.1:4409 ESTABLISHED4188/python
tcp6 0 0 :::22 :::* LISTEN 4680/sshd

How do you add those values to the IP tables? Thanks..

macemoneta 11-08-2006 04:18 PM

The Ubuntu Firewall Documentation has the information you need.

cucolin@ 11-09-2006 03:34 PM

I still get the same error message and this what I have after following your steps:

xrgm@XubuntuLab:~$ sudo netstat -plant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:4714 0.0.0.0:* LISTEN 4027/hpiod
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 7442/smbd
tcp 0 0 127.0.0.1:4177 0.0.0.0:* LISTEN 4030/python
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4761/cupsd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 7442/smbd
tcp 0 0 127.0.0.1:4714 127.0.0.1:3216 ESTABLISHED4027/hpiod
tcp 0 0 127.0.0.1:3216 127.0.0.1:4714 ESTABLISHED4030/python
tcp 0 1 10.0.3.238:2688 209.8.40.140:80 SYN_SENT 4145/freshclam
tcp6 0 0 :::22 :::* LISTEN 4523/sshd

I also tried using Firestarter and I did Allowed service:
Samba(SMB) on port 137-139 445 For everyone

Please help me I'm NOT giving up!!


All times are GMT -5. The time now is 10:11 AM.