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. |
Samba is designed to support windows.
Try NFS or Gluster (gluster is faster). |
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.
|
A short answer to "how to use Samba" to share a directory is this:
If you ever want someone using Windows to have access to the share, Samba is the way to go. |
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. |
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). |
All times are GMT -5. The time now is 02:45 PM. |