LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-29-2010, 09:42 PM   #1
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,933
Blog Entries: 27

Rep: Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178
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.
 
Old 11-30-2010, 12:25 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
Old 11-30-2010, 09:30 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,933

Original Poster
Blog Entries: 27

Rep: Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178Reputation: 5178
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
  1. open, for example, Konqueror,
  2. find the directory,
  3. highlight it,
  4. right-click to bring up the menu,
  5. select properties,
  6. go to the sharing tab, and
  7. 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.
 
Old 11-30-2010, 10:55 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,847

Rep: Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755Reputation: 3755
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.
 
  


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
[SOLVED] Command line: chown command recursively on invisible directories? JZL240I-U Linux - Software 9 10-29-2010 05:34 AM
Need to delete directories with files using command line FTP Zombie13 Linux - Software 2 03-10-2006 11:23 PM
Get Directories with Command Line FTP? BLazeD Linux - Newbie 2 09-09-2004 03:47 AM
share directories from command line tarheel92x Linux - Networking 1 09-07-2004 10:09 PM
How may I list only the directories in command line? geraldomanaus Linux - Newbie 5 03-20-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:48 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