A file named "important" resides in the login directory of the user account
"trev1". The file is owned by the user account "trev1".
The file named "important" has the following permissions: -rwxrwxrwx
Without changing/modifying the permissions on this file, write the command
that will prevent this file from being deleted by the account "trev1", or "root".
Note: All other files in the login directory of the user account "trev1"
are able to be deleted!!!
Hi Trevor,
I would use the below command and make the the file to be immutable.
#chattr +i important
#lsattr important
Output
----i--------------- important
And Bader, that would definitely get the job done!!!
Great solution!!!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.