networking Ubuntu Linux and windows together

Home Page Forums Network Management Linux and Networking networking Ubuntu Linux and windows together

This topic contains 0 replies, has 0 voices, and was last updated by  andrew_hall9 11 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40673

    andrew_hall9
    Member

    Hi friends, I need help networking Ubuntu Linux and windows together. I have installed samba on the Linux computer and I am sharing folders that are configured to windows sharing or something. I can see the Linux computer on my windows computer just fine but when I click on it says that I need a user name and password. I input my Linux accounts password but it didn’t work and I input my xp computers password and that didn’t work what should i do??

    #45537

    saadakhtar
    Member

    hi,
    first make sure that you have both of these packages installed correctly

    sudo apt-get install samba smbfs

    The reason why you get a login box but none of your usernames work is that you have a unix account on the ubuntu machine but you have not added in a network user yet: Herez how to do that!

    sudo smbpasswd -a yoursystemusername

    where “yoursystemusername” will be the actual ubuntu system username
    the above command will prompt you to enter a password and reenter it.
    this will be your new samba password.

    sudo nano /etc/samba/smbusers

    where nano would be your favorite text editor.

    in the new file “smbusers” insert the following line

    yoursystemusername = “yournetworkusername”

    where “yoursystemusername” will be the username you set the password for above and “yournetworkusername” would be the actual username you want to use to login for samba.

    i usually keep it the same.
    etc…..

    admin = “admin

    save the edited file….

    now we need to make sure that samba reads this new file for account credentials. for this we need to edit one more file.

    first and most important. backup your samba configuration. to do that:

    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup

    and now we will edit the “smb.conf” file.

    sudo nano /etc/samba/smb.conf

    FIND THIS LINE:

    ; security = user

    and replace it with

    security = user
    username map = /etc/samba/smbusers

    make sure that you uncomment the “security = user” line or this will not work.

    save the file and exit.
    now we need to see a dump of our conf file to see if it looks ok

    sudo testparm

    this should show you a small output followed by a detailed summary of the smb.conf file.

    Last but not least we need to restart samba for our changes to take effect.

    sudo /etc/init.d/samba restart

    ENJOY!!!!!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.