(solved) User account without access to main user's home folder

Forum Forums New users New Users and General Questions (solved) User account without access to main user's home folder

  • This topic has 4 replies, 3 voices, and was last updated Mar 8-6:22 am by andfree.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7451
    Member
    andfree

      Hi. I used the User Manager to create a new user’s account. But when I login to the new account, I can see the main user’s home folder with all its contents. No password is required to give this access. Is there any way to protect the main user’s home folder from the other users, with the use of my password? Thanks.

      • This topic was modified 5 years, 2 months ago by andfree.
      #7454
      Forum Admin
      Dave
        Helpful
        Up
        0
        ::

        Chown user1:user1 /home/user1/ -r
        Chmod 770 /home/user1/
        Should do it I think.

        Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown

        #7468
        Member
        andfree
          Helpful
          Up
          0
          ::

          The first command doesn’t seem to be OK:

          $ chown dragon:dragon /home/dragon/ -r
          chown: invalid option -- 'r'
          Try 'chown --help' for more information.

          But the second command did the job:

          chmod 770 /home/dragon/

          And the new user can’t see the /home/dragon/ folder. Many thanks.

          #7473
          Anonymous
            Helpful
            Up
            0
            ::

            The first command doesn’t seem to be OK
            ^— but, to preclude unforeseen consequences, was probably necessary

            chown -R . . .

            #7489
            Member
            andfree
              Helpful
              Up
              0
              ::

              OK, I ran it with “sudo”, because some changes were not permitted. So, the steps for user1 to make his home folder invisible to other users are:

              $ sudo chown user1:user1 /home/user1/ -R
              $ chmod 770 /home/user1/
            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.