Saturday, December 26, 2020

Chapter 7 : Creating "sources" and "tools" Directory

Hi,

In this chapter I would like to disclose the creation of "sources" and "tools" directory at the location /mnt/lfs

Use the following commands to create the above mentioned directories

$ cd /mnt/lfs
$ sudo mkdir sources
$ sudo mkdir tools

Along with the creation of directories, we should also change the file permissions of the directories created...

To do that, use the following commands...

$ sudo chmod -v a+wt /mnt/lfs/sources
$ sudo chmod -v a+wt /mnt/lfs/tools

The purpose of changing the file permissions is to make the folders sticky, which means any user can perform read and write operations but only the owner can delete the file in the specified directory.

At last we have to change the ownership of the directories from "root" to "lfs"...

Use the following command to change the ownership

$ sudo chown -v lfs /mnt/lfs/sources
$ sudo chown -v lfs /mnt/lfs/tools





No comments:

Post a Comment

How to change the root password in linux when it is forgotten/to change

This blog is all about changing the root password of the Linux system when it is forgotten or to reset the password...   Let's get it ...