Page 97 of 106 FirstFirst ... 47879596979899 ... LastLast
Results 961 to 970 of 1059

Thread: HOWTO: Setup Samba peer-to-peer with Windows

  1. #961
    Join Date
    Jan 2010
    Beans
    37

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    I have a really basic samba question - maybe one of the folks that helped out earlier can shed some light on it for me.

    Ive proeviously got Samba working just fine on Ubuntu 9.10. Ive upgradedto 10.4 and it all stopped working.

    So Ive gone back to a baisc setup. But it still doesnt work ... by which I mean my windows machines which I can ping to and from Ubuntu/vnc to and from, ssh to and from, cant see my Ubunutu machine at all. Also when I go into the SAMBA accessories in the desktop, nothing happens at all (ie no menus/screens appear). No files at all get modified in /var/log/samba. There are no clues !

    So here's what Ive tried :


    • sudo apt-get samba install,tells me its already installed, latest version
    • sudo apt-get remove samba, removes the package
    • Sudo apt-get reinstalls it, but reports smbd stop/pre-start job failed to start
    • sudo smbpasswd reports command not found
    • smbd.conf file losted below.

    So Im doing something very basic and wrong here ! Cananyoine tell me what it is please ?

    # NetBIOS name resolution options
    netbios name = DellD600
    server string = Ubuntu
    workgroup = mylan
    # wins support = yes
    log file = /var/log/samba.log %u
    # Master browser options (related to name resolution)
    local master = yes
    domain master = yes
    preferred master = yes
    # Network security options
    hosts allow = 192.168.1.0/24
    interfaces = 127.0.0.1/8 192.168.1.0/24
    # User security options
    security = user
    encrypt passwords = yes
    obey pam restrictions = yes
    username map = /etc/samba/smbusers # Only useful if mapping usernames
    passwd program = /usr/bin/passwd '%u'
    passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n

  2. #962
    Join Date
    Nov 2009
    Beans
    13
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    With WINS enabled:
    - Click "START"
    - Right-click "My Computer"
    - Select "Map network drive"
    - Choose the drive letter
    - Type \\DAPPER\MyFiles
    NOTE: Adjust this to the hostname and sharename you chose above!
    - Click "Finish"

    With WINS disabled:
    - Click "START"
    - Right-click "My Computer"
    - Select "Map network drive"
    - Choose the drive letter
    - Type \\<ip-address>\MyFiles

    NOTE: To find out the ip-address of your Linux box type "ifconfig" inside a terminal and find the ip for the correct interface (i.e. eth0). Don't forget to adjust the sharename to the name you chose above.
    - Click "Finish"
    This may seem like a stupid question, but i have played around a bit and still no results, but am i literally supposed to put MyFiles or the directory that i put for MyFiles in that config file?

  3. #963
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Quote Originally Posted by 5349U11 View Post
    This may seem like a stupid question, but i have played around a bit and still no results, but am i literally supposed to put MyFiles or the directory that i put for MyFiles in that config file?
    Nope, not a stupid question.

    From this section (highlighted in red):
    Code:
    [MyFiles]
        path = /media/samba/
        browseable = yes
        read only = no
        guest ok = no
        create mask = 0644
        directory mask = 0755
        force user = YOUR_USERNAME
        force group = YOUR_USERGROUP
    In this case, you can change "MyFiles" to anything you like. This is the name of your share and what you will see it named as when you browse to it from your Windows machine.

  4. #964
    Join Date
    Aug 2010
    Location
    NC, USA
    Beans
    6
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Excellent howto.
    Filesharing was OK with 9.04. I upgraded to 9.10 and then to 10.04 and have lost filesharing. Pinging works.
    I tried to run through the setup from the beginning and get this:

    rkc@ubuntu:~$ sudo /etc/init.d/samba stop
    sudo: /etc/init.d/samba: command not found
    rkc@ubuntu:~$ sudo /etc/init.d/samba start
    sudo: /etc/init.d/samba: command not found

    after reinstalling samba.
    I don't see any reference to samba in /init.d/, but still have smb.conf in /etc/samba/.
    Maybe a default path changed?
    Thanks in advance.

  5. #965
    Join Date
    Aug 2010
    Location
    NC, USA
    Beans
    6
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Which looks like Slates problem.

  6. #966
    Join Date
    Aug 2010
    Location
    NC, USA
    Beans
    6
    Distro
    Ubuntu 10.04 Lucid Lynx

    Red face Re: HOWTO: Setup Samba peer-to-peer with Windows

    Quote Originally Posted by Morbius1 View Post
    2 things wrong ( a relative term. remember this is a very old HowTo ).

    (1) If your using Ubuntu 10.04 the "samba" service no longer exists. Ubuntu has turned back the clock and once again separates the old samba service into it's component parts: nmbd and smbd.

    (2) smbd is no longer in /etc/init.d

    So for you, to stop samba you need to do this:
    Code:
    sudo service smbd stop
    Slate and I also ran into this problem. While I learned enough from the above reply to stop and start SMBD, I haven't a clue as to what I need to do to the smb.conf file or where it needs to be saved. What about nmbd?
    Is there a simple explanation?

    Also, where should I have looked to find out about this reversion? Did the lynx install put a big readme somewhere?

  7. #967
    Join Date
    Feb 2010
    Beans
    3

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Stormbringer:
    It's a great how-to, but I'm having one slight problem. Samba does not appear in my /etc/init.d file. Just to be sure (because I'm pretty new to Linux), I removed and reinstalled Samba. Throughout the operation I copied and pasted your code and command lines where appropriate. So I'm not sure what to look for.

    [EDIT] I just saw a post (right above this post) that says in Lucid, file names are changed. Should I be substituting the "new" (old?) smbd for samba in each place in the code?

    There is one other thing in your instructions that I found ambiguous. You say to replace YOUR_HOSTNAME on the netbios line with "your desired hostname." I'm trying to set up my Linux box to print on printers that are on a Windows machine. Is the proper hostname the name of my Linux box or the Windows machine that has the printer I want to use?

    Thanks for your patience and help.
    Last edited by dld521; August 27th, 2010 at 08:46 PM. Reason: Updating

  8. #968
    Join Date
    Dec 2009
    Beans
    5,377

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Should I be substituting the "new" (old?) smbd for samba in each place in the code?
    You can and it will work. But you will get something that looks an awful lot like an error message because they really want you to use this format:
    Code:
    sudo service smbd restart
    You say to replace YOUR_HOSTNAME on the netbios line with "your desired hostname." I'm trying to set up my Linux box to print on printers that are on a Windows machine. Is the proper hostname the name of my Linux box or the Windows machine that has the printer I want to use?
    "YOUR_HOSTNAME" is the hostname you want to use on your Linux box not the Windows box.

  9. #969
    Join Date
    Jul 2010
    Beans
    4

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    I have samba installed and and I have a /etc/samba folder, but I can't start or stop it

    Code:
    xbmc@XBMCLive:/$ sudo /etc/init.d/samba start
    sudo: /etc/init.d/samba: command not found
    xbmc@XBMCLive:/$
    please help. I don not have a samba file in my /etc/init.d/ folder

    -=Jason=-

  10. #970
    Join Date
    Aug 2005
    Location
    USA
    Beans
    24

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    SAMBA in Ubuntu has changed! IT IS NOW UBUNTU VERSION SPECIFIC.
    This thread needs 2 things:
    1. reference to separate documents on "Howto use SAMBA services" BY VERSION NUMBER!
    2. separate FORUM THREADS for SAMBA in Ubuntu BY VERSION NUMBER!

    Can the owner/moderator address this for the community?It also would be nice if someone could provide a link in the SAMBA document(s) explaining why it was necessary to change Ubuntu's usage. Was some "new" person added who wanted it changed for some good reason or did the new developer(s) want a new "signature" to differenciate their work from previous Ubuntu? Why?

    Thanks in advance...
    Last edited by gcmartin; September 23rd, 2010 at 07:01 PM.

Page 97 of 106 FirstFirst ... 47879596979899 ... 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
  •