Page 1 of 2 12 LastLast
Results 1 to 10 of 44

Thread: Configuring Samba

Hybrid View

  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
    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.

  4. #4
    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

  5. #5
    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?

  6. #6
    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

  7. #7
    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

  8. #8
    Join Date
    Dec 2012
    Beans
    101

    Re: Configuring Samba

    Quote Originally Posted by 90Ninety View Post
    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)
    Four pages? Good grief.

    Try this guide instead, short, and all gui: http://ubuntuforums.org/showthread.php?t=1685718

  9. #9
    Join Date
    Dec 2009
    Beans
    5,713

    Re: Configuring Samba

    Might I make a suggestion? You are following so many HowTo's that your smb.conf may be a mess. What would help is if you tell us what the current state of your system is and you can do that by posting the output of the following commands:
    Code:
    testparm -s
    Code:
    net usershare info --long
    Don't be alarmed if you get no response from the second command.

    Some of the things you are quoting are incorrect like this one from the official Ubuntu documentation on Samba:
    Not all the available options are included in the default configuration file. See the smb.conf man page or the Samba HOWTO Collection for more details. First, edit the following key/value pairs in the [global] section of /etc/samba/smb.conf:

    1. 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.
    Smb.conf is a file used to add to or override the default settings of Samba. It is not the default samba configuration itself. "security = user" is the default setting of samba which is why it's commented out with a "#" in smb.conf ( and btw it's set to user not your user name ). I didn't read through the whole thing to see what else is inaccurate so I think the best bet is just for you to tell us how things are currently set up.

  10. #10
    Join Date
    Dec 2012
    Beans
    38

    Re: Configuring Samba

    Quote Originally Posted by Horbo View Post
    Four pages? Good grief.

    Try this guide instead, short, and all gui: http://ubuntuforums.org/showthread.php?t=1685718
    OK I followed the guide , maybe not correctly . Basically I copied the gateway address from my Windows PC , into the gateway address on server , is this correct ?

    Please see attached file , it pictures both my Windows and linux network settings for scrutiny
    Attached Images Attached Images

Page 1 of 2 12 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
  •