Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44

Thread: Configuring Samba

  1. #1
    Join Date
    Dec 2012
    Beans
    38

    Configuring Samba

    This is my first experience with Linux . I have installed Ubuntu 12.10 x64 Desktop , for the purpose of file sharing at home for starters .


    I have followed this guide
    http://www.bit-tech.net/bits/2007/06...r_own_server/4
    I had got to page 4 ( File sharing)

    I have stumbled at a hurdle
    we change our working directory to those of Samba, by typing cd /etc/samba which simply means Change Directory to /etc/samba.
    As soon as I enter 'cd /etc/samba' I get an error :
    bash: cd/etc/samba: No such file or directory
    I had googled the error and found someone with the same here:http://https://answers.launchpad.net...uestion/112878

    On this latter link Jon (jcv) said on 2010-12-10:
    I had this issue and got it working with the help of this link.https://lists.ubuntu.com/archives/ub...ly/004520.html
    Within that link was some commands as follows :
    sudo touch /etc/samba/smb.conf
    sudo dpkg-reconfigure samba-common
    sudo dpkg-reconfigure windbind
    sudo apt-get -f install

    I opened terminal and typed in all the commands - 1,2 & 4 actually done something , 3 returned an error which I cannot remember

    Anyhow I returned ( In vain ) thinking this might have solved the issue . However I still get the error:
    bash: cd /etc/samba: No such file or directory
    I have tried re-installing samba , though I cannot seem to be able to change into its directory , as mentioned in the Bit-tech guide ( in above link)


    I have since studied other guides and taken further steps , though , this guide seems most popular and many have referenced it on forums
    Last edited by 90Ninety; December 29th, 2012 at 10:53 PM.

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Configuring Samba

    If you are actually typing
    Code:
    cd/etc/samba
    then that isn't a valid command, your missing the space after cd.
    You should be typing
    Code:
    cd /etc/samba
    Also I really wouldn't use that guide if I were you, it was written in 2007 for a version of Ubuntu which is no longer supported (7.04) and an awful lot has changed in the world of Linux in the last five and a half years. Ubuntu 7.04 used Samba version 3.0.24 whereas 12.10 uses version 3.6.6.

    Instead I would use the official documentation for your version of Ubuntu:
    https://help.ubuntu.com/12.10/server...ileserver.html
    Last edited by Cheesemill; December 29th, 2012 at 10:48 PM.
    Cheesemill

  3. #3
    Join Date
    May 2008
    Beans
    69

    Re: Configuring Samba

    Hi,

    There is an error in your command. The command should be
    Code:
    cd /etc/samba

  4. #4
    Join Date
    Dec 2012
    Beans
    38

    Re: Configuring Samba

    You should be typing
    Code:
    cd /etc/samba
    I am, just a typo in the post ( now edited )



    Also I really wouldn't use that guide if I were you, it was written in 2007 for a version of Ubuntu which is no longer supported (7.04) and an awful lot has changed in the world of Linux in the last five and a half years. Ubuntu 7.04 used Samba version 3.0.24 whereas 12.10 uses version 3.6.6.



    Instead I would use the official documentation for your version of Ubuntu:
    https://help.ubuntu.com/12.10/server...ileserver.html
    Thanks , though I do not feel the official documentation is Noobie friendly , it doesn't break down the steps enough for the technically challenged imho . For example I am trying to decipher the steps have stumbled on the very first configuration step. . However the first step deciphered ,from what I can gather :

    First, edit the following key/value pairs in the [global] section of /etc/samba/smb.conf:
    Erm in other words this means open terminal and type:
    sudo (hit enter)
    /etc/samba/smb.conf (hit enter)


    I tried this and got permission denied :/
    Last edited by 90Ninety; December 29th, 2012 at 11:11 PM.

  5. #5
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Configuring Samba

    If your using the Desktop version of Ubuntu you can use gedit to edit the file. Open a terminal and type:
    Code:
    gksudo gedit /etc/samba/smb.conf
    This is the only file you have to edit to configure samba.
    Cheesemill

  6. #6
    Join Date
    Dec 2012
    Beans
    38

    Re: Configuring Samba

    Thanks Cheesemill

    Configuration step 1First, edit the following key/value pairs in the [global] section of /etc/samba/smb.conf:

    workgroup = EXAMPLE
    ...
    security = user
    The security parameter is farther down in the [global] section, and is commented by default. Also, change EXAMPLE to better match your environment.
    The security parameter is missing , should this be of concern, or should I move on to next step?

    Also where is the Samba manual?

  7. #7
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Configuring Samba

    Quote Originally Posted by 90Ninety View Post
    The security parameter is missing , should this be of concern, or should I move on to next step?
    It is there, I've just checked. It's under the authentication heading on line 102.
    Also where is the Samba manual?
    http://www.samba.org/samba/docs/man/...TO-Collection/

    But I wouldn't recommend reading it, it's highly technical.
    Cheesemill

  8. #8
    Join Date
    Dec 2012
    Beans
    38

    Re: Configuring Samba

    Quote Originally Posted by Cheesemill View Post
    It is there, I've just checked. It's under the authentication heading on line 102.

    .
    Cool Ok , so:
    workgroup = WORKGROUP Change to anything I like right ( in this case joegroup)
    Security = user so this I assume I change to my username (joe) ?
    so moving onto Step 2
    Create a new section at the bottom of the file, or uncomment one of the examples, for the directory to be shared:
    [share] comment = Ubuntu File Server Share path = /srv/samba/share browsable = yes guest ok = yes read only = no create mask = 0755
    Doh.... Can you decipher this or break it down a little ? Ok I have the samba.conf file open , so I assume you need to add the above text to the file no?
    Last edited by 90Ninety; December 30th, 2012 at 12:22 AM.

  9. #9
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Configuring Samba

    Correct, just add it to the end of the file.
    Cheesemill

  10. #10
    Join Date
    Dec 2012
    Beans
    38

    Re: Configuring Samba

    Quote Originally Posted by 90Ninety View Post
    Cool Ok , so:
    workgroup = WORKGROUP Change to anything I like right ( in this case joegroup)
    Security = user so this I assume I change to my username (joe) ?
    so moving onto Step 2
    Doh.... Can you decipher this or break it down a little ? Ok I have the samba.conf file open , so I assume you need to add the above text to the file no?
    So basically you add this text to the smb.conf
    [share]
    comment = Ubuntu File Server Share
    path = /srv/samba/share
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0


    though shouldn't I change it to
    [share]
    comment = /media/disk1
    path = /srv/samba/share
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0



    Basically I want to share the Disk1 amongst my local computers

Page 1 of 5 123 ... LastLast

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
  •