When I use the Nautilus Places>Network browsers I can find and mount a samba share with full create, read & write permissions.

But when I connect to the same share via the command line I can read all files. But every time I create a new directory or file it has a padlock against it.

Does anyone know how I can replicate, exactly what Nautilus does by default when it connects to smb file share, at the command line?