Answer the question
In order to leave comments, you need to log in
How to prevent a user from climbing above his home directory in the Sprut.io file manager?
Hello! A question. Suppose I have user user with home directory /home/user/
How do I prevent this user from ascending above his home folder in Sprut.io?
The user is in the user group
There are also other users in groups that have the same name as their name. How to set it all up?
I changed the shell for the user to lshell, I can’t go higher than the home directory via SSH, but Sprut.io still goes higher than necessary.
[email protected]:/opt/sprutio# su danila_p
You are in a limited shell.
Type '?' or 'help' to get the list of allowed commands
danila_p:~$ pwd
*** forbidden command: pwd
danila_p:~$ cd /
*** forbidden path: /
danila_p:~$ cd /opt/sprutio
*** forbidden path: /opt/sprutio/
danila_p:~$ danila_p:~$ pwd
*** forbidden command: danila_p:~$
danila_p:~$ *** forbidden command: pwd
danila_p:~$ danila_p:~$ cd /
*** forbidden command: danila_p:~$
danila_p:~$ *** forbidden path: /
danila_p:~$ danila_p:~$ cd /opt/sprutio
*** forbidden command: danila_p:~$
danila_p:~$ *** forbidden path: /opt/sprutio/
danila_p:~$ danila_p:~$
*** forbidden command: danila_p:~$
danila_p:~$
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question