Preview:
# Create user with access only to specific directory

adduser --home /restricted/directory restricted_user

# Make user owner of directory and grant write access

chown restricted_user:user_group /restricted/directory
chmod 755 /restricted/directory
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter