news 2026/3/24 17:05:08

How to Share A Folder in Ubuntu 23.10 Updated [Fix ‘Error 255’ issue]

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
How to Share A Folder in Ubuntu 23.10 Updated [Fix ‘Error 255’ issue]

Contents:

1. Install the nautilus-share.

2. Start sharing a folder

Fix “Error 255” permission denied error!

3. Setup a password for authentication

4. How to access the shared folder

Want to share a folder over local network and allow access with create and delete files permission? Here’s the step by step picture guide shows how to do the trick in Ubuntu (Updated for Ubuntu 23.10 Mantic Minotaur)

Discover more

Linux

Fedora

Ubuntu / Linux

Linux Mint

Manjaro

Installation

kernel

Kernel

Debian GNU/Linux

Fedora Linux

It’s quite easy to share your files over LAN or even outside home network either via a temporary http / ftp server, or third party file transfer tool (such as Dukto).

If you however need to setup a share folder for long time use, then samba file and print service can be a good choice.

1. Install the nautilus-share.

In previous Ubuntu 22.04 and earlier, there’s a ‘Local Network Share‘ option when you right-clicking on a folder. With it, user can easily install and setup a shared folder via a few mouse clicks.

The option is no longer available in Ubuntu since 22.10. However, it’s still easy to setup network share via an extension for Nautilus (the default file manager).

  1. First, pressCtrl+Alt+Tkey combination on keyboard to open a terminal window.
  2. When terminal opens, paste the command below and hit run to install thenautilus-sharepackage, which install the samba service and setup file browser integration.
    sudo apt install nautilus-share

After installation,also run commandnautilus -qto quit Nautilusto apply the extension.

Discover more

Ubuntu

kernel

Linux Mint

Install

Gnome

Linux kernel

Installation

Linux Kernel

Arch Linux

Debian

2. Start sharing a folder

Discover more

GNOME

Manjaro

Kernel

Linux

Install

Debian

Fedora

Fedora Linux

Debian GNU/Linux

Linux Kernel

Now, right-click on any folder that you want to share over local network. There should be a “Sharing Options” option in pop-up menu.

Just click on this option will open the dialog, which is just the similar one in the previous Ubuntu releases. Then, do:

  1. Enable the checkbox for ‘Share this folder’.
  2. Set the folder name to whatever that you want, or just leave it with default.
  3. Enable write permission for choice (create and delete files).
  4. Enable guest access so anyone can access without authentication, or leave it disabled so user need to type username & password when trying to open this folder.

Once you clicked “Create Share” button, it will ask to confirm in next pop-up dialog for adding create and delete files permission. Just click ‘Add Permission Automatically’ to confirm.

Discover more

Arch Linux

Linux kernel

Linux

Fedora

Kernel

Debian

Debian GNU/Linux

Install

Ubuntu

Fedora Linux

Fix “Error 255” permission denied error!

When click sharing a folder in Nautilus, it may output an error says:

‘net usershare’ return error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Permission denied.

To fix the issue, just add your current user into sambashare group!And, this can be done by opening terminal (Ctrl+Alt+T) and run command:

Discover more

Linux Kernel

Debian

kernel

Linux

Linux Mint

Fedora Linux

Debian GNU/Linux

Fedora

Linux kernel

Gnome

sudo gpasswd --add $USER sambashare

Then,restart computerto apply changes.

Finally,re-do the previous stepto create a share folder. When done, your folder icon will change with a little symbol in up-right.

Folder now being shared

3. Setup a password for authentication

Discover more

Fedora Linux

Debian GNU/Linux

Arch Linux

Install

Kernel

Linux

Installation

Gnome

Linux Mint

Fedora

If you didn’t enable ‘Guest access’, then you also need to set a password for access.

  1. First, press Ctrl+Alt+T on keyboard to open terminal.
  2. Then, run command to set a smb password:
    sudo smbpasswd -a $USER
  3. Finally, restart samba service viasudo systemctl restart smbdcommand.

