Linux Installing Samba

Discussion in 'Software' started by Dreyrden, 18 Apr 2010.

  1. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    Hello.
    In response to my recent thread:
    http://forums.bit-tech.net/showthread.php?t=186383
    I was pointed too http://www.bit-tech.net/bits/2007/06/05/build_your_own_server/1

    I decided this was what I am looking for, and set about downloading the latest xubuntu software, wrote it to a live cd and installed it. I followed the instructions, and got to the bottom of page 4 without a hitch. Now I'm confused :)

    When he says "Make sure you replace "Name" and "Server Name" with the correct data from your XUbuntu installation!", what are these??

    And when he says to: "Type smbpasswd -a Username and enter the password for that user." What is the the username? And the password? It didn't seem to work for me, kept coming up with error message type thingys.

    Can anyone help? I know this article is a few years old, but it should still work right?

    Thanks
     
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    The username is the name of the user ;) Hence the name...

    You had to provide it when you initially installed Xubuntu.

    In case you really can't remember, open a terminal and type:
    Code:
    whoami
    eg:
    Code:
    glider@neptune ~ $ whoami
    glider
    That is the name you have to provide...

    If it doesn't work, can you post back the error message?
     
  3. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    Is the server name the same as the name you call your computer?
     
  4. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Code:
    glider@neptune ~ $ hostname
    neptune
     
  5. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    Ah, got you :) Thanks.
    You know the smb.conf file? When i put that other stuff in, do i delete EVERYTHING else in the file?
     
  6. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
  7. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    Okay, yeah... got that... I'll try the next step...
     
  8. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    I tried the next stage: "Type smbpasswd -a Username and enter the password for that user."

    Code:
    root@robert-server:/etc/samba# smbpasswd -a robert ***********
    
    It then said:

    Code:
    When run by root:
           smbpasswd [options] [username]
    otherwise: 
           smbpasswd [options]
    
    options:
    (It has loads of options here)                    
    
    After the options it just comes up with the termal line thingy again.
    Is this supposed to happen>?

    EDIT: I tried loggin in to view the files from my vista computer, and entered the username: robert and the password i think i made, and each time it says "Logon unsuccesful". Then it displays the login name as Robert-PC\robert automatically?
    Not sure...
     
    Last edited: 18 Apr 2010
  9. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Look at what it returns... The syntax is "smbpasswd [options] [username]"

    You provide your password too... smbpasswd will ask for it when it needs it, don't provide it unasked...
     
  10. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    AHHH! I get it :) Thanks, me being dense :D
    A small issue, when i type in \\192.168.1.66\homes into My computer on vista or internet explorer it asks for the password and user and then accepts them... but it then comes up with a message along the lines of "Windows cannot find \\192.168.1.66\homes"?
     
  11. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Try going to the host only, so \\192.168.1.66 instead of \\192.168.1.66\homes
     
  12. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    That opens up the netwroks thing under My Computer... and just shows me "Printers". Nothing else...
     
  13. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    192.168.1.66 is the IP of your server, right?
     
  14. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    Yes, thats what it says under the robert-server thing on the router...
     
  15. Kumo

    Kumo What's a Dremel?

    Joined:
    18 Oct 2004
    Posts:
    698
    Likes Received:
    0
    Try installing webmin and swat also to handle samba server and others. it should simplify the task of adding users and folders.
     
  16. Dreyrden

    Dreyrden What's a Dremel?

    Joined:
    14 Mar 2010
    Posts:
    37
    Likes Received:
    1
    Ended up being a coward and reinstalling xp :D thanks guys, ill have another crack with linux in the summer :)
     

Share This Page