I try to create new users and put them in a group with low privilege. I want them to only have access to their home (not to other folders). I tried useradd but the new user has access to all folders. I would like to have something like a user with privilege (teacher) and users with low privilege (students). I didn't find the proper commands for that.

  • 1
    1. You should NOT use useradd - which is a low level command, but adduser - this will create a user with installation defaults (not actually sure what these are on a Pi, but certainly restricted). 2. This is not Pi specific, but a standard Linux question. 3. Unless you say what you actually did we can't help.
    – Milliways
    Jul 9, 2019 at 7:18
  • Actually, I did adduser. But the users created are able to see the pi user and other users. And I don't want them to be able to do that. Jul 9, 2019 at 7:36
  • 1
    DO NOT put detail in Comments; edit your question!
    – Milliways
    Jul 9, 2019 at 7:45
  • Could you explain what are you trying to achieve? Make sure a user cannot get names of other users? Jul 9, 2019 at 8:43
  • I don't want users to see other users folders or files. Jul 9, 2019 at 9:03

1 Answer 1


This is nothing to do with the new user:-

/home/pi has drwxr-xr-x permissions, which grants read access to Everyone

You need to study Linux permissions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.