当前位置: 首页 > news >正文

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.
http://www.jsqmd.com/news/349874/

相关文章:

  • 以浪为马:在不确定时代下,HeyGen 的组织哲学与技术人的生存法则
  • 荣耀WIN系列双旗舰登场:风扇直吹芯片,满帧温控表现抢眼
  • 详细介绍:单元测试(JUnit、Mockito、PowerMock )
  • 作为开发,该如何给产品提有效建议
  • 说说长沙名匠装饰公司怎么样,年度优质装修企业排名解读 - 工业设备
  • 2026最新版!京东全品类/家电/大额优惠券领取方法与隐藏入口汇总 - 华Sir1
  • 定时任务选型:Quartz、XXL-Job、@Scheduled 对比与避坑指南
  • UE5 多线程(进阶):
  • 计算机毕业设计之基于JavaWeb的心聘求职平台
  • 微算法科技(NASDAQ :MLGO)融合量子神经网络:开启纠错策略智能优化新范式,重塑量子计算可靠性边界
  • 69.有效的括号
  • 朔州市英语雅思培训辅导机构推荐,2026权威出国雅思课程中心学校口碑排行榜 - 苏木2025
  • 关键词:应变测量,应变片,惠斯通电桥,全桥,半桥,四分之一桥,应变测量信号调理
  • 能耗管理平台和能源管理平台有什么区别?哪家好用?
  • javascript之双重循环打印九九乘法表
  • 机器学习中的 P 值
  • 朔州市英语雅思培训辅导机构推荐、2026权威出国雅思课程中心学校口碑排行榜 - 苏木2025
  • 聊聊好用的高低温试验箱,步入式高低温试验箱供应商推荐 - 工业推荐榜
  • 机器学习中的熵
  • 2026年全国外贸出口级纯可可脂巧克力制品哪家做得好?核心能力及场景适配解析 - 深度智识库
  • 2026年AI模型“基因偏见”评估框架:软件测试从业者实战指南
  • 全球厨房秤品牌推荐,大秦制衡电子秤质量怎样? - myqiye
  • 2026年冷热冲击试验箱靠谱的供应商推荐,环保型产品口碑排名 - 工业品网
  • 高性能CNC网关推荐,哪家好用?
  • 2026年广州内外涂塑钢管口碑好的制造商排名,专业之选 - 工业品牌热点
  • 2026年比较好的厂区智能巡检,电力智能巡检公司专业服务推荐榜 - 品牌鉴赏师
  • 2026年AI模型“自我诊断”测试框架:赋能软件测试新范式
  • Vmware 安装 OpenEuler 系统Linux Vscode Remote-SSH
  • 盘点2026年流延机正规供应商靠谱的十大厂家 - 工业设备
  • 为什么你的区块链测试总失败?新工具盘点