Finally, you can access this shared folder remotely via theusername for current login userin Ubuntu system, but withanother password you just set specially for network share.

  • Account: user-name for logging into the Ubuntu system (runwhoamito tell).
  • Password: the password you just set.

4. How to access the shared folder

Firstly, you need to get either the hostname of local IP address for the Ubuntu machine. To do so, either go to Wifi/Network Settings, or run command in terminal:

  • To get hostname, run:
    hostname
  • To get the IP address, run:
    ip address

To access the shared folder in different system:
replacehost_name_herewith the hostname, and replaceip_herewith the IP address. They arehirsuteand192.168.0.108in the previous picture.

  • ForWindows, go to “Start Menu -> Run” (or press Windows logo key + R) and then type either\\host_name_hereor\\ip_hereand hit Enter.
  • ForLinux, it depends on your system. For Gnome Desktop, open file manager and go to “Other Locations”, under bottom “Connect to Server” box typesmb://host_name_hereorsmb://ip_hereand hit Enter.
  • ForMac OS, press “command + K” on keyboard to open Connect to Server dialog, type insmb://host_name_hereorsmb://ip_hereand hit Enter.
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/3/22 13:12:04

量子机器学习:三行代码入门的2026指南

一、量子机器学习基础:测试从业者须知 量子机器学习(QML)利用量子比特的叠加与纠缠特性,加速经典机器学习任务,如分类、优化和模式识别。其核心优势在于处理高维数据时显著降低计算复杂度——例如,量子谱聚…

作者头像 李华
网站建设 2026/3/24 16:10:41

能耗管理平台和能源管理平台有什么区别?哪家好用?

在“双碳”目标深入推进、企业降本增效需求日益迫切的当下,数字化能源管控工具已成为各行各业的必备品。但很多企业在选型时,常会混淆“能耗管理平台”和“能源管理平台”两个概念,甚至将二者等同看待,最终导致所选系统无法匹配自…

作者头像 李华
网站建设 2026/3/20 4:52:32

2026别错过!9个AI论文软件测评:自考毕业论文写作必备工具推荐

2026年,随着AI技术在学术领域的不断深入,越来越多的自考学生开始依赖智能写作工具来提升论文撰写效率。然而,面对市场上种类繁多的AI论文软件,如何选择真正适合自己需求的产品成为一大难题。本文基于2026年的实际使用数据与用户反…

作者头像 李华
网站建设 2026/3/18 10:24:01

基于PLC的注塑机控制系统设计与调试

基于PLC的注塑机控制系统设计与调试 第一章 系统设计目标与核心需求 基于PLC的注塑机控制系统以“精准控压、时序可控、工艺可配、安全可靠”为核心设计目标,依托PLC工业级逻辑控制与抗干扰优势,突破传统注塑机继电器控制精度低、故障率高、工艺调整繁琐…

作者头像 李华
网站建设 2026/3/18 11:47:06

基于Linux远程视频传输系统

基于Linux的远程视频传输系统设计 第一章 系统设计目标与核心需求 基于Linux的远程视频传输系统以“低延迟、高稳定、跨终端、易部署”为核心设计目标,依托Linux系统开源、高定制化、多线程调度优势,突破传统视频传输系统兼容性差、延迟高、资源占用大的…

作者头像 李华
网站建设 2026/3/17 11:02:51

‌打造高转化测试工具评测内容:YouTube/TikTok运营实战指南

‌一、测试工具评测内容的黄金公式‌ ‌“3秒钩子 真实痛点 工具实测 一键转化”‌ 是软件测试从业者最易共鸣、平台算法最偏爱的内容结构。 这不是普通的产品介绍,而是‌技术决策的可视化推演‌。你的视频不是在“卖工具”,而是在帮同行‌省下3天调试…

作者头像 李华