Results 1 to 6 of 6

Thread: How to share directory from command line?

  1. #1
    Join Date
    Oct 2007
    Beans
    35

    How to share directory from command line?

    On ubuntu 10.04 I know how to share the /media folder by right clicking the /media folder in nautilus, going to sharing options and click "share this folder".

    How can I do that from a command prompt in terminal?

  2. #2
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to share directory from command line?

    Quote Originally Posted by redss View Post
    On ubuntu 10.04 I know how to share the /media folder by right clicking the /media folder in nautilus, going to sharing options and click "share this folder".

    How can I do that from a command prompt in terminal?
    The basic command starts with
    Code:
    net usershare
    Look at the man pages (the sub section usershare)
    Code:
    man net
    The first part of that subsection looks like this
    Code:
     USERSHARE
           Starting  with  version 3.0.23, a Samba server now supports the ability
           for non-root users to add user-defined shares to be exported using  the
           "net usershare" commands.
    
           Members  of  the UNIX group "sambashare" can create user-defined shares
           on demand using the commands below...
    -BAB1

  3. #3
    Join Date
    Oct 2007
    Beans
    35

    Re: How to share directory from command line?

    Exactly what I was looking for. Thanks!

  4. #4
    Join Date
    Jul 2011
    Location
    Lubuntu One Stop Group
    Beans
    Hidden!
    Distro
    Lubuntu

    Re: How to share directory from command line?

    i'd like to write this into the wiki. Is this documented anywhere? what other steps to get this working, like installing samba do i need to do for lubuntu?

  5. #5
    Join Date
    Oct 2007
    Beans
    35

    Re: How to share directory from command line?

    Well I installed samba and smbfs first, then net usershare command

  6. #6
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to share directory from command line?

    Quote Originally Posted by marinara View Post
    i'd like to write this into the wiki. Is this documented anywhere? what other steps to get this working, like installing samba do i need to do for lubuntu?
    What is it that you want to document? If it is usershares, the man pages have all of the info for the net command. This forum has many threads that reference usershares. Of course Samba.org also has a forum and documentation.

    Here is a google search of ubuntuforums using the keyword: usershares.

    Here is the same search but of samba.org for the keyword: usershares.
    -BAB1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •