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

Thread: samba/smb.conf text not in there

  1. #1
    Join Date
    May 2014
    Location
    Some where in the EU
    Beans
    95
    Distro
    Kubuntu 14.04 Trusty Tahr

    Question samba/smb.conf text not in there

    Good day I am trying to do the HOW to for samba File server

    and I go to /etc/samba/smb.conf: to change
    workgroup = EXAMPLE
    ...
    security = user

    but cant find ( security = user )


    any help

    thank u

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: samba/smb.conf text not in there

    Add it to the file, if that is the setting you want.

  3. #3
    Join Date
    May 2014
    Location
    Some where in the EU
    Beans
    95
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: samba/smb.conf text not in there

    Quote Originally Posted by TheFu View Post
    Add it to the file, if that is the setting you want.

    Oh ok thanks an other thing it wont let me save it

    it says u dont have permission

    I dont know but i am struggling with ubuntu I have been fallowing the how to's but every time there is some thing

    either text is not there or it say directory does not exist

    Im Suffering here

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: samba/smb.conf text not in there

    Ubuntu is a multi-user system, like all UNIX-based systems.
    Files stored in /etc/ are system-wide settings, so access for normal end-users is only read, not write. There are other places in the file system protected like this too.

    To modify/create a file under /etc, you need to ask for elevated permissions - that is done with sudo. Do not use sudo with a GUI program. Hopefully, this helps. https://help.ubuntu.com/community/RootSudo

  5. #5
    Join Date
    May 2014
    Location
    Some where in the EU
    Beans
    95
    Distro
    Kubuntu 14.04 Trusty Tahr

    Question Re: samba/smb.conf text not in there

    Ok after editing the samba/smb.conf file

    I now have 2 of them I dont understand witch one should i delete ??

    please look at PIC

    thank u
    Attached Images Attached Images

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: samba/smb.conf text not in there

    GUIs hide too many details to know which is correct, but the samba process will only look at /etc/samba/smb.conf by default. You can change that, if you like, but I never do and don't know anyone else who does unless they are testing some new, strange, odd, weird, config.

    So - open a terminal, cd to the directory and post the output from \ls -al, please. Text only, no pictures!

  7. #7
    Join Date
    May 2014
    Location
    Some where in the EU
    Beans
    95
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: samba/smb.conf text not in there

    Ok in the setting up samba how to

    is says

    • First, 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.


      But i cant find any where were it says

      security

      any help

      and i use pictures to make the reader understand what i am saying

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: samba/smb.conf text not in there

    Edit the file. ADD THE line you want, into the section you want. I don't understand the issue. Sorry, it is my failure in understanding, not yours.

    If the how-to you are referencing isn't working, perhaps finding a different, easier-to-understand one is necessary? There are thousands of samba how-tos. For simple configurations, this is extremely well-understood territory. If editing a file is too hard, there is a gui way:
    http://www.howtogeek.com/74459/how-t...-the-easy-way/ I like the how-to guides there - they find the easy ways, keep it simple and to the point and don't get distracted by complexities that I often get into, which are not needed for 90% of the users.
    Last edited by TheFu; August 2nd, 2014 at 11:08 AM.

  9. #9
    Join Date
    May 2014
    Location
    Some where in the EU
    Beans
    95
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: samba/smb.conf text not in there

    @theFu I fallowed the Link u provided and did install samba But when i click on it to start the program ,, it wont open

    so something got to be wrong Please not that i am using ubuntu 14.4 64x

    the other thing is I cant find any line where it says SECURITY in the samba.conf file

    is says


    • First, edit the following key/value pairs in the [global] section of /etc/samba/smb.conf:
      workgroup = EXAMPLE
      ...
      security = user



    Do U see where it says
    security = user ???? I dont have security there fore i cant add that Line

    thank u

  10. #10
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: samba/smb.conf text not in there

    I've asked for a few thing to help you solve the issue(s). These have not been provided. I will try again in the simplest English I know.

    Add the missing line to the file, if that is the setting you want. How?
    * Edit the file with elevated privileges (sudo nano /etc/samba/smb,conf)
    * Create an empty line somewhere inside the [Global] section
    * type in "security = user" without the quotes.
    * save the file
    * exit the editor

    Now the line exists inside the file. Of course, you can use any CLI editor you like - do not use a GUI editor with sudo. There are reasons and for someone so new to Linux, fixing any problems it causes will be too hard.

    However, the last message says "something got to be wrong" - but does NOT provide any clue. Why not? What are the errors? Please copy/paste them or we cannot help. What do the log files say?

    BTW - you never provided a link to the "how-to" you were using. I'd ask how you expect us to know what might have gone wrong without that slight detail?

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
  •