QueHow

A How-To and wiki Blog

  • Operating System
    • Windows
      • Windows 10
      • Windows 7
    • Linux
  • Software
    • Application Software
    • Microsoft Office
      • Outlook
      • Word
      • PowerPoint
  • Internet
    • Browsers
      • Mozilla Firefox
      • Google Chrome
    • CMS
    • Tips & Tricks
  • Website
    • ecommerce
    • Google
    • Social Networking
    • General Websites
  • Mobile
  • Email
    • Gmail
  • Wiki

How to prevent others from accessing your home directory in Ubuntu 14.04

By Neha T Leave a Comment

If your machine is shared by more than one user, then you may need to restrict others from accessing your home directory. In this article, we are discussing the procedure by which you can easily stop unauthorized access to your home folder. As by default any user can access any home directory in Ubuntu.

Basically, when you create a new user, then a home directory is also created at root (/home/) location having read and execute privileges. This gives all the users to read and modify any root directories under that system. Just have at this article to find out how to prevent others from accessing your home directory in Ubuntu 14.04.

Steps to prevent others from accessing your home directory:

Step 1: First open your terminal window and type: “ls -ld /home/your_username” and hit enter.

how-to-prevent-others-from-accessing-your-home-directory-in-ubuntu-14-04

Step 2: Here, you’ll see a home directory having read, write and execute permission to the root user while others are having read and execute permission only.

how-to-prevent-others-from-accessing-your-home-directory-in-ubuntu-14-04
Step 3: Now, type: “sudo chmod 0750 /home/your_username” and hit enter to change the permission details discussed in step 2.

how-to-prevent-others-from-accessing-your-home-directory-in-ubuntu-14-04

Step 4: You’ll be prompted to provide your sudo root password for further proceeding. Just type your password and then hit enter.

how-to-prevent-others-from-accessing-your-home-directory-in-ubuntu-14-04

Step 5: Now open ‘adduser.conf’ file to set the permission for specific user, for that type: “gksudo gedit /etc/adduser.conf” and press enter.

how-to-prevent-others-from-accessing-your-home-directory-in-ubuntu-14-04

Step 6: You’ll need to provide your Ubuntu password to perform the administrative task. Just type your password and click “Ok” button as shown in the image below.

how-to-prevent-others-from-accessing-your-home-directory-in-ubuntu-14-04

Step 7: After that ‘adduser.conf’ file gets pop open, just scroll down to the file and you’ll see default mode is set as DIR_MODE=0755. You can change this according to your wish, basically it defines is read, write and execute permission for owner group and world.

how-to-prevent-others-from-accessing-your-home-directory-in-ubuntu-14-04

That’s all friends. Keep reading

You Might Also Like:

How we can Change the Directory in Ubuntu How to allow users to run programs as a root user in Ubuntu 14.04 how-to-copy-and-move-files-and-directories-in-ubuntuHow to Copy and Move Files & Directories in Ubuntu How to easily Enable Root User in Ubuntu How to create a zip file using terminal in Ubuntu 14.04 How to convert pdf file to text file in Ubuntu 14.04 how-to-disable-or-enable-guest-user-account-in-ubuntuHow you can Disable & Enable Guest User Account in Ubuntu How to extract images from pdf file in Ubuntu 14.04

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed

  • How to Install and Use TELNET in Ubuntu
  • How to install Hindi fonts in MS Word
  • How to Change a File Extension in Windows 10?
  • How to create a flipkart account in 3 simple steps
  • How to Change Monitor Refresh Rate in Windows 10?
  • How to install IIS on Windows 10
  • How to Insert Clickable Checkbox in MS Word 2016?
  • How to Set Auto Reply in Outlook 2016?
  • How to Login as Administrator in Windows 10?
  • How to Check RAM Size and System Type in Windows 10?

Recent Additions

  • How to Download Private Instagram Stories?
  • How to Slow Motion a Video in PowerDirector?
  • How to Check Who Unfollow You On Instagram?
  • How to Use Boomerang on Instagram?
  • How to Edit Video in PowerDirector?
  • How to Mute Someone’s Stories or Posts on Instagram?
  • How to Hide and Unhide Posts on Instagram?
  • How to Change Video Background in PowerDirector?
  • How to Make a Video Call on Instagram?
  • How to Chat on Instagram?

Related Searches

  • How to track Snapdeal order
  • How to Password Protect a Microsoft Word File
  • How to Send a Feedback to Microsoft in Windows 10
  • How to block an email in gmail
  • How to Disable OneDrive?

Copyright © 2021 · QueHow · Contact Us