If you use a small PC as Home Server NAS with a attached USB Drive you perhaps remark that the drive ALWAYS spinning if the Samba Daemon is active. I researched this behavior and found out that the Samba Deamon (smbd) locks the drive access via VFS to the Kernel for the Powermanagement Tools like […]
Schlagwort: samba
Linux Samba User Add Script
Problem: The User Password Sync on Standalone Samba Server like Debian & Ubuntu without LDAP is broken since years! So i wrote a small Script called add-user-smb.sh: #!/bin/bash # Prompt for username read -p "Username: " username # Prompt for password without echoing read -p "Password: " password # Add a new User to Linux […]
Bug Nautilus slow SMB Performance gvfs-smb
If you use Samba as File Share (NAS) Samba mounts often hang by listing huge amount files like Photos. Known Problem is the gfvs-backend is hanging up on switching between smb protocol (smb1-2-3) versions! Faster is to use the cifs Kernel mount without the gnome-backend communication open Terminal enter: id myusername mkdir /home/myusername/nas/ with known […]
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 […]
Papierkorb Recycle Bin Samba Share Howto
How to create a Samba Recycle Bin ? (Ersatz fuer Papierkorb Windowserver) At first you need to create the /etc/samba/recycle.conf file # touch /etc/samba/recycle.conf # nano /etc/samba/recycle.conf 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) edit your […]
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: edit as root /etc/samba/smb.conf enter unix password sync = no (Yes=default) restart samba /etc/init.d/samba restart set new different passwords for a user […]
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: Open /etc/samba/smb.conf with Editor set domain master […]
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 Passwort ohne ä ü ö nehmen oder, als root am Server per ssh anmelden und folgendes eingeben: #db configuration setprop smb UnixCharSet ISO8859-15 (+Enter) […]