October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

Fix vsftpd Refusing to Run With a Writable Root Inside chroot

Learn why vsftpd rejects a writable chroot, how to secure the jail root while keeping uploads enabled, and when the risky override is justified.
Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The secure fix for 500 OOPS: vsftpd: refusing to run with writable root inside chroot() is to make the chroot directory non-writable by the FTP account, then create a writable child directory for uploads. In practice, identify the jail root, assign it to root, remove write permission, create an upload subdirectory with narrowly scoped write access, and restart vsftpd. Only set allow_writeable_chroot=YES when a documented application requirement makes a writable jail root unavoidable, because that option disables an important security check.

What the error means

vsftpd is refusing to start a session because the directory selected as the user’s chroot root can be written by that same user. A chroot changes the apparent filesystem root for the FTP process. If the account can alter that root, it can potentially place files and directories where the daemon expects configuration data. The vsftpd configuration reference specifically warns that a writable chroot can let a user create an etc directory and influence configuration-file loading.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The setting controlling this check is allow_writeable_chroot. Its default is NO, which means vsftpd rejects a writable jail root. The project FAQ gives the same operational rule: the FTP user’s home directory should not be owned by that user and should not be writable by that user. ArchWiki dates the enforced behavior to vsftpd 2.3.5, so an upgrade can expose a permission layout that older packages accepted.

The message concerns the root of the jail, not every directory beneath it. You can keep uploads enabled by making a child directory writable while leaving the chroot root itself protected.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Find the directory vsftpd is using as the jail root

Do not change permissions until you know which path is being checked. Depending on the deployment, the root is set explicitly with local_root, inherited from the user’s home directory, or generated by a platform-specific configuration layer.

  1. Open the active vsftpd configuration and look for local_root. If it is present, the value is normally the jail root for matching local users. A value containing a per-user token may resolve to a different path for each account, so inspect the expanded path for the account that fails.
  2. Check whether a per-user configuration directory is enabled. A global user_config_dir causes files in that directory to override or add settings for individual users. Read the user’s file as well as the global file.
  3. If no local_root is set, resolve the local account’s home directory from the system account database. That home directory is commonly used as the chroot root when chroot_local_user or an equivalent policy is enabled.
  4. On a managed appliance, identify the generated or template-backed configuration rather than editing only a temporary runtime copy. Platform documentation may define a different path or regeneration process.

Inspect ownership and mode on the candidate path before changing it:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo stat -c '%A %a %U:%G %n' /path/to/jail-root
sudo namei -l /path/to/jail-root

stat shows the final directory’s owner, group and numeric mode. namei walks every parent directory, which helps find a parent that prevents traversal even after the final directory is corrected. Replace the example path with the actual value used by the failing account.

Preferred fix: protect the jail root and move writes into a child directory

1. Back up the configuration and record the current permissions

Save the active configuration and capture the existing ownership before making changes. This gives you a rollback point if a legacy workflow depends on an unexpected path.

sudo cp -a /etc/vsftpd.conf /etc/vsftpd.conf.before-chroot-fix
sudo stat -c '%A %a %U:%G %n' /path/to/jail-root

If your distribution stores the configuration elsewhere, use that location. On systems with per-user files, back up the applicable file in the same way.

2. Make the chroot root owned by root and remove user write access

The jail root must be traversable but not writable by the FTP account. The vsftpd FAQ illustrates this with chown root ~ftp followed by chmod -w ~ftp. Dell’s documented equivalent is chmod a-w /home/user, with the path replaced by the real jail root.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
sudo chown root:root /path/to/jail-root
sudo chmod a-w /path/to/jail-root

If the existing group is intentionally used for traversal, preserve that group instead of changing it unnecessarily:

sudo chown root:existing-group /path/to/jail-root
sudo chmod 550 /path/to/jail-root

Mode 550 gives the owner and group read and search permission while removing write permission. Choose a mode that lets the daemon and the intended account traverse the directory but does not grant write access to the FTP user. Verify the result:

sudo stat -c '%A %a %U:%G %n' /path/to/jail-root

