Samba Shares via Command Line? (Oh, and viewing pictures)

Craig White craigwhite at azapple.com
Wed Jan 14 09:32:45 MST 2009


On Wed, 2009-01-14 at 15:40 +0000, Lisa Kachold wrote:
> Hey Tuna!  [Award winning HackFester!]
> 
> There are two options for command line shares access:
> 
> 1) smbclient:
> 
> smbclient //ip-address//e$ -U ntusername
> 
> 2) cifs mount
> 
> mkdir -p /mnt/test
> mount -t cifs //server-ip/share username=monk,password=secreat /mnt/test
> cd /mnt/test
> mount.cifs //192.168.1.6/ssh-vnc /mnt/test/ -o user=asil.kit,dom=obnosis.com
----
for those that don't like putting usernames/passwords into bash history
or readable /etc/fstab files, you can use credentials="~/.some_file" and
put the username/password into that file instead.

As for Matt's response, smbfs is ancient, unmaintained code and may not
be possible on most current distributions in favor of the cifs module.

For reasons discussed recently on Samba list, smbclient connections are
actually way faster than a cifs mount but the interface may not be to
everyone's liking.

Craig



More information about the PLUG-discuss mailing list