Suddenly (last 10 days or so) I can't access files in the 'Public' folder over the network, whereas before I could. Significantly, in Thunar when I click 'Browse network' then the name of the system (in this case badgers-mint2) I don't see the files that are there.
I've followed the advice in HowTo: Samba Browsing Problems Checklist at http://forums.linuxmint.com/viewtopic.p ... 46&start=0
I've appended the output of ifconfig, nmap and testparm below. Can anybody see anything wrong or suggest further actions? Thanks
rover@badgers-mint2 ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr 00:15:b7:47:18:51
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::215:b7ff:fe47:1851/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15746 errors:0 dropped:0 overruns:0 frame:0
TX packets:9083 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20722937 (20.7 MB) TX bytes:882706 (882.7 KB)
Interrupt:16 Memory:ffae0000-ffb00000
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:65536 Metric:1
RX packets:743 errors:0 dropped:0 overruns:0 frame:0
TX packets:743 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:92187 (92.1 KB) TX bytes:92187 (92.1 KB)
rover@badgers-mint2 ~ $ sudo nmap -sS -sU -T4 192.168.0.105
sudo: unable to resolve host badgers-mint2
[sudo] password for rover:
Starting Nmap 6.40 ( http://nmap.org ) at 2015-01-25 16:34 GMT
Nmap scan report for 192.168.0.105
Host is up (0.000032s latency).
Not shown: 1993 closed ports
PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds
68/udp open|filtered dhcpc
137/udp open netbios-ns
138/udp open|filtered netbios-dgm
631/udp open|filtered ipp
5353/udp open|filtered zeroconf
Nmap done: 1 IP address (1 host up) scanned in 5.08 seconds
rover@badgers-mint2 ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server (Samba, Linux Mint)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
name resolve order = bcast, host, lmhosts, wins
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
file sharing stopped working [Solved]
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
file sharing stopped working [Solved]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: file sharing stopped working
You have a couple of issues here but ....
You have no shares defined in smb.conf so there is no Public share to access.
Did you create them using samba usershares? To find out post the output if this command:
And then there's this:
There should be a reference to badgers-mint2 in both files.
You have no shares defined in smb.conf so there is no Public share to access.
Did you create them using samba usershares? To find out post the output if this command:
Code: Select all
net usershare info --long
Post the output of these commands:rover@badgers-mint2 ~ $ sudo nmap -sS -sU -T4 192.168.0.105
sudo: unable to resolve host badgers-mint2
Code: Select all
cat /etc/hosts
cat /etc/hostname
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: file sharing stopped working
Hello there Altair4, thanks for the help. In the meantime I've changed the system name to remove the dash. Here's the output. :
rover@badgersmint2 ~ $ net usershare info --long
rover@badgersmint2 ~ $ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 badgersmint2.workgroup
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
rover@badgersmint2 ~ $ cat /etc/hostname
badgersmint2
rover@badgersmint2 ~ $
rover@badgersmint2 ~ $ net usershare info --long
rover@badgersmint2 ~ $ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 badgersmint2.workgroup
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
rover@badgersmint2 ~ $ cat /etc/hostname
badgersmint2
rover@badgersmint2 ~ $
Re: file sharing stopped working
The two files have to match host names.
/etc/hosts should look like this:
Why not just edit /etc/samba/smb.conf and add one at the end of the file:
Then restart samba:
Then
Wait a few minutes after restarting the nmbd daemon or else Windows gets confused.
/etc/hosts should look like this:
But the real problem here is that you have no public share.127.0.0.1 localhost
127.0.1.1 badgersmint2
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Why not just edit /etc/samba/smb.conf and add one at the end of the file:
Code: Select all
[Public]
path = /home/rover/Public
read only = no
guest ok = yes
force user = rover
Code: Select all
sudo service smbd restart
Code: Select all
sudo service nmbd restart
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: file sharing stopped working
@Altair4 - A big thanks, editing smb.conf as per your advice fixed the problem. You're a smart guy. Mind you I'm suspecting you've been using the Krell machine...better watch out for those monsters from the Id!