-   Linux - Newbie (
-   -   samba in command line (

uhum2004 09-10-2008 12:59 PM

samba in command line
Hi all,
could somebody enlight me, how can I refer to a directory of a Windows server from command line? I'd like to use it in my script.
Thanks forward,

CRC123 09-10-2008 01:30 PM

You can mount it in the directory tree through /etc/fstab so that it is persistent and then access it like a normal local file.

Add something like this to your /etc/fstab file:

//server/share /localMountPoint cifs guest 0 0
Or you can use the smbclient command:


smbclient \\\\sambaserver\\myshare
For more info, type 'man smbclient'

All times are GMT -5. The time now is 08:06 PM.