Home > OS >  Ordinary users cannot create delete directory in/home directory
Ordinary users cannot create delete directory in/home directory

Time:09-16

using the root account to create a directory under/home directory, and chown chmod + gives users all permissions, and/home and other gift RWX permissions,
Use the normal user want to directory delete failed to perform,

Ordinary users in the/home directory, please even with permissions can't do operation,

CodePudding user response:

, every brother please help me answer the, this is the system mechanism still have other security Settings, the current state of the system for just installed,

CodePudding user response:

After the/home directory gives other RWX permissions, switch to the ordinary user can be deleted, kiss can

CodePudding user response:

refer to the second floor chaos_oper response:
/home directory gives other RWX permissions, switch to the ordinary users can be deleted, can kiss test


You want to delete the root directory is created, but has been completely empowerment to the user,

CodePudding user response:

Not the problem of user permissions, but your ordinary users do not have permission to the rm command operation

The rm command need sudo rm...

Sudo to use need to configure the visudo, add similar permission configuration

Usr01 ALL=(ALL) NOPASSWD: ALL

CodePudding user response:

The problems that you haven't understand LINUX file system, authority system in r w x is not remove permissions, delete and create file permissions from its upper folder w permissions, as shown in the figure below, I have to rewrite the access to the folder, but I have not any file a permission, I can delete it,



  • Related