0

I have searched on google for restrict a user to a specific directory but mostly appeared about ssh user, ftp user and etc that not local user.

How do we do that for local user?

1 Answer 1

1

You can use Firejail for this purpose, apt install firejail.

Running firejail --private=~/OnlyAccessibleDir will allow access only to ~/OnlyAccessibleDir directory.

2

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.