Tutorial Linux: Understanding and Changing Access Rights

0
1155

Tutorial Linux: Understanding and Changing Access Rights – Now that you’ve had a better grasp on commands on how to navigate your way around with it, our Tutorial Linux will help you understand access rights on directories and files as well as changing access rights.

What is File System Security?

In your unixsub directory, simply type in % ls -l and you will be presented with a great number of details about all contents in your directory, each of this file and directory has what we call associated access rights which can easily be found and accessed by typing in % ls –l and also ls –lg for any additional information on which particular group owns the exact file presented to us. As an example, let’s use jake86 and see the following: -rwxrw-r– 1 sia88 jake86 2458 Mar30 08:23 file1

The column on the left side consists drwx symbols and occasionally either s or S symbol. When symbol is present, it indicates your directory and is always placed at the far left side of the string, otherwise it will be started with the – symbol. The remaining symbols simply indicate access rights or permissions.

How to change access rights

It’s worth noting that only the owner of the specific file can use the chmod command. The following are chmod options which are available to use: u (user), g (group), o (other), a (all), r (read), w (write and delete), x (execute and access a directory), + (add permission), and  (take away permission). For example, to properly remove read, write, and execute permissions on a file called randomlist, type in % chmod go-rwx randomlist and to read, write permissions, type in % chmod a+rw randomlist. As to how you may background a specific process,  simply type a & at an end of your command line such as % sleep 10 & to run 10-minute sleep in your background.

NO COMMENTS

LEAVE A REPLY

This site uses Akismet to reduce spam. Learn how your comment data is processed.