Results 1 to 10 of 10

Thread: Passowrds on Shares

  1. #1
    Join Date
    Jun 2008
    Beans
    83

    Passowrds on Shares

    When I try to access a share folder it asks me for a password.

    I have no idea what password I should enter. My security level in Samba is set to SHARE

    Regards,

    Roger

  2. #2
    Join Date
    Apr 2008
    Location
    Buenos Aires, Argentina
    Beans
    109
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Passowrds on Shares

    Quote Originally Posted by wabbit46 View Post
    When I try to access a share folder it asks me for a password.

    I have no idea what password I should enter. My security level in Samba is set to SHARE

    Regards,

    Roger
    Just enter your Ubuntu username and password.
    If the above was useful to you please thank me by clicking the star button at the bottom-right of the post.
    Miss iTunes? Check out the iTunes Linux Project!

  3. #3
    Join Date
    Jun 2008
    Beans
    83

    Re: Passwords on Shares

    I have tried that it does not work.

  4. #4
    Join Date
    Jul 2005
    Location
    Ontario, Canada
    Beans
    255
    Distro
    Ubuntu

    Re: Passowrds on Shares

    Try user name: guest
    password: [blank]

    if that doesn't work, try forcing the user to the guest account in the share like:

    [home share]
    path=/home/me
    force user = guest
    guest ok = yes

    and then try connecting

  5. #5
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Passowrds on Shares

    Set up a samba password from the terminal:
    Code:
    sudo smbpasswd username
    Set up a samba password for a windows user:
    Code:
    sudo useradd windowsusername
    sudo smbpasswd windowsusername

  6. #6
    Join Date
    Jun 2008
    Beans
    83

    Re: Passowrds on Shares

    Thanks for your advice but the command:-

    sudo smbpasswd username

    advises be it cannot find my username

  7. #7
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Passowrds on Shares

    You need to replace username with your user name:
    Code:
    sudo smbpasswd wabbit46
    assuming that wabbit46 is your user name in ubuntu.

  8. #8
    Join Date
    Jun 2008
    Beans
    83

    Re: Passowrds on Shares

    I have tried using my Ubuntu username but it appears not to be contained in the smbpasswd file.

  9. #9
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Passowrds on Shares

    Sorry, I forgot the -a option:
    Code:
    sudo smbpasswd -a username
    EDIT: In order to the changes take effect, restart samba:
    Code:
    sudo /etc/init.d/samba restart
    or reboot the computer.
    Last edited by sisco311; June 2nd, 2008 at 11:13 AM.

  10. #10
    Join Date
    Jun 2008
    Beans
    83

    Re: Passowrds on Shares

    I have tried using the command sudo smbpasswd -a username and it appears to work.

    However when I try the command sudo /etc/init.d/samba restart, it advises me it cannot find samba.

    What I want to do is connect my Ubuntu box to a computer running Vista and share the files contained on the Vista machine.

    I would appreciate any ideas on what is wrong. eg is my distro faulty.

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
  •