Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-29-2010, 08:42 PM
|
#1
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,829
|
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.
Thanks.
|
|
|
11-29-2010, 11:25 PM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
Do you mean sharing as in over the network, or among multiple users on your local system?
Network sharing is generally handled by Samba, whose configuration file is /etc/samba/smb.conf.
|
|
|
11-30-2010, 08:30 PM
|
#3
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,829
Original Poster
|
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.
|
|
|
11-30-2010, 09:55 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,640
|
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.
|
|
|
All times are GMT -5. The time now is 05:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|