Configuring Shared Directories via the Command Line
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Configuring Shared Directories via the Command Line
Would anyone be so kind as to point me to a good reference for how use the command line to configure a directory to be shared in the directory properties?
I know how to do it using graphical tools such as Nautilus, Konqueror, and Gnome's shares-admin, but I'd like to know how to do with via command line, because, once you know the commands, the command line is always quicker.
I guess you could say I'm looking for a command line method for sharing directories in much the same way that chmod sets permissions from the command line.
I mean over the network. I have Samba up and running.
What I mean is this. If I want a directory to be configured to be share-able, I have to
open, for example, Konqueror,
find the directory,
highlight it,
right-click to bring up the menu,
select properties,
go to the sharing tab, and
as root, tell the directory that I want it to be shared and how I want it shared.
What I want to learn how to do is to do that process via the command line--a command that would do for sharing what chmod does for permissions. (If I can do it in a file manager, I should be able to do it from the command line. Inquiring minds want to know.)
Then I can make the directory available over the network using Samba. I normally share multiple directories from my file server.
There is no all in one command that will automatically create a shared directory. You need to edit the /etc/samba/smb.conf file. There are lots of howtos and typically several examples included via comments in the smb configuration file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.