Updated: 16 November 2026 · Applies to: CloudLinux OS with SecureLinks symlink protection (cPanel and other control panels); checking commands tested on AlmaLinux 9.8

A line such as Access denied: uid 818, target uid 663 in /var/log/messages means CloudLinux's symlink protection (SecureLinks) stopped the web server from following a symbolic link. The link belongs to the first user ID (818 here) but points to a file owned by another user (663). The block is the protection doing its job; what you should check is why that link exists.

Why CloudLinux blocks these links

On shared hosting, a classic attack is to create a symlink in your own folder that points to another customer's file, such as a wp-config.php with database passwords, and then open it through the web server. According to CloudLinux, the kernel setting fs.enforce_symlinksifowner=1 (the default) stops any process running under the group in fs.symlinkown_gid from following a symlink whose owner does not match the owner of its target. The documented values are:

  • 0: do not check symlink ownership.
  • 1: deny when the link owner and target owner differ and the process group matches fs.symlinkown_gid.
  • 2: as 1, and also deny for any process inside an LVE.

According to CloudLinux, Apache usually runs with group ID 48, while on cPanel servers it runs as nobody with group ID 99, so the right fs.symlinkown_gid depends on your control panel. CloudLinux writes this value to /etc/sysctl.d/90-cloudlinux.conf.

1. Find out which accounts are involved

Look up both user IDs from the log line:

getent passwd 818
getent passwd 663

Each command prints the account name and its home directory. In a test on AlmaLinux 9.8 with a user called alice:

alice:x:1000:1000::/home/alice:/bin/bash

The first UID owns the link. The second owns the file it points to.

2. Find the links that cross to another owner

List every symlink in the first account's home directory with its owner and target (replace alice with the account name):

find /home/alice -xdev -type l -printf '%u %p -> %l\n'

To show only the links whose target belongs to someone else, run this loop:

find /home/alice -xdev -type l -printf '%u %p\n' | while read -r owner link; do
  target_owner=$(stat -L -c %U "$link" 2>/dev/null)
  [ -n "$target_owner" ] && [ "$owner" != "$target_owner" ] && echo "$link (link: $owner, target: $target_owner)"
done

Output in the test, where alice had linked to a file in bob's account:

/home/alice/test.txt (link: alice, target: bob)

3. Decide what the link is

  • Harmless mistake: a site copied from another account with absolute symlinks, or a link left over from a migration. Replace the link with a real copy of the file, or a link to a file the same account owns.
  • Suspicious: links to other customers' configuration files, many links created at once, or links next to unknown PHP files. Treat the account as compromised: suspend it, scan it with your malware scanner, change the database passwords of the account whose files were targeted, and check the web server access log for requests to those links.

If the same message repeats every few seconds, a script or crawler keeps requesting the link. The web server access log for the first account shows which URL it is.

4. Check the protection settings

Show the current values:

sysctl fs.enforce_symlinksifowner fs.symlinkown_gid

According to CloudLinux, cldiag can also check that fs.enforce_symlinksifowner is set correctly (its symlinksifowner check). Do not set the value to 0 to silence the messages: that removes the protection for every account on the server.

Related protection you may meet

According to CloudLinux, cPanel tools such as File Manager, WebDAV and webmail run outside CageFS, and fs.protected_symlinks_create stops users from creating links to files they do not own. CloudLinux does not recommend it for cPanel users because it can break rsync transfers and backup restores; read its known issues first. A different symlink error, from Apache itself, is covered in What does Error: failed to create symlink (13)Permission denied mean?.

If you would rather have an engineer look at a suspicious account, our server management team can help.

Official documentation: CloudLinux SecureLinks and link traversal protection.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket