From the course: Linux CentOS 7: Files and Permissions

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Set permissions using symbolic method

Set permissions using symbolic method - Linux Tutorial

From the course: Linux CentOS 7: Files and Permissions

Start my 1-month free trial

Set permissions using symbolic method

- [Instructor] There are two different methods of setting permissions in Linux, Numeric, and Symbolic mode. Let's talk about Symbolic mode. We have three positions in Linux permissions, User Owner, Group Owner, and Other. We can set read, write, and execute permissions on files and directories. In Symbolic mode, we assign a value to each position, using symbolic representation of the desired permissions. To set read, write, and execute for the User Owner, we just specify u equals rwx. To set read and execute for the Group Owner, we'd use g equals rx. To set permissions to nothing for Other, just do o equals, with nothing after it. To set permissions for multiple positions at one time, just separate them with a comma. For instance, u equals rwx comma g equals rx comma o equals. With Symbolic method, we can also add permissions by changing the equals sign to a plus. To add rwx for the user, we would use, u plus rwx. To subtract permissions, replace the equals sign with a hyphen. To take…

Contents