Mounting a samba host
$ sudo mount -t cifs //hostname/share /mnt/some-dir -o user=rene,password=secretGarden
Apparently, it also works with the
NetBIOS name:
$ sudo mount -t cifs //NetBIOSname/share /mnt/some-dir -o user=rene,password=secretGarden
If the share is mounted as above, tt seems that the mounted files and directories will belong to the root
user and
group which allows to read files but not to write files or create new ones. Therefore, the
gid and the
uid could be expclicitely stated in the mount command as well:
$ sudo mount -t cifs //hostname/share /mnt/some-dir -o user=rene,password=secretGarden,uid=rene,gid=users