8.2 Command line method

The command line method is very flexible, as you can use it on a minimal system without a GUI. It uses the command mount. The following is a typical command line to “mount” a SMB volumn from another computer:

mount -t cifs //10.0.2.4/homes /media/share -ocredentials=~/10-0-2-4.credentials,uid=mainuser,rw  
    

Here is a quick explanation of this command:

The credential file should be similar to the following:

username=remoteUserName  
password=passwordOfUser  
    

Make sure the credential file is readable only by the user owner!