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 Add Hyperlink to Another Sheet in Excel?
  • How to Add and Remove Watermark in Excel
  • How to use Relative and Absolute Cell Reference in Excel?
  • How to Enable and Disable Scroll Lock in Excel?
  • How to Use INDEX and MATCH Functions in Excel?
  • How to Make Bar Graph in Excel?
  • How to Count Duplicate Values in Excel?
  • How to Wrap Text in Excel?
  • How to Round off Numbers in Excel?
  • How to Create a Bell Curve in Excel?

Related Searches

  • How to Disable Comments on a Specific Page in Wordpress
  • How to Delete Temporary Files in Windows 10?
  • How to batch convert text documents in Ubuntu 14.04
  • What are the Different types of Shapes ?
  • How to Fade Out Music or Audio in PowerDirector?

Copyright © 2023 · QueHow · Contact Us