Skip to content
Ubuntu Linux

Enable Personal File Sharing in Ubuntu Linux

Richard
Written by
Richard
Updated 5 min read
How to Enable or Disable Microsoft Defender Cloud Protection
How to Enable or Disable Microsoft Defender Cloud Protection
Before you start
  • 19 steps
  • Includes a restart or sign-out

Personal file sharing in Ubuntu Linux lets you send files directly to other computers on your home network without using a USB drive. This built-in feature uses a special folder named Public to share items quickly with family or friends nearby.

You can turn on file sharing in just a few clicks through your Ubuntu settings. Once you set it up, you choose whether people need a password to open your shared files, which keeps your computer safer while you share. The steps below follow the GNOME desktop that Ubuntu uses by default. Menu names and layout can differ slightly between Ubuntu releases, so if a screen looks a little different from the screenshots, look for the same wording.

⚡ Quick Answer

To turn on personal file sharing in Ubuntu, install gnome-user-share with sudo apt install gnome-user-share in a terminal (Ctrl+Alt+T). Then open the System menu in the top-right corner, select Settings, click Sharing, switch the top toggle to On, and click File Sharing. Turn on its switch. Files in your Public folder become visible to devices on your network.

Advertisement

How to turn on or off personal file sharing in Ubuntu Linux

⚠️WarningThis feature shares the files in your Public folder with other computers on your network. The Public folder sits inside your Home folder. Anything you put there becomes visible to people who connect, so keep private documents in other folders.
📝Good to KnowIt is a handy way to move documents between devices without a USB drive. It is meant for a trusted local network, such as your home Wi-Fi, and not for the open internet. You can also turn it off again at any time, and the last steps show how.
Advertisement

Ubuntu needs the gnome-user-share package before the File Sharing option can appear in Settings. Install it from the terminal, a text-based command interface.

  1. Press Ctrl+Alt+T on your keyboard. A terminal window opens.
  2. Run the commands shown below to install gnome-user-share.
  3. If the terminal asks for your password, type it and press Enter. Nothing appears on screen while you type, which is normal.
  4. Wait until the terminal returns to a new prompt. That means the installation has finished.
🐧Bash / Shell
sudo apt install gnome-user-share

Ubuntu keeps its system configuration in a single control panel, the Settings app. You can reach it in two ways, and both lead to the same place.

The first way is the System menu. Click the System menu in the top-right corner of the desktop, which is where the network, volume and power icons sit. A small panel opens.

Ubuntu Linux Activities overview screen showing system menu
ubuntu linux activities overview

If you are not sure where to click, look at the top bar of your desktop. The System menu is the group of status icons at its right-hand end.

  1. Click the System menu in the top-right corner of the top bar.
  2. Check that a panel drops down with quick settings and a row of buttons.
  1. In the System menu, select Settings. It is highlighted in the screenshot below.
  2. Wait for the Settings window to open. You should see a list of categories down the left side.

You can also press the Super (Windows) key, type Settings and open the app from the search results.

Ubuntu Linux system menu accessing Settings from top bar
ubuntu linux system menu top bar settings
  1. In the Settings app, find the Sharing entry and click it. Depending on your release, it may be a tile or an item in the left sidebar.
  2. Check that the Sharing panel opens, with a switch at the top.

If you cannot find Sharing, use the search icon in the Settings window and type Sharing.

Ubuntu Linux Sharing settings panel for file sharing configuration
ubuntu linux sharing panel

The switch at the top of the Sharing panel is the master control. Nothing is shared while it is off.

  1. Flip the top toggle switch to the On position.
  2. Check that the options below it are no longer greyed out. They can now be changed.

This turns on the main sharing layer, so folders can be shared with other computers on the network.

When the switch is set to Off, sharing stays disabled and the options under it cannot be used. Switch it back to Off whenever you want to stop all sharing at once.

Ubuntu Linux toggle to turn on Personal File Sharing
ubuntu linux turn on sharing
  1. In Settings Sharing, click File Sharing. It is highlighted in the screenshot below.
  2. Check that a File Sharing window opens.

If File Sharing is missing from the list, the gnome-user-share package is probably not installed yet. Go back to the installation step. If the package is installed and the entry still does not show, log out and back in, or restart the computer, then open the panel again.

Ubuntu Linux File Sharing tile selected in Settings
ubuntu linux file sharing tile select
  1. In the File Sharing window, flip the File Sharing switch to On.
  2. Check that the switch now shows as on and that the options below it are active.

You do not need to restart the computer. The change takes effect straight away.

To undo this and disable the feature, open the same window and switch File Sharing back to Off. Your files stay where they are. They just stop being offered to the network.

Ubuntu Linux File Sharing toggle switched on enabled
ubuntu linux turn on file sharing

With File Sharing on, other people on the same network can now try to connect to your computer and open the files in your Public folder. Only put in that folder what you are happy for them to see.

You can ask visitors for a password before they open the Public folder. This is a good idea on any network you share with more than a few people you know.

  1. In the File Sharing window, find the Require Password option.
  2. Switch Require Password to On.
  3. Enter a password if the window asks you to set one, and keep it somewhere safe so you can give it to the people who need it.

To remove the password requirement later, switch Require Password back to Off.

Ubuntu Linux File Sharing password protection setting updated
ubuntu linux file sharing password updated

That completes the setup. Copy a file into your Public folder, then try opening it from another computer on the same network to confirm that sharing works.

Once the gnome-user-share package is installed, managing network transfers takes only a few clicks. The main points are:

  • Enabling or disabling file sharing in Ubuntu Linux is straightforward once the gnome-user-share package is installed.
  • In the Settings app, the File Sharing switch allows or blocks access to the Public folder.
  • The Require Password option adds a layer of protection for your shared files.
  • This guide covers installing the package, turning File Sharing on and off, and setting a password, so you can manage sharing without a USB drive.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *