Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Can't Share a Ubuntu Folder with Windows 10

  1. #1
    Join Date
    Jun 2022
    Location
    South Florida USA
    Beans
    24
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Can't Share a Ubuntu Folder with Windows 10

    Very Frustrated.. !!
    I've tried everything, but likely missing the obvious.
    I just reinstalled Ubuntu 22.04 lts so I have a clean install.
    Install XRDP, Works perfectly.
    Clicked Share a folder, Says it needed to install software, I Assume Samba ??
    I Can even see all the "Workgroup" shared folders on my local network on the Ubuntu 22.04 and access them after entering User/PW
    However on the Windows 10 PC side.. No Go ..

    Goto one of 2 Windows 10 desktops and I see the Ubuntu Server, and I click on of the two two shared folders,
    I click the folder, it asks for User and PW, I enter the only user account I have on the Ubuntu Server, and it won't accept that.

    I'm reluctant to start putting in a bunch of other commands via terminal, as I don't want to screw up this clean installation..

    Please !! Can someone help..??

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Can't Share a Ubuntu Folder with Windows 10

    https://ubuntu.com/tutorials/install...onfigure-samba is the guide to setup a samba server on Ubuntu 22.04. This will let Windows computers access storage on a Linux system. Seems that tutorial is way, way, out of date. Sorry. Here's the Ubuntu Server Guide: https://ubuntu.com/server/docs/samba-introduction samba introduction. The meat seems to be here: https://ubuntu.com/server/docs/samba-file-server ... since you likely aren't running AD or LDAP.

    If you want to go the other way, use an Ubuntu Desktop to connect to a Windows network share, the instructions are different. I didn't google them, but suspect they aren't hard to find.
    Last edited by TheFu; July 28th, 2022 at 03:09 AM.

  3. #3
    Join Date
    Jun 2022
    Location
    South Florida USA
    Beans
    24
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Can't Share a Ubuntu Folder with Windows 10

    Let me Clarify here...

    I'm NOT using a Ubuntu Server OS. I'm using Ubuntu Desktop 22.04 OS..

    And I have very minimal knowledge of Linux.

    Problem: I can't access a Shared Folder on my Ubuntu Desktop Computer.
    I can See the Shared Ubuntu Folders on the Win 10 Desktop, but I Don't have privileges to access to shared folders (Won't accept the User/PW)

    Some say Ubuntu is easy. So far not the case for me, some say other distro's like Mint OS are easier for (First Time Window) Users? Unknown.
    But it seems so far This Distro seems WAY Complicated and problematic. And I realize my Lack of knowledge is likely the problem.
    BTW: I'm a retired Network Admin, so I'm quite computer Network Savvy. For what that's worth. LoL

    I did install OpenMediaVault 6 and it was Super Easy to share Files and do Backups. It worked Perfectly even on Windows Desktop Clients.
    But my goal is now to use Ubuntu 22.04 Desktop OS for:
    (1) RDP Terminal Services using XRDP (Working)
    (2) Folder Sharing (Not working)
    (3) Backups (NA so far, until (2) is resolved)

    Present Setup:
    1. OpenMediaServer 6 and it works perfectly on all my home devices, sharing files and folders on workstations, and Media devices.
    2. Windows server 2016: Works perfectly sharing File and Folders on all devices including the new Ubuntu Desktop 22.04 that can open the folders on the Windows Server. Yet not the other way around.
    3. Raspberry Pi acting as DNS server running PiHole. (Working and Stable)
    4. Raspberry Pi Running Home Assistant.(working and Stable)
    5. 2ea Windows 10 Workstations, and 3 Thin Client Devices. (All Stable and Working)

    Reason I've listed many of my devices on my Network is because EVERYTHING Works fine EXCEPT UBUNTU Desktop 22.04 OS Computer.
    I'm sure it's something to do with Samba? As the Folders show up on my Clients, but Windows doesn't accept the User/PW to the shared folder on Ubuntu.

    SO the problem again is .. Windows 10 does not allow me to access to a Shared Folder on my Ubuntu Desktop OS..
    I can see the Folders on the Network, but I don't have the privileges to access from Windows 10

    Sorry for the rambling here. But I asked weeks ago and never got anywhere with this.
    Thank you so very much in advance for anyone's Help..
    Last edited by pcman51; July 28th, 2022 at 05:21 AM.

  4. #4
    Join Date
    Jun 2022
    Location
    South Florida USA
    Beans
    24
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Can't Share a Ubuntu Folder with Windows 10

    Thanks for the suggestions.
    I looked at your link. Yes Maybe.
    https://ubuntu.com/server/docs/samba-file-server

    But why do I need to do this when Ubuntu Desktop 22.04 OS has the GUI commands on the desktop ??

  5. #5
    Join Date
    Jun 2022
    Location
    South Florida USA
    Beans
    24
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Can't Share a Ubuntu Folder with Windows 10

    Also the Ubuntu Desktop 22.04 OS finds my Windows Shared Folders on both my workstations and Windows Server just fine. Just not the other way around.

  6. #6
    Join Date
    May 2010
    Beans
    3,402

    Re: Can't Share a Ubuntu Folder with Windows 10

    Did you run:
    Code:
    sudo apt update
    sudo apt -y install samba

  7. #7
    Join Date
    May 2010
    Beans
    3,402

    Re: Can't Share a Ubuntu Folder with Windows 10

    If you can SSH to the system then you have an SFTP server by default and Windows will be able to connect to that with all sorts of clients.

  8. #8
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Can't Share a Ubuntu Folder with Windows 10

    Quote Originally Posted by pcman51 View Post
    Very Frustrated.. !!
    ...
    I just reinstalled Ubuntu 22.04 lts so I have a clean install.
    .
    Clicked Share a folder, Says it needed to install software, I Assume Samba ??
    ...
    Goto one of 2 Windows 10 desktops and I see the Ubuntu Server, and I click on of the two two shared folders,
    I click the folder, it asks for User and PW, I enter the only user account I have on the Ubuntu Server, and it won't accept that.
    It appears you created what samba calls a "usershare" from your file manager and that you are using Ubuntu 22.04.

    [1] Unlike Windows there are two passwords for your Linux user when using samba.

    The password you use locally when you log into the server itself and the one you use for samba. You need to add your user to the samba password database, for example to add myself I would run:
    Code:
    sudo smbpasswd -a morbius
    [2] Since you are creating shares from your file manager it is likely they are in your home folder because that is what it's designed to do.

    Ubuntu 22.04 changed the permissions on your home folder such that only the owner of the home folder itself can access anything under it. This is true on the server itself and via samba.

    There are multiple ways around this issue but if you are only accessing it with your own Linux user name it shouldn't be an issue.

    Should you have further problems posting the output of the following commands will tell us how you are set up:
    Code:
    testparm -s
    Code:
    net usershare info --long

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Can't Share a Ubuntu Folder with Windows 10

    Quote Originally Posted by pcman51 View Post
    Let me Clarify here...

    I'm NOT using a Ubuntu Server OS. I'm using Ubuntu Desktop 22.04 OS..

    And I have very minimal knowledge of Linux.
    This is just background. Since Morbius1 is here, follow those suggestions. He has a knack for samba and solving issues.

    Samba is used for both desktops and servers. The server instructions will work for desktop installs too. Linux isn't like MSFT. It doesn't withhold anything just because you installed a GUI. Everything is available and generally works, but not always.

    "Server" is a generic term ... don't think if it as a piece of hardware. In software, "server" implies there are "clients", at least 1. For connections between 2 computers, 1 is the client and the other is the server - about 99.99% of the time (there are exceptions, but very few).

    Usershares seem to cause multiple unintended issues. We've seen that in these forums related to non-Samba/CIFS stuff. You may want to rethink using that mode for a few years.

    As for having a remote desktop, I'd encourage you NOT to use RDP, but x2go instead. I ran a connection from a Win7 machine into a Linux desktop for a few years all day, every day, both over the LAN and over the internet, from 4 continents. x2go is secure, solid, and performs 2-3x better than VNC or RDP solutions, IME. Others have seen similar results - "like comparing night and day" is a common statement after they switch. A few people post about x2go here with instructions, so if you choose to go that way, be certain to look those up. Get ssh working between the 2 systems before attempting x2go. It uses ssh-based authentication, so that is required anyway.

  10. #10
    Join Date
    Jun 2022
    Location
    South Florida USA
    Beans
    24
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Can't Share a Ubuntu Folder with Windows 10

    Quote Originally Posted by TheFu View Post
    As for having a remote desktop, I'd encourage you NOT to use RDP, but x2go instead. I ran a connection from a Win7 machine into a Linux desktop for a few years all day, every day, both over the LAN and over the internet, from 4 continents. x2go is secure, solid, and performs 2-3x better than VNC or RDP solutions, IME. Others have seen similar results - "like comparing night and day" is a common statement after they switch. A few people post about x2go here with instructions, so if you choose to go that way, be certain to look those up. Get ssh working between the 2 systems before attempting x2go. It uses ssh-based authentication, so that is required anyway.
    Yes Indeed I understand the security risks. But this is only used on a Local Home Network.
    And mostly for Home Automation in my own home.
    I have 3ea Dell/Wyse Thin Clients that only support the legacy RDP. So in my case XRDP works really well for my needs.
    If I find the time, I might one day consider flashing the tiny SSD on the Thin Clients with a more modern Thin Client Linux Distro. But for now things works great.
    My Biggest Goal is the retire my Windows 2016 Server that's EOL and no longer gets security updates, the Ubuntu 22.04 Server will hopefully make that happen.

Page 1 of 3 123 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
  •