LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-10-2008, 11:59 AM   #1
uhum2004
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,
Istvan
 
Old 09-10-2008, 12:30 PM   #2
CRC123
Member
 
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:
Code:
//server/share /localMountPoint cifs guest 0 0
Or you can use the smbclient command:

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


Reply

Tags
command, line, samba



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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