WhileNetworking

  • Home
  • CCNA
  • Cisco Packet Tracer Download
    • Cisco packet tracer 6.3
    • cisco packet tracer 6.2
    • Cisco Packet Tracer 7
  • Linux Server Management
  • About Us
  • Privacy Policy
  • Contact Us

How to set file/folder permission in Linux (CentOS/Red Hat)

You are most welcome to this post.
File / Folder permission details
Really thanks to you for your interest in this topics. :)

Hi there. Here I’ve come again to share with you something. Today I’m going to share with you something about the file and folder permission. Here I’ve provided screenshot of every steps. So lets start.

How to set file and folder permission in Linux (CentOS/Red Hat)

We’ll create two user, and at first we’ll log in as u1 and create a file and after that we’ll try to access by logging in as u2. So lets try these steps.

At first create the two user named as user1 and user2.

User add in Linux

User add in Linux

 

After that we’ll create a group and add the two user in that group

Group add in Linux

Group add in Linux, here I’ve created a group named as “tech”

 

See the group information by using “more /etc/group” command, you can see that, there is no user in this group.

see group information in Linux

Group information shown

 

So lets add user “u1” and “u2” in the group named tech

adding user to the group

adding user to the group

 

Now see the group information, there are two users.

Check group having added member

Check group having added member

 

Now lets log in as “u2”

Restart

Restart

 

Restart computer

logging in as new user

logging in as new user

 

Now create a new directory  named “computer”

Creating a new directory

Creating a new directory

 

See the directory under “home”

Our created directory

Our created directory

 

See the directory by command

see the created directory using command

see the created directory using command

 

Add user containing the group to the directory under computer, and create a text file.

Add user to the group in the directory

Add user to the group in the directory

 

See the text file.

text file creation and writing

text file creation and writing

 

See the text file.

See the text file

See the text file

See the text file by command

See the text file by command

 

Now change the permission of the directory

Change the directory permission

Change the directory permission

 

loggin as new user.

logging as new user

logging as new user

 

Yes !! we’ve done it. We tried to view the file but, can’t able see that.

No file !! while logged in as new user

No file !! while logged in as new user

 

See the directory “computer” details.

See the owner and permission of the file

See the owner and permission of the file

 

After changing the directory permission.

After changing permission mode, see the file

After changing permission mode, see the file

See the details of the directory

See the details of the directory

Changing of permission

Changing of permission

changing user permission

changing user permission

changing user permission

changing user permission

changing user permission

changing user permission

See the log in information of the user

See the log in information of the user

 

So we’ve see that by changing permission we can be able to see or hide the information.

I think that some topics is not clear to you, how to set the access of the files. I’ll discuss it to the next post about the change mode command. As there is so many image in this post, then you can’t be able to see the post more clearly. Best of luck. Hope that you’ve enjoyed it.

Jun 28, 2016Himadri
 

Share with friends :

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Related

Linux packagesFile and folder permission basic (Part 2)

Leave a Reply Cancel reply

6 + 16 =

Himadri

Hi, I'm Himadri. I love blogging with tech topics, specially computer networking. We'll have more fun in the upcoming day. Stay with me. :)

June 28, 2016 3 Comments Linux installation and server managementFile and folder permission in centOS, File and folder permission in Linux, File and folder permission in Red Hat, how to set File and folder permission in Linux355
Feel Free to Share :)
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Find Us on Facebook
Choose a category !!
  • CCNA
  • Cisco Certification Exam
  • cisco packet tracer 6.2
  • Cisco packet tracer 6.3
  • Cisco Packet Tracer 7
  • Cisco Packet Tracer 7.1
  • Cisco Packet Tracer 7.2.1
  • Cisco Packet Tracer 7.3
  • Cyber Security
  • Engineering Ebooks
  • Excel
  • IELTS Ebook
  • Internet
  • Know computer
  • Know your computer
  • Laser Processing of Material
  • Linux installation and server management
  • PDF
  • Technology
  • Uncategorized
Top posts
  • Free download Principles of Electronics by VK Mehta
Archieves
Get latest updates by Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 19 other subscribers
W
SC
wordpress counter
Analytics
Recent Comments
    Browse by categories
    Cyber SecurityLinux installation and server managementCCNAKnow your computerKnow computerCisco Packet Tracer 7UncategorizedCisco Certification ExamInternetPDFCisco Packet Tracer 7.3Engineering EbooksCisco packet tracer 6.3cisco packet tracer 6.2Cisco Packet Tracer 7.1TechnologyExcelLaser Processing of MaterialCisco Packet Tracer 7.2.1IELTS Ebook
    Feel free to contact with us

    Hi, any kind of comment or suggestion is valuable to us. So feel free to contact with us.

    Email: himadri.shekhar.bd@gmail.com

    Name: WhileNetworking.com

    2021 © WhileNetworking
     

    Loading Comments...