June 2015
Intermediate to advanced
190 pages
4h 4m
English
File and directory permissions are important, and to view the current state of all the files in a particular directory, you can run the following command:
# ll
Alternatively, you can target a particular directory by running:
# ll /path/to/directory
However, in a situation where someone has mistakenly changed the permissions of a particular system-based file or folder this calamitous situation can be rectified with the following RPM-based commands:
# rpm --setugids PACKAGENAME # rpm --setperms PACKAGENAME
On the other hand, should it be the case that an entire directory has been mistakenly updated with chown or the chmod commands, the following commands will prove more useful:
# for package in $(rpm -qa); ...Read now
Unlock full access