Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

/: The root directory

Focus mode
/: The root directory - Amazon Linux 2023

By default, AL2023 images are configured with a writable /, allowing privileged users to create new files and directories.

It is possible to configure systemd services to use a different path or image to appear as / for that service, as well as place access restrictions on any path.

Note

It is best practice for systemd services to be configured to restrict what the service has access to. This can include using the ReadOnlyPaths=/ directive which makes / read only for that service.

For more information on using systemd to restrict what access a service has to the system, see the systemd.exec(5) man page.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.