Linux - Change Permissions and Ownership for Files and Folders (chmod, chown, members, groups )
Find code and diagrams at: https://www.EliTheComputerGuy.com
The commands chown and chmod allow you to change permissions and ownership of files and folders, but you also need to know the membership of groups to make sure permissions and ownership is appropriate.
View Group Membership
groups – shows groups you belong to
groups username – shows groups user belongs to
cat /etc/group | less – Allows you to view Group file that has all groups and members
members groupname – Shows members of a specific group
Members is not installed by default in Ubuntu. Install with: sudo apt-get install members
Change Ownership of Files and Folders
chown owner:group file – Changes Account Owner and Group Owner of File
chown :group file – Changes Group Owner of File
chwon -R owner:group folder – Changes Account Owner and Group Owner of Folder and changes contents recursively
Change Permissions
chmod 777 file – Changes permissions of file so that Account Owner can RWX, Group Owner can RWX, and Everyone can RWX
chmod -R 777 folder – Changes permissions of Folder and Contents so that Account Owner can RWX, Group Owner can RWX, and Everyone can RWX
-R is for recursive which means the contents of the folder will be changed also
Видео Linux - Change Permissions and Ownership for Files and Folders (chmod, chown, members, groups ) канала Eli the Computer Guy
The commands chown and chmod allow you to change permissions and ownership of files and folders, but you also need to know the membership of groups to make sure permissions and ownership is appropriate.
View Group Membership
groups – shows groups you belong to
groups username – shows groups user belongs to
cat /etc/group | less – Allows you to view Group file that has all groups and members
members groupname – Shows members of a specific group
Members is not installed by default in Ubuntu. Install with: sudo apt-get install members
Change Ownership of Files and Folders
chown owner:group file – Changes Account Owner and Group Owner of File
chown :group file – Changes Group Owner of File
chwon -R owner:group folder – Changes Account Owner and Group Owner of Folder and changes contents recursively
Change Permissions
chmod 777 file – Changes permissions of file so that Account Owner can RWX, Group Owner can RWX, and Everyone can RWX
chmod -R 777 folder – Changes permissions of Folder and Contents so that Account Owner can RWX, Group Owner can RWX, and Everyone can RWX
-R is for recursive which means the contents of the folder will be changed also
Видео Linux - Change Permissions and Ownership for Files and Folders (chmod, chown, members, groups ) канала Eli the Computer Guy
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
PHP - Sort Array by ValueArduino Projects - LCD Temperature/ Humidity Alert with Timestamp (DHT11, DS3231, I2C 20x4 LCD)FeeTech FT-MC-002-SMC Arduino Vehicle Platform - Code and AssemblyMySQL - Update and Delete Records (update, delete)Linux Projects - Parse NMAP XML Output with PHPPHP – Sort Array by Key – ksort() and krsort()LG Transparent OLED TVs at CESPHP - What is...What is DNS (Domain Name System)Coding DIY - Build Network Monitoring Web Apps with Python, Bottle, SQLiteVirtualBox for VirtualizationPHP Project - Photo Gallery with MySQL BackendPYTHON INTRO - Seminar for Silicon DojoArduino - Temperature Web App with Raspberry PiHow Does Computer Discovery and Communication WorkHacking/Security - NMAP Network Mapping IntroductionPHP - What are Versions of...SILICON DERBY - The races begin!!!Arduino - Send Serial Commands from Raspbery PiTraining Robots to hunt Louis RossmannLinux Tools - JpegOptim to Compress/ Optimize Image Files