B
B
brezhitskiy422020-06-24 14:50:07
ubuntu
brezhitskiy42, 2020-06-24 14:50:07

How to create a new user in Ubuntu?

Hello. How can I create a new user in Ubuntu who would only have access to his home directory, for example /home/testuser, and cannot move up the directory?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lugange, 2020-06-25
@brezhitskiy42

Create - sudo adduser testuser. And then you can just give rights to your /home/ only to yourself through chmod 770 -R myuser:myuser /home/myuser. The owner can read, can write and execute. The group can read, write and perform. Others cannot read, cannot write, and cannot perform.

G
Gleb Starkov, 2020-06-24
@colonel

sudo adduser testuser

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question