If only the root and the founder of the file to the file using chnod CHGRP chown? Founder or file it should be said that the owner, the root and the owner can use the front three instructions Daniel, please answer
CodePudding user response:
Chmod, CHGRP, chown has nothing to do with file founder, ordinary users can use the
Command access problems which can be used to view, in the/usr/bin command is ordinary users can, under the command is under/usr/sbin super users can use the Such as which chmod result is/usr/bin/chmod, so ordinary users can use the And as which is/usr/sbin/useradd useradd results, it shows that only the super user can use this command
CodePudding user response:
First of all thank you for your answer, the problem is that I as A common identity A create A file, for example, the owner is A, then under the identity to use chown change the owner to B is wrong, why
CodePudding user response:
This involves the problem of file permissions, in general, the default file creation is 644, which is belong to sovereignty limit for rw (reading and writing), belongs to the group and the other user permissions for r (read), but after you change the user, user is equal to the genus group you use, or other user permissions, read-only privileges, so you can't operate it, if you use chmod 777 under the root file changes to the maximum privilege, so no matter what you use the user, can be operated on this file, Of course, from a security point of view, this is absolutely wrong