Page 20 of 61 FirstFirst ... 10181920212230 ... LastLast
Results 191 to 200 of 610

Thread: Howto: Fix Windows share browsing issues

  1. #191
    RealG187 is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Mar 2007
    Beans
    1,373

    Re: Howto: Fix Windows share browsing issues

    mpg@mpg-desktop:~$ sudo mount -t cifs //192.168.239.1/Share /home/mpg/Desktop/Host -o credentials=/home/mpg/.auth.winbox.mpg,noperm,uid=mpg,gid=mpg
    mount error(12): Cannot allocate memory
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    Now what's going on ahhhhhhhhhhhhhh

  2. #192
    Join Date
    Sep 2005
    Beans
    13

    Re: Howto: Fix Windows share browsing issues

    OK, what works for me all the time is to install or reinstall samba and here is how I do it.
    Fire up a Terminal window and;

    sudo apt-get install samba

    sudo smbpasswd -a USERNAME

    (USERNAME,is your actual username.)

    mkdir /home/USERNAME/test

    Next, backup copy of the original smb.conf file to your home folder,

    sudo cp /etc/samba/smb.conf ~

    Now use your text editor of choice to edit smb.conf:

    sudo gedit /etc/samba/smb.conf

    Once smb.conf has loaded, add this to the very end of the file:

    [test]
    path = /home/USERNAME/test
    available = yes
    valid users = USERNAME
    read only = no
    browsable = yes
    public = yes
    writable = yes

    (Keep in mind no spaces between the lines and also that there should be a single space both before and after each of the equal signs.)

    These settings will share the test folder we created earlier, and give your username and your username alone permission to read and write to the folder save smb.conf, exit the text editor, and restart Samba;

    sudo /etc/init.d/samba restart

    Samba should be working now; try accessing the shared folder from another computer on your LAN.
    This worked for my broken samba on 3x 9.10 upgrades and 4 x 9.10 fresh installs, the network has 2 x vin7 machines and 2 x 6p.
    Last edited by zwdev; November 6th, 2009 at 03:12 AM. Reason: typo error

  3. #193
    RealG187 is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Mar 2007
    Beans
    1,373

    Re: Howto: Fix Windows share browsing issues

    The host is Windows...

  4. #194
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Howto: Fix Windows share browsing issues

    Quote Originally Posted by Mr_Bumpy View Post
    2. (optional) Make it so you can mount shares using sudo without having to enter your password. Do this by running sudo visudo from a terminal, and adding the following lines at the end:
    Code:
    fred	ALL=NOPASSWD:/bin/mount
    fred	ALL=NOPASSWD:/bin/umount
    Never ever ever perform step 2. This is a potentially large security risk. To make the share mountable by anyone without sudo, all you have to do is add the line to /etc/fstab, and include the "users" option like so:
    Code:
    //winbox/myfiles /media/myfiles cifs users,credentials=/home/fred/.auth.winbox.fred,noperm,uid=fred,gid=fred
    Then this will work:
    Code:
    mount /media/myfiles
    For more information on how to mount shares using CIFS (as Mr_Bumpy shows), follow the howto in the 2nd link in my sig, complete with troubleshooting tips.
    Last edited by dmizer; November 6th, 2009 at 02:51 PM.

  5. #195
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Howto: Fix Windows share browsing issues

    Those of you getting the "Unable to mount location. Failed to retrieve share list from server." error and are sure that your firewall is configured according to the directions under "Problem 3"; are any of you using Win7 in your network? If so, please see this post: http://ubuntuforums.org/showpost.php...4&postcount=34

  6. #196
    RealG187 is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Mar 2007
    Beans
    1,373

    Re: Howto: Fix Windows share browsing issues

    I tried adding the mounting commands to "~/.bash_profile"

  7. #197
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Howto: Fix Windows share browsing issues

    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |
    [SIGPIC][/SIGPIC]

  8. #198
    Join Date
    Feb 2009
    Beans
    9
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Howto: Fix Windows share browsing issues

    I've read through all 20 pages of this thread and can't get my problem resolved.

    I have a clean reinstall of Ubuntu 9.04, a Fedora Core 8 samba server, an Ubuntu 9.04 samba enabled laptop, and two or three Windows XP boxes.

    Before the reinstall, I was able to see everything from my desktop 9.04 box from Nautilus. Now, I can only see the other samba servers on the network.

    I can attach to any machine via the smbclient cli, and through nautilus or firefox using smb://hostname with no problem.

    I've followed (I think) every word of advice at the start of this thread to no avail.

    I'm out of ideas at this point. Any other pointers would be appreciated.

    Below is the output of findsmb. smbtree produced no output at all.

    findsmb

    *=DMB
    +=LMB
    IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
    ---------------------------------------------------------------------
    192.168.15.5 TORINO [FAMILY] [Unix] [Samba 3.0.33-0.fc8]
    192.168.15.8 GRANDPRIX [GRANDPRIX] [Unix] [Samba 3.3.2]
    192.168.15.9 MUSTANG [FAMILY] [Unix] [Samba 3.3.2]
    root@MUSTANG:/home/fender# smbtree
    Password:
    root@MUSTANG:/home/fender#

    root@MUSTANG:/home/fender# iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination


    Config files attached.
    Attached Files Attached Files
    Last edited by Fender56; November 8th, 2009 at 03:01 AM. Reason: forgot to attach files

  9. #199
    Join Date
    Feb 2009
    Beans
    9
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Howto: Fix Windows share browsing issues

    Well...

    I don't know how, but it magically started working again.
    Here's what I did, although I've done the same thing a half dozen times or more in the last 24 hours.

    1. Uninstalled samba, samba-common, smbclients, fusesmb, smbfs, swat, winbind, and libsmbclient (I *think*).
    2. Installed the samba4 counterparts of each.
    3. Reboot
    4. Ran some samba4-client commands: all failed in some way or other.
    5. Uninstalled all the samba4 pieces I could find.
    6. Reinstalled all pieces that were uninstalled in step 1
    7. Reboot.

    Boom. Magic.

    I'm not real sure, but I might not have uninstalled fusesmb in previous cycles. If not, that is maybe what did it this time. I hate it when things start working again and I can't confidently identify why.

    I'm a little reluctant to reboot now.

  10. #200
    Join Date
    Oct 2009
    Location
    Budapest
    Beans
    8
    Distro
    Ubuntu

    Re: Howto: Fix Windows share browsing issues

    http://sidux.com/PNphpBB2-viewtopic-t-14163.html

    Try this solution. It helped me solving the same issue.
    Cheers

Page 20 of 61 FirstFirst ... 10181920212230 ... LastLast

Tags for this Thread

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
  •