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

Thread: Forget password samba share

  1. #1
    Join Date
    Aug 2006
    Beans
    5

    Forget password samba share

    Hi, I have a samba share in ubuntu which when i first connected, I checked the box, "remember forever" so ubuntu stores the password somewhere.

    Is there any way I can make ubuntu remove the saved password?

    Thanks

  2. #2
    Join Date
    Nov 2005
    Location
    Jackson, TN USA
    Beans
    462
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Forget password samba share

    yes, in the command line (terminal), type the following:

    Code:
    sudo smbpasswd -x username
    for more information, check the manual page for smbpasswd in the terminal by typing:

    man smbpasswd



    hope this helps,
    -myk
    "Despite millions of dollars of research, Death continues to be Americas number one killer."

    Kingdom Computer Solutions

  3. #3
    Join Date
    Aug 2006
    Beans
    5

    Re: Forget password samba share

    It gives the error:
    Failed to modify password entry for user eggy

    Is there a way to view a list of users with stored passwords?

  4. #4
    Join Date
    Jun 2009
    Beans
    9

    Re: Forget password samba share

    I am having this exact problem too... Anyone have any solution?

  5. #5
    Join Date
    Mar 2009
    Beans
    44
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Forget password samba share

    Little clarification please on what your situation is.

    1) Your Ubuntu system has the samba share and you want the other computer to stop connecting to it with the old password
    In this case you should be able to use "sudo smbpasswd <username that was stored on other computer>" that will change the password and make it so the computer isn't able to connect anymore.

    2) Your Ubuntu system is connecting to ANOTHER computer and you have the password saved for that Second computer. And want to remove the password from the keyring.
    I'm not exactly sure what to do in this case.

    3) Some situation i didn't list.
    Last edited by papenpj; June 29th, 2009 at 07:21 AM.
    Pentium III 600MHz, 128Mb RAM running Ubuntu 8.04 Server / Dell Inspirion 6000 1.86GHz, 1GB RAM running Ubuntu 8.04 Desktop} + Windows XP + Slackware + Thinking about adding windows 98

  6. #6
    Join Date
    Jun 2009
    Beans
    9

    Re: Forget password samba share

    Quote Originally Posted by papenpj View Post
    Little clarification please on what your situation is.

    1) Your Ubuntu system has the samba share and you want the other computer to stop connecting to it with the old password
    In this case you should be able to use "sudo smbpasswd <username that was stored on other computer>" that will change the password and make it so the computer isn't able to connect anymore.

    2) Your Ubuntu system is connecting to ANOTHER computer and you have the password saved for that Second computer. And want to remove the password from the keyring.
    I'm not exactly sure what to do in this case.

    3) Some situation i didn't list.
    Thank you for the quick reply...

    The case is as your point (2).

    I have an ubuntu system with 2 users. The first is "administrator" and the second is "public" which doesn't have administration rights. The "public" user can connect to any samba share on the samba server (Fedora Core 5), but he can not choose "remember forever". Suppose he accidentally selects the option "remember forever", other computer users who use the user "public" will then be able to access the samba share on the Fedora server he's not supposed to.

    Doing the:
    Code:
    sudo smbpasswd <username>
    with the user "public" is not possible. So I tried with the user "administrator", but when i do
    Code:
    sudo smbpasswd <username>
    it gives the error:
    Code:
    failed to modify password entry for user <username>

  7. #7
    Join Date
    Mar 2009
    Beans
    44
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Forget password samba share

    Well it sounds like then you should run the command on the Fedora system. Do you know what username was used for samba?
    ex} your ubuntu system is remembering the password for "papenpj", so you login to the Fedora machine that is hosting that samba share. And you change the password for the username papenpj. Now, the administator will need a new password. Note: This way is different that you asked because your not changing ubuntu merely making its saved password useless.

    Or you could look under the keyring under the system tab or one of the administration things, Im running windows right now and headed to bed. But I can check back in the morning to see if I can find out exactly for you. I'm still motivating myself to switch my desktop to Ubuntu since I rarely need office 2007. Most of my ubuntu experience is command line
    Last edited by papenpj; June 29th, 2009 at 07:47 AM.
    Pentium III 600MHz, 128Mb RAM running Ubuntu 8.04 Server / Dell Inspirion 6000 1.86GHz, 1GB RAM running Ubuntu 8.04 Desktop} + Windows XP + Slackware + Thinking about adding windows 98

  8. #8
    Join Date
    Jun 2009
    Beans
    9

    Re: Forget password samba share

    Quote Originally Posted by papenpj View Post
    Well it sounds like then you should run the command on the Fedora system. Do you know what username was used for samba?
    ex} your ubuntu system is remembering the password for "papenpj", so you login to the Fedora machine that is hosting that samba share. And you change the password for the username papenpj. Now, the administator will need a new password. Note: This way is different that you asked because your not changing ubuntu merely making its saved password useless.

    Or you could look under the keyring under the system tab or one of the administration things, Im running windows right now and headed to bed. But I can check back in the morning to see if I can find out exactly for you. I'm still motivating myself to switch my desktop to Ubuntu since I rarely need office 2007. Most of my ubuntu experience is command line
    I can not change anything on the Fedora server, because there are other computers connected to the server, who may use the user I'm supposed to delete from the "public" user on this Ubuntu system.

    Your second alternative is more feasible for me in this case. I have read that I need to check the keyring. But I dont know how to do that exactly. I have always been a Windows administrator, but have been a Linux user for quite a while. I'm not afraid to use the command lines. So if u want to show me how, I would very much appreciate it.

    Anyway, just rest for tonight. I appreciate you trying to help me. Thanx

  9. #9
    Join Date
    Mar 2009
    Beans
    44
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Forget password samba share

    ok I just tested it on mine so it should work for you.
    On the top bar you want to go to
    Applications->Accessories->Passwords and Encryption Keys

    Then go to the "Passwords" tab
    Then you can right click on the password you want to delete.

    You may need to restart if you havn't since you saved the password because I did to get it to show up so I could delete it.
    Pentium III 600MHz, 128Mb RAM running Ubuntu 8.04 Server / Dell Inspirion 6000 1.86GHz, 1GB RAM running Ubuntu 8.04 Desktop} + Windows XP + Slackware + Thinking about adding windows 98

  10. #10
    Join Date
    Jun 2009
    Beans
    9

    Re: Forget password samba share

    Quote Originally Posted by papenpj View Post
    ok I just tested it on mine so it should work for you.
    On the top bar you want to go to
    Applications->Accessories->Passwords and Encryption Keys

    Then go to the "Passwords" tab
    Then you can right click on the password you want to delete.

    You may need to restart if you havn't since you saved the password because I did to get it to show up so I could delete it.
    Perfect... Tried it, and it works. Problem solved. Maybe because I haven't mounted the samba share, when I deleted the password entry, so I didn't have to restart.

    Thanks a lot to you, papenpj.... highly appreciated

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
  •