Results 1 to 10 of 10

Thread: Vista shared folder access please

  1. #1
    Join Date
    Apr 2008
    Beans
    175

    [SOLVED] Vista shared folder access please

    I've got Ubuntu 8.10 on a network with Vista. I've shared folders in Vista and the only ones I can access are the "Public" folders in Vista. If I set others to be shared, like my Users directory, I can see it in the Ubuntu networking section, but no matter what I do I cannot gain entry.

    So far I've tried adding a new connection every which way I can think, but I get "cannot display location smb://my-pc/users connection timed out".

    I've also tried the following, which I've seen in other threads:

    Code:
    sudo mount -t cifs //my-pc/Users/me /home/me/MyMountedVista
    Which seems to work, but then when I try to access the mount it says 'You do not have the permissions necessary to view the contents of "MyMountedVista"'

    What gives?
    Last edited by knottshawk; September 18th, 2009 at 03:52 PM.

  2. #2
    Join Date
    Apr 2008
    Beans
    175

    Re: Vista shared folder access please

    ..
    Last edited by knottshawk; September 18th, 2009 at 02:47 PM. Reason: This post was incorrect

  3. #3
    Join Date
    Sep 2009
    Location
    In a cold, dark place
    Beans
    186
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Vista shared folder access please

    Try this ...

    Code:
    sudo mount -t cifs //my-pc/Users/me /home/me -o VistaUsername -p VistaPassword
    Mounts the share as the VistaUsername using the Vistapassword; should give you all the access that Vistausername enjoys locally on the machine.

    Code:
    sudo apt-get install samba
    If i recall correctly, should update your SMB to the latest version available in your package repos.
    I think

  4. #4
    Join Date
    Apr 2008
    Beans
    175

    Re: Vista shared folder access please

    I don't have a Vista username/password... :S

    I'm not sure how to update SMB... any tips? This is a new install of ubuntu, so I assumed we'd be all updated already. I think my Samba is 3.2.3 or something.

  5. #5
    Join Date
    Sep 2009
    Location
    Kuala Lumpur
    Beans
    12

    Smile Re: Vista shared folder access please

    first search the window partition, #fdisk -l
    in my case, it is /dev/sda2
    make directory here like windrive under /mnt
    and run this command


    #mount -t ntfs /dev/sda2 /mnt/windrive -o “umask=022″

  6. #6
    Join Date
    Apr 2008
    Beans
    175

    Re: Vista shared folder access please

    Quote Originally Posted by prasad.bh1 View Post
    first search the window partition, #fdisk -l
    in my case, it is /dev/sda2
    make directory here like windrive under /mnt
    and run this command


    #mount -t ntfs /dev/sda2 /mnt/windrive -o “umask=022″
    I don't really know what you mean... more specifics please.

    Also, on some shares I don't get the aforementioned error, but rather just get a black directory when I browse to the mounted windows share.

  7. #7
    Join Date
    Sep 2009
    Location
    In a cold, dark place
    Beans
    186
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Vista shared folder access please

    Quote Originally Posted by prasad.bh1 View Post
    first search the window partition, #fdisk -l
    in my case, it is /dev/sda2
    make directory here like windrive under /mnt
    and run this command


    #mount -t ntfs /dev/sda2 /mnt/windrive -o “umask=022″

    According to the original post, the Vista machine is on a seperate PC all together (\\my-pc\) . The commands I quote above will only show any Windows partitions on the SAME computer as Ubuntu is installed. This is why your newly mounted folder is blank. It does not exist

    As for not having a Vista username and password, perhaps this is why it is failing!
    I would check by (on Vista machine) Right click My Computer > Manage > Users and Groups > Users

    Or check in the C:\Users folder for folder names (again, on the Vista machine).

    There will be at least one user in there (Administrator) which you may be using to log in to Vista (auto logon?) Try

    Code:
    sudo mount -t cifs //my-pc/Users/me /home/me -o VistaUsername
    If asked for a password by terminal, just leave blank and hit enter.



    Oh wait, I also notice you're trying to mount a folder not a share .... "//my-pc/users" instead of "//my-pc/users/username/" may work
    Last edited by badger_fruit; September 18th, 2009 at 03:33 PM.

  8. #8
    Join Date
    Apr 2008
    Beans
    175

    Re: Vista shared folder access please

    BRILLIANT! Badger, you were right on... I assumed I didn't have to include my vista username since I don't use logons or require passwords for folder access. It works like a charm now! Thanks so much!

  9. #9
    Join Date
    Sep 2009
    Location
    In a cold, dark place
    Beans
    186
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Vista shared folder access please

    Quote Originally Posted by knottshawk View Post
    BRILLIANT! Badger, you were right on... I assumed I didn't have to include my vista username since I don't use logons or require passwords for folder access. It works like a charm now! Thanks so much!
    You're very welcome! I am pleased that my advice has helped!
    /dons "hat of pride" and goes back to the dark place ...


    By the way, this will create the mount only until you reboot (or perhaps log out).
    For a permanant solution, add the line to your /etc/fstab

    Code:
    //my-pc/user  /folder/to/mount/into cifs    auto,uid=local_ubunutu_username,gid=users,_netdev    0    0
    I can never remember what the 0 0 at the end means lol but the rest should be pretty self-explanatory!
    Last edited by badger_fruit; September 18th, 2009 at 04:00 PM.

  10. #10
    Join Date
    Apr 2008
    Beans
    175

    Re: Vista shared folder access please

    Quote Originally Posted by badger_fruit View Post
    You're very welcome! I am pleased that my advice has helped!
    /dons "hat of pride" and goes back to the dark place ...


    By the way, this will create the mount only until you reboot (or perhaps log out).
    For a permanant solution, add the line to your /etc/fstab

    Code:
    //my-pc/user  /folder/to/mount/into cifs    auto,uid=local_ubunutu_username,gid=users,_netdev    0    0
    I can never remember what the 0 0 at the end means lol but the rest should be pretty self-explanatory!
    Yep... I had already done that... it was just getting the initial connection working that was a bear!

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
  •