Do not rely on the displayed owner alone. A user can still write through group or other permissions, so check all three permission classes and any access-control policy used by your operating system.

3. Create a writable child for uploads

Create a subdirectory below the protected root and grant write permission only there. The ArchWiki pattern uses a non-writable /srv/ftp/user jail root and a writable /srv/ftp/user/upload child, with modes 550 and 750 respectively.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo mkdir -p /path/to/jail-root/upload
sudo chown ftp-account:ftp-group /path/to/jail-root/upload
sudo chmod 750 /path/to/jail-root/upload

Replace ftp-account and ftp-group with the account and group that should own uploaded files. If the daemon writes as a different effective user, use a group that includes that user or assign an equivalent ACL; do not make the entire jail writable simply to solve an ownership mismatch.

For a concrete layout:

Path Purpose Example ownership Example mode
/srv/ftp/user Chroot root; configuration boundary root:root or root with a traversal group 550
/srv/ftp/user/upload Writable destination presented inside the jail The FTP account and its required group 750

Inside the FTP session, the user sees the jail root as / and the child as /upload. The account can upload there without being able to create an etc directory at the jail root.

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

4. Point the application at the child directory

Update the client, job or application that performs uploads so it uses /upload (or the corresponding child name) rather than attempting to write directly to /. If the application cannot be changed, create a dedicated child path matching its expected directory name, provided that path remains below the protected root.

5. Reload or restart vsftpd

Use the service mechanism supplied by your Linux distribution. Common systems use one of these commands:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo systemctl restart vsftpd
sudo systemctl reload vsftpd

A restart is the safest way to ensure all worker processes use the corrected settings. A reload may be sufficient for a configuration-only change, but it does not replace a restart when the distribution’s service unit documents otherwise. Check the service status and logs immediately after the operation:

sudo systemctl status vsftpd
sudo journalctl -u vsftpd --since '10 minutes ago'

If your platform does not use systemd, invoke its documented init or service command instead. Managed appliances may require applying a configuration template and restarting the platform service rather than editing /etc/vsftpd.conf directly.

Verify login, isolation and uploads

Test with an account that previously produced the error. A useful test separates the security boundary from the upload function.

  1. Log in through the FTP client and confirm that the session opens without the 500 OOPS message.
  2. List the session root and confirm that the expected child directory, such as /upload, is visible.
  3. Upload a small test file to /upload. Confirm the resulting owner, group and mode on the server.
  4. Attempt to create a file or directory directly in /. The operation should fail with a permission error.
  5. Attempt to change directory to a path above the jail, such as .. repeatedly. The client should remain inside the chroot.
  6. Remove the test file using the intended account or an administrator, according to your retention policy.

If login succeeds but upload fails, the chroot check is fixed; investigate the child directory’s owner, group, mode, filesystem ACLs and any mandatory access-control policy. If login still fails with the same message, inspect the actual resolved local_root and every per-user override rather than assuming the path you changed is the one vsftpd checked.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

When a writable chroot root is unavoidable

Some legacy applications expect to create files or directories directly at the account’s apparent root. In that case, the documented override is:

allow_writeable_chroot=YES

It can be placed in the global configuration or in a per-user configuration, depending on how your deployment separates accounts. The setting tells vsftpd to allow chrooting into a directory writable by the user. Dell presents this as a second option after removing write permission, while the vsftpd configuration reference warns that it can create security problems.

Use the override only after documenting why a writable root is required and reducing the surrounding risk:

  • Prefer a per-user setting so accounts that do not need the legacy behavior retain the default protection.
  • Limit the account to the smallest possible filesystem tree and avoid sharing that tree with service configuration or executable files.
  • Review who can modify files in the jail, including supplementary groups, inherited permissions and ACLs.
  • Monitor uploads and configuration changes, and keep the account’s credentials and network exposure under stricter control than ordinary users.
  • Revisit the application design; moving writes into a child directory is safer than permanently weakening the chroot check.

Do not combine allow_writeable_chroot=YES with broad write permissions merely to suppress the startup error. The option removes the specific refusal; it does not make a writable jail root safe by itself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choosing between the two remediation paths

