Tag: 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 sudo useradd -m $username echo "$username:$password"| sudo chpasswd # Add same User to SAMBA Subsystem with same Password! sudo smbpasswd -a $username<<EOF $password $password EOF

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 id do: Workaround edit /etc/fstab insert: sudo nano /etc/fstab insert at the end !! //192.168.1XX.XXX/nas /home/myusername/nas cifs file_mode=0777,dir_mode=0777,username=myusername,password=XXXX,domain=home.local,uid=10XX 0 0 Now over 50MB’s per second should by possible over gigabit cable. If not needed disable Samba Logging!

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, […]

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 /etc/samba/samba config file # 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 […]

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 with passwd and smbpasswd 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: Open /etc/samba/smb.conf with Editor set domain master = No set local master = YES set preferred master = No 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 […]

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) # expand-template /etc/smb.conf (+Enter) # /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: change to easier password or, do a […]

Impressum Datenschutz-DSGVO-GDPR

www.linuxonlinehelp.eu - Nonprofit Linux PC & Server Support since 2004 Tags: Linux Online Help, Linuxonlinehelp, Linux Support, Linux Hilfe