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

Thread: Networking with Debian and Windows

  1. #1
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts

    Networking with Debian and Windows

    Yes, it's me again

    At the moment, I'm trying to network Debian and Windows, and so far I can access my Debian PC from Windows. So:

    1. How can I access Windows from my Debian PC?

    2. I know I can't write onto my Windows PC from Debian (due to NTFS being used), but can my Windows PC write onto my Debian hard drive?

    Thanks

    Mike
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  2. #2
    Member
    Join Date
    Jul 2003
    Posts
    57
    Thanks
    0
    Thanked
    0 times in 0 posts
    1. To 'access' a windows machine and by that I presume you mean access the files not remote logins you would need to have the Samba clients installed on debian, if you have Gnome or KDE loaded there is IIRC a network browser icon you can click on which should locate Windows shares.

    2. Yes it can through a Samba server, go to www.samba.org for details if you have any specific problems getting it to work I shall try and help you out.

  3. #3
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    Sorry, forgot to mention I was using Samba. I've installed Samba, and used SWAT to configure it so that Windows can login to the Debian PC. However, when I try to mount to the Windows PC from the Debian PC, I get this:

    2523: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
    SMB connection failed.

    Thanks

    Mike
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  4. #4
    Member
    Join Date
    Jul 2003
    Posts
    57
    Thanks
    0
    Thanked
    0 times in 0 posts
    what are you typing in to connect to the Windows PC?

  5. #5
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    mount -t smbfs //[computer name]/[shared directory] /mnt/windows
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  6. #6
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,026 times in 677 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    try adding -o username=foo,password=bar

    or write username=foo and password=bar into a text file, and use -o credentials=/path/to/that/file

    sounds like a login failure to me, is all. you can enable anonymous logins in windows by going into the properties for the network connection, it's somewhere around there (authinticate unknown stuff as guest tickbox)

  7. #7
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    Thanks directhex (again!), that got it working - I tried it before using username= and password=, but I didn't use -o. I assume that if I add this into fstab, I only need to type in 'mount /mnt/windows'?
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  8. #8
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    I managed to configure fstab correctly - however, now I can't seem to copy my files - when I try copying, some files can't be read. Any ideas?

    Thanks

    Mike
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  9. #9
    Member
    Join Date
    Jul 2003
    Posts
    57
    Thanks
    0
    Thanked
    0 times in 0 posts
    can you browse /mnt/windows and read files fine?

    what does it say when you try and write to it?

  10. #10
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,026 times in 677 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    Quote Originally Posted by mike_w
    I managed to configure fstab correctly - however, now I can't seem to copy my files - when I try copying, some files can't be read. Any ideas?

    Thanks

    Mike
    security settings of some sort at the remote end?

    or perhaps locally. do ls -l in the mounted folder to see the permissons it's virtually set. you can change them with -o again (i think dmask, fmask, or umask will apply)

  11. #11
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    I can read (i.e. copy) most files from the mount fine - it's just a few that won't budge!

    I've logged into the Windows machine as admin, and the problem is still there even if I log in as root and try copying.
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  12. #12
    Member
    Join Date
    Jul 2003
    Posts
    57
    Thanks
    0
    Thanked
    0 times in 0 posts
    It sounds like a permissions issue, like directhex said type ls -l on the linux box while your in a directory with a file you cant copy and let us know what it says next to that file.

    Also check that the Windows username you are using when you mount the share has permission to access the file on the Windows box.

  13. #13
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    The Windows username is administrator, so it should be able to access everything!

    As root, shouldn't I have all the permissions I should need to access the file(s)?
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  14. #14
    Member
    Join Date
    Jul 2003
    Posts
    57
    Thanks
    0
    Thanked
    0 times in 0 posts
    on the local machine certainly but maybe not on the network share, have you tried typing in ls -l on the linux machine yet in one of the effect areas of the network share?

  15. #15
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    All the files have the permissions -rwxr--r--.
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  16. #16
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    what is the exact error when you try to copy them ?

    does it say "can't read" ?
    It is Inevitable.....


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. Replies: 5
    Last Post: 28-10-2004, 06:32 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
  •