Openwrt : Openwrt 15.XX loses settings if the ROM Root Filesystem is full

On openwrt 15.XX i have seen if you installed additional Sofware via opkg and the /overlay path is nearby full you can’t save any settings via Luci Webinterface (blue Info box right upper corner) or the Router reboots hard automatic into failsave mode (lost all settings / factory reset)

Workaround:

  • You can install a external usb stick on most routers and move the „/overlay“ folder to it
  • You should always Download the „backup-settings.tgz“ from Software Menu to get the Router easy  and fast online again on last working state.
  • If the rootfs (root filesystem and overlay path) is nearby full, YOU CANT remove installed packages by „opkg“ packet manager, cause the ROM is readonly! For this reset the router and restore easy from „backup-settings.tgz“.
  • If the external USB Drive loses connect to the Router (Power failure) and you use Samba as NAS Server the /overlay path can run full too!! and the Router can crash and reset too!! This shows openwrt should NEVER be used for secure routing jobs AND NAS Operations ! Cause it can you lock out!

Result: openwrt is a nice opensource router os which allows you to control and active monitor your internet connections with realtime graphs (WebUI+Console) and blocking rules. It should always be used behind a black boxed ISP router of your provider to get a private area!

Papierkorb Recycle Bin Samba Share Howto

How to create a Samba Recycle Bin ? (Ersatz fuer Papierkorb Windowserver)

  1. At first you need to create the /etc/samba/recycle.conf file
  2. # touch /etc/samba/recycle.conf
  3. # nano /etc/samba/recycle.conf
  4. add:

##Recycle Bin ##
name = Recycle Bin
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|*.log|*.trace
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.ppt|*.dat|*.ini|*.mp3
(Block unwanted Files)

  1. edit your /etc/samba/samba config file
  2. # nano /etc/samba/smb.conf

add at section „homes“

vfs object = recycle
config-file = /etc/samba/recycle.conf
recycle:repository = Recycle Bin
recycle:keeptree = Yes
recycle:versions = Yes

Now restart your samba daemons and the recycle bin should show up after a few moments (but most likely after you delete your first file).

  1. # sudo /etc/init.d/samba restart

smbpasswd changes samba password and unix password too

Problem: At newer Linux Setups with Samba 3 by default smbpasswd changes the user unix login password and samba share password.

For higher security i prefer different passwords like on debian SARGE

Solution:

  1. edit as root /etc/samba/smb.conf
  2. enter
    unix password sync = no 
    (Yes=default)
  3. restart samba
    /etc/init.d/samba restart
  4. set new different passwords for a user with
    passwd
    and
    smbpasswd
  5. check passwords..working

Samba Server Browsing Problem Samba Server sporadically hidden

Problem: Inside a Laboratory Farm of 5 Samba Servers sometimes one or more Servers are sporadically hidden at Windows XP Client Neighbourhood (Netzwerkumgebung), but they are still sharing the files and are still online. Or XP Clients hangs up at browsing the Local Network for some minutes.

Solution:

  1. Open
    /etc/samba/smb.conf
    with Editor
  2. set domain master = No
  3. set local master = YES
  4. set preferred master = No
  5. restart samba service with
     /etc/init.d/samba restart

Background: The nmbd service is browsing at your network and if he find the option domain master he will ignore the information of the other server (data communication corruption Port 137)

Smeserver: Samba Password Login fails ü ä ö

Problem:

Wenn man ein Windows-Passwort für User mit ä ü ö verwendet, kann man sich nur mit FTP zum SME Server verbinden eine Anmeldung mittels SMB Windows-XP Protokoll geht nicht

Loesung

  1. Passwort ohne ä ü ö nehmen oder,
  2. als root am Server per ssh anmelden und folgendes eingeben:
  3. #db configuration setprop smb UnixCharSet ISO8859-15 (+Enter)
  4. # expand-template /etc/smb.conf (+Enter)
  5. # /etc/init.d/smb restart (+Enter)

Problem: If you use a password with special characters like üäö or british pound.. you can login at the sme server but not connect the smb shares from windows.

Solution:

  1. change to easier password or,
  2. do a db charset change see above as root for samba