I can never remember this, so here it is when I come back to look for it.
sudo su
mkdir -p /mnt/fileserver/torgeir/
mount -t cifs //fileserver/torgeir/ /mnt/fileserver/torgeir/ \
-o 'username=<username>,password=<password>,iocharset=utf8,vers=3.1.1'
(Notice the space in front of the command to prevent it from ending up in zsh history. This is accomplished by export HISTCONTROL=ignoreboth
in the shell.)
Future self will thank me.
Edits
[2023-07-19 Wed 17:07] Wrap line in codeblock