Regarding samba file sharing,
I decided to start from beginning, install the release iso.
Then, I remove mate-system-tools,, just so not affected by it.
Code: Select all
lmdexfce32 wayne # apt-cache policy mate-system-tools
mate-system-tools:
Installed: (none)
Candidate: 1.4.0-1+wheezy
Version table:
1.4.0-1+wheezy 0
700 http://packages.linuxmint.com/ debian/import i386 Packages
Now, I go back to use old method, classical share, by making changes directly to smb.conf file , this should reduce various possible issues so as to help figure out where could be the samba sharing issue.
I recorded here my steps, so that anyone interested in can duplicate.
1. save the smb.conf to smb.bak
Code: Select all
wayne@lmdexfce32:~$ sudo cp /etc/samba/smb.conf /etc/samba/smb.bak
2. edit the smb.conf
Code: Select all
wayne@lmdexfce32:~$ sudo nano /etc/samba/smb.conf
to make it simple, I would only create a public share folder, and everyone will have the write/read/change rights.
probably the simplest of all, however it is not secure, it is useful for quick test, in fact I am using this method for many Debian based installation and even continue to use it.
Type the following, or copy all in the code tag and paste them to the end of the smb.conf file
Code: Select all
[Public_Share]
comment = a Public_Share folder for guest with read/write/ modify rights
path = /mnt/Public_Share
public = yes
read only = no
then ext nano ( ctrl-x,y,enter)
3. create the Public_Share folder under /mnt and change mode
Code: Select all
wayne@lmdexfce32:~$ sudo mkdir /mnt/Public_Share
wayne@lmdexfce32:~$ sudo chmod 777 /mnt/Public_Share
4. now, restart samba service
Code: Select all
wayne@lmdexfce32:~$ sudo /etc/init.d/samba restart
[ ok ] Stopping Samba daemons: nmbd smbd.
[ ok ] Starting Samba daemons: nmbd smbd.
5. wait for a while, say 1-2 minutes to let network settle down
then in win7/linux computer, browse network, look for the unofficial-lmde-xfce computer, the Public_Share folder should appear.
sometime, for whatever reason due to network, you may need to log out linux computer and login, it usually work for my testing.
for winOS, at time, you might need to restart.
I did this testing a few times, and I think there is no problem to have simple file sharing ( full write/read/change rights) for all users, no need to add user, no need to change password etc.
6. what is the issue left?
it does not survived reboot, eventhou samba got started but error out.
these errors appear in /var/log/samba
all three files have similar errors
I copy a few here..
[2013/01/20 13:09:09, 0] nmbd/nmbd.c:861(main)
nmbd version 3.6.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/01/20 13:09:09, 0] lib/interface.c:520(load_interfaces)
ERROR: Could not determine network interfaces, you must use a interfaces config line
[2013/01/20 13:13:05, 0] nmbd/nmbd.c:861(main)
nmbd version 3.6.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/01/20 13:15:09, 0] nmbd/nmbd.c:66(terminate)
Got SIGTERM: going down...
[2013/01/20 13:15:55, 0] nmbd/nmbd.c:861(main)
nmbd version 3.6.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/01/20 13:15:55, 0] lib/interface.c:520(load_interfaces)
ERROR: Could not determine network interfaces, you must use a interfaces config line
[2013/01/20 13:18:54, 0] nmbd/nmbd.c:861(main)
[2013/01/20 17:21:53, 0] winbindd/winbindd.c:1346(main)
winbindd version 3.6.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/01/20 17:21:53.369478, 0] lib/interface.c:520(load_interfaces)
ERROR: Could not determine network interfaces, you must use a interfaces config line
[2013/01/20 17:37:23, 0] winbindd/winbindd.c:1346(main)
winbindd version 3.6.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/01/20 17:37:23.772423, 0] lib/interface.c:520(load_interfaces)
ERROR: Could not determine network interfaces, you must use a interfaces config line
Not able to solve it yet.
however it might be related to samba/network interface...
may be samba could not see something on interface and decided to quit..
each time, when I do /etc/init.d/samba restart, the Public_Share will appear to others...
one step closer.. i think..
EDIT: found this work around,
http://ubuntuforums.org/showthread.php?t=1346508
copy this script below,
Code: Select all
#!/bin/sh
# Don't care about loopback
if [ "$IFACE" = "lo" ]; then
exit 0
fi
/etc/init.d/samba restart
put it into
/etc/network/if-up.d/samba
and set it executable
chmod +x /etc/network/if-up.d/samba
Reboot , it works, eventhou I saw the failures on samba starting ( because interface not ready)..
but i think this script would do another samba service restart after network is up...
Not solving the real issue but at least save me from typing /etc/init.d/samba restart for each reboot.