Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-10-2008, 11:59 AM   #1
LQ Newbie
Registered: Sep 2005
Location: Hungary, Budapest
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
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,
Old 09-10-2008, 12:30 PM   #2
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
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'


command, line, samba

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Samba shares via command line RichardS Linux - General 1 09-28-2007 03:32 AM
samba printing command line tomolesonjr Linux - Networking 8 04-07-2006 06:14 AM
How change samba password from command line? boardtc Mandriva 2 04-06-2006 10:45 AM
samba windows and the command line just_dan Fedora 12 04-07-2005 01:09 PM
Accessing samba shares from command line paul.nel Linux - Software 4 01-24-2004 08:02 AM

All times are GMT -5. The time now is 11:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration