From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Unlock the full course today

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

Set permissions using numeric method

Set permissions using numeric method - Linux Tutorial

From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

Set permissions using numeric method

There are two different methods of setting permissions in Linux: numeric and symbolic. Let's talk about numeric mode now. 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 numeric mode, we assign a value to each permission and add the numbers to get the final result. Read access has a value of four, write access has a value of two, and execute is worth one. To set read, write, and execute for the User Owner, we'd add up four plus two plus one, for a total of seven. To set read and execute for the Group Owner, we'd add up four and one, for a total of five. And for other, we don't give any permissions, so we'll set it to zero. Now we'll use this number in all three positions, User Owner, Group Owner, and other. The command we use to set permissions is chmod, or change mode. The syntax for chmod is…

Contents