LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2013, 10:31 AM   #1
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Rep: Reputation: 22
Post share a directory between linux machine


Hello Folks.
I use Debian and want share a directory on my local hdd to a fedora machine, How can I use SAMBA to do it?
I can use sftp and ssh but Samba not work .

Thanks.

Cheers.
 
Old 08-05-2013, 10:46 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Samba is designed to support windows.

Try NFS or Gluster (gluster is faster).
 
Old 08-05-2013, 11:03 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
Start by reading-up thoroughly on how Samba actually works in Linux. It's a shared file system, much like NFS or anything else, and thus has nothing at all to do with ssh, sftp and so-forth. The fastest way to find the answers you're looking for is to do your research ahead of time, then to ask pointed, clarifying questions here. A forum-thead is no substitute for (literally) hundreds of web-site pages on the subject.
 
1 members found this post helpful.
Old 08-05-2013, 08:47 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
A short answer to "how to use Samba" to share a directory is this:
  1. Mark the directory shared in the directory properties (you can use your file manager to do this, but you will need to be root).
  2. Configure your /etc/samba/smb.conf file to share the directory.
  3. Create user names and passwords for the logins who you wish to have access to the directory (to some extent, this depends on how you set up /etc/samba/smb.conf).
  4. Add them to your samba password file. Generally this is done with the smbpasswd command. as root.
A shorter answer is to see Samba by Example, which is the friendliest guide to Samba that I have found.

If you ever want someone using Windows to have access to the share, Samba is the way to go.
 
1 members found this post helpful.
Old 08-06-2013, 01:39 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
The problem with using Samba for sharing between Linux systems is due to having to first translate the client UNIX style access into a Windows style access (problematical - usually works, but not always), then Samba has to translate that Windows access back into a Linux access... again, usually works for simple things, but not always.

You also have to store the password three times - on the server, on the client, AND in Samba.

So if you ever need to change the password... you have to do it three time. NFS, you store it twice - on the server, and on the client - using the same method on both.
 
Old 08-06-2013, 06:55 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
For NFS the client box IP must be within the range set by the servers /etc/exports file entry.
The uid (for full access/ctrl) of the client user must be the same on the both ends.
Neither of these is affected by the user's password(s).
 
  


Reply


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
FTP: Get count of files on a remote machine directory to the source Linux machine mamu Linux - Newbie 3 10-28-2011 04:10 PM
share folders in linux machine to windows machine except samba nikeshp Linux - Newbie 3 02-21-2011 08:06 PM
specify network linux share on xp machine SBFree Linux - Newbie 1 05-27-2009 05:25 AM
Share Linux printer with windows machine? donniemack1 Ubuntu 1 05-11-2009 07:19 PM
How to share files between Windows and Linux in same machine ab25 Linux - Newbie 11 01-27-2008 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:34 AM.

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