Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 .
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:
Mark the directory shared in the directory properties (you can use your file manager to do this, but you will need to be root).
Configure your /etc/samba/smb.conf file to share the directory.
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).
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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.