Decision axis Protected root plus writable child allow_writeable_chroot=YES
Security boundary Strongest: the user cannot alter the directory that represents the jail root. Weaker: the user can modify the jail root and may influence files loaded from it.
Application compatibility Requires the application to write below a named child directory. Supports legacy workflows that insist on writing at the apparent root.
Operational durability Usually survives package changes if ownership and modes are managed as part of deployment. Must be retained in the correct global or per-user configuration after upgrades.
Scope Permission design can be tailored per account and directory. Global placement affects many users; per-user placement limits exposure.

Choose the protected-root design unless a tested requirement proves that the child-directory layout cannot work. Treat the override as a compatibility exception with an owner, a review date and a written threat assessment.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Version and upgrade considerations

The refusal is associated with vsftpd 2.3.5 and later guidance that the directory users are locked into must not be writable. A server upgraded from an older package can therefore fail even though its configuration file did not change: the newer daemon is enforcing a rule that the previous version did not enforce in the same way.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Dell documents the same symptom after OneFS upgrades that moved from older to newer vsftpd packages. On managed platforms, edits made directly to a generated configuration template may not persist across a subsequent upgrade. Record the intended ownership, modes and allow_writeable_chroot scope in the platform’s supported configuration mechanism, then verify them after every upgrade.

After upgrading, check all of the following before reopening access:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Which vsftpd version is installed and which configuration file the service unit loads.
  • Whether local_root, chroot_local_user or per-user files changed.
  • Whether the jail root is still owned by root and has no write bit for the FTP account, its groups or others.
  • Whether the writable child still has the expected owner, group and mode.
  • Whether the service starts cleanly and the upload and isolation tests still pass.

Troubleshooting branches

The root appears non-writable, but the error remains

Check for group or ACL write access. A mode such as 775 is writable by the group or by others even when the owner is root. Inspect ACLs with the tools provided by your operating system, and inspect every parent directory with namei -l. Also verify that you changed the resolved path, not a symlink target or an unused copy of the configuration.

The service starts, but the user cannot log in

Confirm that every directory in the path grants search permission to the account or its effective group. A mode of 550 on the jail root is useful only when the daemon can traverse it. Check the account’s home path, the configured local_root, and service logs for a second, unrelated authentication or permission error.

Login works, but uploads fail in the child

Verify the child directory’s owner and group from the server, then test creation as the same effective user used by vsftpd. A writable child with mode 750 is not writable to an account that is neither its owner nor in its group. Correct that ownership or group membership instead of making the jail root writable.

The fix disappears after reboot or upgrade

Find the authoritative configuration source. A package post-install script, appliance template or configuration-management run may restore the old mode or remove the setting. Apply the change through that supported source and add a post-upgrade check for the jail root and upload directory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Several users share one parent tree

Give each account a separate non-writable jail root and a separate writable child whenever possible. Sharing a writable root couples users’ security boundaries and makes it harder to prove which account can alter a file. If shared storage is unavoidable, document the group and ACL design and test cross-account visibility explicitly.

Operational checklist

  • Identify the exact chroot root resolved for the affected user.
  • Ensure the root is owned by root and is not writable through owner, group, other permissions or ACLs.
  • Create a writable child directory for uploads and assign only the required account or group.
  • Keep allow_writeable_chroot=NO unless a specific compatibility requirement has been approved.
  • Restart or reload through the distribution or appliance’s supported service mechanism.
  • Test login, upload to the child, failed write at the root and confinement from parent directories.
  • Persist the ownership, modes and configuration in the authoritative deployment system.
  • Repeat the checks after package or platform upgrades, especially when moving to vsftpd 2.3.5 or later from an older release.

Bottom line

vsftpd is rejecting a writable security boundary, not disabling uploads in general. Keep the chroot root root-owned and non-writable, place uploads in a controlled child directory, and reserve allow_writeable_chroot=YES for narrowly justified legacy cases. This layout satisfies the daemon’s post-2.3.5 protection while preserving normal FTP upload workflows.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.