#Samba

2 posts tagged Samba

CIFS: mount error(13): Permission denied

· linux, networking, software

You’ve just updated your Raspberry Pi (or whatever Linux) and you’re noticing your CIFS (smb) mounts aren’t getting auto mounted anymore. You curse and start noticing this error:

# mount -t cifs //192.168.1.100/public -o username=public,password=public sam/ mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The solution is to add after -o username=X,password=Y the following: sec=ntlm; thus it becomes -o username=X,password=Y,sec=ntlm.

You can do the same in fstab:

Gentoo & Samba hanging boot and refusing to start

· errors, linux, software

I recently took a server from for maintenance (PSU burned down) and quickly noticed it hung at boot (hangs at Samba starting).

I went into interactive boot mode and skipped Samba.

Thinking it was a networking issue (server has static IP & routing set up) which didn’t match my home network.

Set up dhcp, changed the gateway, and started restarting samba from command line.

It always resulted in something like this: