When it tries to mount the remote directory, the RaspPi has to effectively log in to the remote machine. You don't want just anyone accessing your files do you? So to do that it needs to give the remote machine a username and a password. The video shows how to connect to an NAS device (a Network-Attached Storage device) not a Windows PC. That NAS device has been configured not to require a username and password (I guess he doesn't care who accesses his files.) But you will have to give a username and password that the Windows PC will accept. So yes, it's a Windows log-in that you are looking for, but that's only the first problem; now you have to find out how to do that.
If we look at "man mount" the first thing we find is that it is massive. If the information we need is in there then we are going to need some help finding it or a few days to tease it out. However going back to the video we see that the important parameter "guest" is introduced with the switch "-o". So we can fast forward the man mount command to that switch, and we read:
-o, --options opts
Options are specified with a -o flag followed by a comma sepa‐
rated string of options. For example:
mount LABEL=mydisk -o noatime,nouser
For more details, see FILESYSTEM INDEPENDENT MOUNT OPTIONS and
FILESYSTEM SPECIFIC MOUNT OPTIONS sections.
Now we know that we are looking for "options" and we know where to look. Unfortunately the options we are looking for are not in the FILESYSTEM INDEPENDENT MOUNT OPTIONS, so we need to look for the FILESYSTEM SPECIFIC MOUNT OPTIONS, and for that we need to know the filesystem type. If we look back at the video we see that the first parameter is "-t cifs", and sure enough, "man mount" says:
-t, --types vfstype
The argument following the -t is used to indicate the filesystem
That makes sense because CIFS is the network protocol for Microsoft file-sharing and since Windows understands nothing else it is widely used for other devices too. See Wikipedia
for far too much background information, including the relationship to "Samba". Armed with this new information we go back to "man mount" and look excitedly for the "FILESYSTEM SPECIFIC OPTIONS" section. We browse down there past adfs and affs, both of which have all their options listed. However when we get to cifs, it directs us to the manual page for "mount.cifs". So to find out how to specify the username and password, you have to look at "man mount.cifs", and that says (in part):
specifies the username to connect as. If this is not given, then
the environment variable USER is used. This option can also take
the form "user%password" or "workgroup/user" or
"workgroup/user%password" to allow the password and workgroup to be
specified as part of the username.
The cifs vfs accepts the parameter user=, or for users familiar
with smbfs it accepts the longer form of the parameter
username=. Similarly the longer smbfs style parameter names may
be accepted as synonyms for the shorter cifs parameters
pass=,dom= and cred=.
specifies the CIFS password. If this option is not given then the
environment variable PASSWD is used. If the password is not
specified directly or indirectly via an argument to mount,
mount.cifs will prompt for a password, unless the guest option is
Note that a password which contains the delimiter character (i.e. a
comma ´,´) will fail to be parsed correctly on the command line.
However, the same password defined in the PASSWD environment
variable or via a credentials file (see below) or entered at the
password prompt will be read correctly.
don´t prompt for a password
We see that the video used the "guest" option, whereas if there is a username and password required we would have to use the "user=" and probably the "password=" options. If we go back to "man mount" we can see right at the top of the page how to specify multiple options:
mount [-fnrsvw] [-o option[,option]...] device|dir
Multiple options are specified separated by commas with no spaces.
Lets say our Windows username was USER and its password was PASSWORD, its IP address was 192.168.0.2 and the folder we wanted to share was called "media", then we can use the same command that the video used, but replace the guest option with two options specifying the username and password that we need to use:
sudo mount -t cifs -o user=USER,password=PASSWORD //192.168.0.2/media /mnt/nomnom
Phew! The information is there, but it took some finding! Thankfully that is about as difficult as it gets.