Page 1 of 2 12 LastLast
Results 1 to 16 of 17

Thread: help cant access shared folder on win 7 pc from a linux pc

  1. #1
    member your a womble pumpman's Avatar
    Join Date
    Sep 2004
    Posts
    684
    Thanks
    25
    Thanked
    37 times in 13 posts

    help cant access shared folder on win 7 pc from a linux pc

    Hope one of you Linux gurus can help.

    I have my main pc upstairs which runs win 7 professional and it has all my files and downloads etc on it.

    Previously the main pc had win xp and then vista on it and accessing the shared files was very simple.

    So sitting in my living room on the laptop running linux mint 9 i click on the network tab, i can see the main pc listed
    I click on it and up pop the user name and password box but no matter if i input the correct info it keeps popping up wit the login box.

    On xp and vista i used to put the info in the box and shazzam i was in so im stumped despite setting all correct permissions etc why i can't access the win 7 pc

    hope someone can help
    thanks

  2. #2
    Registered User
    Join Date
    Oct 2010
    Posts
    7
    Thanks
    0
    Thanked
    2 times in 2 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    Not sure what verison of samba you are running, it might to update it. It would be helpful to have some log information from the connection. There are a couple ways you can get it; first off you can try make connection as you normally do and then check logs for the error messages. The other way is to connect via the command line, this will produce output which can be helpful...

    To connect via the command line create a folder in your linux home folder called something like share or win7drive, anything you want really ... then go to the terminal and enter this


    sudo mount -t cifs //XXX/YYY ~/win7drive/ -o -v username=username,password=password,iocharset=utf8,file_mode=0777,dir_mode=0777

    Where XXX = the ip or name of your windows server
    YYY = the name of the share on the windows machine
    win7drive = the name of the folder you created in your home
    username = username used to log onto the shared folder
    password = is... well the password used to log onto the share folder

    Press enter and you should see some output with some insight to the problem. Pop it back here and we can take it from there.

  3. Received thanks from:

    pumpman (28-10-2010)

  4. #3
    Registered+
    Join Date
    Oct 2010
    Posts
    32
    Thanks
    0
    Thanked
    1 time in 1 post
    • Joe of Loath's system
      • Motherboard:
      • MSI 870-C45
      • CPU:
      • AMD Phenom B50
      • Memory:
      • 4gb 1333mhz Corsair DDR3
      • Storage:
      • 1TB + 500GB SATA drives
      • Graphics card(s):
      • nVidia GTX460
      • Case:
      • Coolermaster Elite 310
      • Operating System:
      • Ubuntu 10.04 + Windows 7 x86_64
      • Monitor(s):
      • 19" HP monitor

    Re: help cant access shared folder on win 7 pc from a linux pc

    Have you tried turning off password authentication on the Windows box? If it's on your network you don't really need it, and it adds an extra layer of hassle.

  5. Received thanks from:

    pumpman (28-10-2010)

  6. #4
    member your a womble pumpman's Avatar
    Join Date
    Sep 2004
    Posts
    684
    Thanks
    25
    Thanked
    37 times in 13 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    thank you for the suggestions ,I will give them a whirl and report back

  7. #5
    member your a womble pumpman's Avatar
    Join Date
    Sep 2004
    Posts
    684
    Thanks
    25
    Thanked
    37 times in 13 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    Quote Originally Posted by gippy View Post
    Not sure what verison of samba you are running, it might to update it. It would be helpful to have some log information from the connection. There are a couple ways you can get it; first off you can try make connection as you normally do and then check logs for the error messages. The other way is to connect via the command line, this will produce output which can be helpful...

    To connect via the command line create a folder in your linux home folder called something like share or win7drive, anything you want really ... then go to the terminal and enter this


    sudo mount -t cifs //XXX/YYY ~/win7drive/ -o -v username=username,password=password,iocharset=utf8,file_mode=0777,dir_mode=0777

    Where XXX = the ip or name of your windows server
    YYY = the name of the share on the windows machine
    win7drive = the name of the folder you created in your home
    username = username used to log onto the shared folder
    password = is... well the password used to log onto the share folder

    Press enter and you should see some output with some insight to the problem. Pop it back here and we can take it from there.
    I had a quick look to see what version of samba is running and its Samba Server Configuration Tool 1.2.63

    here is the text copied from the terminal after inputting the above info you gave me i have xxx'd out my password


    simon@dellmini ~ $ sudo mount -t cifs //192.168.1.70/videos ~/win7share/ -o -v simon=username,xxxxxxxx=password,iocharset=utf8,file_mode=0777,dir_mode=0777
    [sudo] password for simon:
    Usage: mount -V : print version
    mount -h : print this help
    mount : list mounted filesystems
    mount -l : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
    mount device : mount device at the known place
    mount directory : mount known device here
    mount -t type dev dir : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
    mount --bind olddir newdir
    or move a subtree:
    mount --move olddir newdir
    One can change the type of mount containing the directory dir:
    mount --make-shared dir
    mount --make-slave dir
    mount --make-private dir
    mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
    mount --make-rshared dir
    mount --make-rslave dir
    mount --make-rprivate dir
    mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using -L label or by uuid, using -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say man 8 mount .
    simon@dellmini ~ $

  8. #6
    Registered User
    Join Date
    Oct 2010
    Posts
    7
    Thanks
    0
    Thanked
    2 times in 2 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    Ah, sorry my bad... I should have made it clearer; the replacements need to go on the right side of the = so for example;

    sudo mount -t cifs //192.168.1.70/videos ~/win7share/ -o -v username=simon,password=xxxxxx,iocharset=utf8,file_mode=0777,dir_mode=0777

    see how that goes ...

  9. #7
    member your a womble pumpman's Avatar
    Join Date
    Sep 2004
    Posts
    684
    Thanks
    25
    Thanked
    37 times in 13 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    thank you for the reply, broadband went down last night so could not reply, I did as you suggested and get the same blurb , the wifes,s laptop which runs xp shows up (its shared folder) without any intervention from me ,anyway here is the output from the terminal


    simon@dellmini ~ $ sudo mount -t cifs //192.168.1.70/videos ~/win7share/ -o -v username=simon,password=xxxxxxxxx,iocharset=utf8,file_mode=0777,dir_mode=0777
    [sudo] password for simon:
    Usage: mount -V : print version
    mount -h : print this help
    mount : list mounted filesystems
    mount -l : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
    mount device : mount device at the known place
    mount directory : mount known device here
    mount -t type dev dir : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
    mount --bind olddir newdir
    or move a subtree:
    mount --move olddir newdir
    One can change the type of mount containing the directory dir:
    mount --make-shared dir
    mount --make-slave dir
    mount --make-private dir
    mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
    mount --make-rshared dir
    mount --make-rslave dir
    mount --make-rprivate dir
    mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using -L label or by uuid, using -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say man 8 mount .

    thanks again for your time I know how without having the pc in front of you it can be a matter of twenty questions finding out what the person has done or not done

  10. #8
    member your a womble pumpman's Avatar
    Join Date
    Sep 2004
    Posts
    684
    Thanks
    25
    Thanked
    37 times in 13 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    update

    ive managed to mount a share what i noticed was that with the info you got me to input above, it placed a print driver share on dell mini and it could be seen from the win 7 pc so i copied part of the address and changed it to win7share in samba config manager and alakazam there it was going to test it now

    many thanks again for the help

  11. #9
    Registered User
    Join Date
    Oct 2010
    Posts
    7
    Thanks
    0
    Thanked
    2 times in 2 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    Glad you got it sorted. Does this mean you are mounting the shared drive manually every time you need it? Would you mind dumping the command here that you used to mount the share? I would be interested to see how it differed.

  12. #10
    member your a womble pumpman's Avatar
    Join Date
    Sep 2004
    Posts
    684
    Thanks
    25
    Thanked
    37 times in 13 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    yes manually when i need it , I was getting ahead of myself, i could see the share from the win7 pc but not from the linux pc, although it would show me a dell mini share on the linux pc under network and the win7share folder but of course that was on the linux pc
    so what ive done is go to connect to server
    input the shares folder
    input the win7 pc name
    told it its on the workgroup
    double checked the folder i wanted to share on the win7 pc has all the permissions set the way i need
    and it mounts that share every time doing it that way
    the upstairs pc is off just now but when im home from work tomorrow ill connect then post a log

  13. #11
    Registered+
    Join Date
    Jul 2009
    Posts
    70
    Thanks
    9
    Thanked
    19 times in 16 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    You can save yourself some hassle and add it to fstab so that it mounts automagically:

    Code:
    //windows.box/share /where/you/want/to/mount     cifs    credentials=/etc/samba/private/credentials_file,rw,nobrl,_netdev,uid=1000 0 0
    Will wait for the network to become available, mount the share read/write with the owner as UID 1000 (usually this is the first non-priv'd user, change it to suit your user if needed).

  14. Received thanks from:

    pumpman (05-11-2010)

  15. #12
    member your a womble pumpman's Avatar
    Join Date
    Sep 2004
    Posts
    684
    Thanks
    25
    Thanked
    37 times in 13 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    woot managed to get the linux laptop to wake up the windows pc upstairs

    walls i was looking at the code you posted above thankyou, if it were just me that was to use the share as admin how would i do that ?

    ie the pc is called simon-pc, the folder that i have shared is called downloads its on the workgroup and the user name is simon

    thanks

  16. #13
    Registered+
    Join Date
    Jul 2009
    Posts
    70
    Thanks
    9
    Thanked
    19 times in 16 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    Quote Originally Posted by pumpman View Post
    woot managed to get the linux laptop to wake up the windows pc upstairs

    walls i was looking at the code you posted above thankyou, if it were just me that was to use the share as admin how would i do that ?

    ie the pc is called simon-pc, the folder that i have shared is called downloads its on the workgroup and the user name is simon

    thanks
    well, you would add a line to /etc/fstab on the linux box that looked something like:
    Code:
    //simon-pc/downloads /home/simon/windows-share     cifs    credentials=/etc/samba/private/credentials_file,rw,nobrl,_netdev,uid=1000 0 0
    or
    Code:
    //simon-pc/downloads /home/simon/windows-share     cifs    username=simon,password=mypassword,rw,nobrl,_netdev,uid=1000 0 0
    Your linux box needs to be able to resolve "simon-pc", usually via either netbios, DNS or local hosts file (beware of DHCP) and the folder /home/simon/windows-share can be anything you want (but needs to exist and your user needs to have the relevant permissions on it - e.g. you can't mount your share on /mnt and expect to be able to write to it, so it's best in your home folder).

    The credentials file is usually the preferred method (owned by root with 600 permissions), but you can use the second method if you want, however this does mean that your username and password (for the windows box) are saved in clear text and readable by any user on the linux box.

    You can check your uid in /etc/passwd: it will be in the form <username>:<shadow_placeholder>:<uid>:etc:etc

  17. Received thanks from:

    pumpman (12-11-2010)

  18. #14
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    Glad its working, but I think I'd put linux on the server and put Win7 on the laptop (which funnily enough, is what I have here at home!) - or just run Linux on both.
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  19. Received thanks from:

    pumpman (12-11-2010)

  20. #15
    member your a womble pumpman's Avatar
    Join Date
    Sep 2004
    Posts
    684
    Thanks
    25
    Thanked
    37 times in 13 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    thanks for the help , thats me all sorted now, what im doing next is bringing back to life my amahi server (fedora based)
    and the win 7 pc can go back to being the work pc and i will carry on using this laptop with linux mint on it to connect etc because it runs far faster and boots quicker than the xp that was on it before

  21. #16
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: help cant access shared folder on win 7 pc from a linux pc

    Ah - another Fedora man - good to see!
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can people on the internet spy on my network shared folder?
    By latrosicarius in forum PC Hardware and Components
    Replies: 3
    Last Post: 09-03-2006, 05:16 PM
  2. Whither Linux?
    By Nick in forum Question Time
    Replies: 49
    Last Post: 11-11-2005, 06:06 PM
  3. Belkin F5D6130 802.11b Wireless Access Point
    By Howard in forum Reader Reviews
    Replies: 4
    Last Post: 10-12-2004, 11:20 PM
  4. Access denied :<
    By liquid in forum Software
    Replies: 3
    Last Post: 08-08-2004, 01:47 PM
  5. Win XP Access denied
    By Nemeliza in forum Software
    Replies: 14
    Last Post: 15-01-2004, 03:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •