search
Homephp教程PHP开发Change the owner or group of a file or directory in Linux

Linux changes the owner or group of a file or directory

During the ftp upload process, if you upload a file while logging in as root in sftp mode, you will be prompted to have no permission when uploading via ftp again. The reason is because the file has already been entered as root. user, how to restore the permissions of the www user in ftp?
Then you will use the chmod command. Let’s first understand the chmod command:

chmod [-cfhvR] [--help] [--version] user[:group] file...

Change the owner or group of a file or directory in Linux

// Change the permissions and group of the rootfs folder and its subdirectories to the www group
chown –R www:www /wwwroot/zoneselr.org
// Change the owner and group of the rootfs folder and subdirectories to the user liufan and group liufan-desktop
chown –R liufan:liufan-desktop rootfs

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function