LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding Samba file server (https://www.linuxquestions.org/questions/linux-newbie-8/adding-samba-file-server-4175501659/)

NotionCommotion 04-14-2014 09:31 AM

Adding Samba file server
 
I previously successfully added a Samba file server and was able to access it via a Windows 7 PC.

I've since rebuilt the server, and now have it connected wireless to my home network. I've repeated my previous steps, however, cannot view the server using the Windows PC.

Iptables is off, and selinux is in permissive mode.

I wonder if it has to do with these two lines in /etc/samba/smb.conf. I've tried just about every permutation such as wlan0/eth0, 192.168.0./24, etc, etc. My routers IP is 192.168.0.1 and the Windows PC is 192.168.0.100.
Code:

interfaces = lo wlan0 192.168.0.201/24
hosts allow = 127. 192.168.0.

Could it have anything to do with being connected wireless? I wouldn't think so.

What steps could I take to troubleshoot?

Thank you

Code:

[root@desktop var]# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:97334 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97334 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15560654 (14.8 MiB)  TX bytes:15560654 (14.8 MiB)

wlan0    Link encap:Ethernet  HWaddr B8:76:3F:69:31:95
          inet addr:192.168.0.201  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::ba76:3fff:fe69:3195/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:106042 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35617 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18404605 (17.5 MiB)  TX bytes:16646470 (15.8 MiB)

[root@desktop var]#


onebuck 04-14-2014 09:42 AM

Member Response
 
Hi,

Look at LQs' : Setting Up a Network Printer using CUPS

NotionCommotion 04-14-2014 10:05 AM

Thanks Gary,

I read your suggested LQ post about printers, and don't see how it is relevant.

Any other suggestions where I should start troubleshooting? Could I view the samba file directory via Linux to ensure it is available?

Thank you

dolphin_oracle 04-14-2014 10:11 AM

I would concentrate on the share definitions in samba.conf. make sure the share is listed as browseable, and that the workgroup for the share matches the workgroup for the PC trying to access it.

occasionally I've seen windows pc's not find a samba/windows share until you access the share directly by address/sharename in one of the windows address bars.

onebuck 04-14-2014 03:36 PM

Member Response
 
Hi,


Quote:

Originally Posted by NotionCommotion (Post 5152307)
Thanks Gary,

I read your suggested LQ post about printers, and don't see how it is relevant.

Any other suggestions where I should start troubleshooting? Could I view the samba file directory via Linux to ensure it is available?

Thank you

That link will give good general references to setting up a network printer, server & clients.

NotionCommotion 04-14-2014 09:29 PM

Quote:

Originally Posted by dolphin_oracle (Post 5152311)
I would concentrate on the share definitions in samba.conf. make sure the share is listed as browseable, and that the workgroup for the share matches the workgroup for the PC trying to access it.

occasionally I've seen windows pc's not find a samba/windows share until you access the share directly by address/sharename in one of the windows address bars.

I added the following to my smb.conf file.
Code:

[sharedrepo]
comment = shared-directory
path = /home/test
public = no
valid users = test, @WORKGROUP
writable = yes
browseable = yes
create mask = 0777
create mode = 0777
directory mode = 0777
share modes = yes

You might be right about the PC workgroups. I've never used them before, and when I previously connected, didn't have one configured, so I don't know for sure if they are required. Kind of screwed up trying to test. Took my day job corporate work computer and added a workgroup, and when I rebooted, my username is now German and my password no longer works :(

Any suggestions, hints, hunches, and/or firm advice is very much needed and very much appreciated.

Thank you

NotionCommotion 04-15-2014 10:14 AM

Quote:

Originally Posted by dolphin_oracle (Post 5152311)
occasionally I've seen windows pc's not find a samba/windows share until you access the share directly by address/sharename in one of the windows address bars.

Thanks Dolphin Oracle, that was my problem. Now I have firewall problems :( Since it is not related, I will post a new question.


All times are GMT -5. The time now is 07:23 AM.