CIFS: mount error(112): Host is down

When trying to mount a Windows share using mount, I ran into this problem: mount -v -t cifs -o username=username,password=password //hostname/sharename /mnt mount.cifs kernel mount options: ip=XXX.XXX.XXX.XXX,unc=\\hostname\sharename,user=username,prefixpath=sharename,pass=******** mount error(112): Host is downmount -v -t cifs -o username=username,password=password //hostname/sharename /mnt mount.cifs kernel mount options: ip=XXX.XXX.XXX.XXX,unc=\\hostname\sharename,user=username,prefixpath=sharename,pass=******** mount error(112): Host is down In my case, the error was… Continue reading “CIFS: mount error(112): Host is down”

Mounting a Windows share using CIFS

Windows shares can be mounted using cifs option: mount -t cifs -o username=username,password=password //hostname/sharename /mntmount -t cifs -o username=username,password=password //hostname/sharename /mnt By default, Windows shares are mounted with 0777 permissions in Linux. You can change the default permissions using dir_mode and file_mode options in mount: mount -t cifs -o username=username,password=password,dir_mode=0755,file_mode=0755 //hostname/sharename /mntmount -t cifs -o… Continue reading “Mounting a Windows share using CIFS”

Adding a secondary IP address (CentOS, Fedora, RHEL)

You will┬ánot need a secondary NIC but you’ll create virtual adapters as the secondary IP will be routing through the primary. Network configurations are stored in /etc/sysconfig/network-scripts network-scripts$ ls -l | grep ifcfg -rw-r–r–. 1 root root 304 Nov 11 19:04 ifcfg-eth0 -rw-r–r–. 1 root root 254 May 25 2017 ifcfg-lonetwork-scripts$ ls -l | grep… Continue reading “Adding a secondary IP address (CentOS, Fedora, RHEL)”

VMware Remote Console 10.0.1 on Fedora 26

Welcome back to my (almost) daily appointment with “What’s wrong with Fedora today?”. At work, our servers are VMs on a VMware vSphere; we access them using SSH of course, but sometimes we need to use the remote console from the vSphere Web Client (that is a vmrc link). I upgraded my kernel (and many… Continue reading “VMware Remote Console 10.0.1 on Fedora 26”

Using fingerprint authentication on Fedora 26

I’ve never ever had any problem using fingerprint authentication on openSUSE 42.1, it worked just out of the box, but when I switched back to Fedora (again), I had some issues configuring it. On Fedora 26, by default, fingerprint authentication works only for logins but not for sudo. To enable this: authconfig –enablefingerprint –update If… Continue reading “Using fingerprint authentication on Fedora 26”

Flushing iptables

You can flush and reset iptables to default running these commands: iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT The -F command flushes all the chains and -X deletes empty (non-default)… Continue reading “Flushing iptables”