D
D
Danila2016-10-17 16:36:51
linux
Danila, 2016-10-17 16:36:51

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

2 answer(s)
R
romy4, 2016-10-17
@romy4

chroot
ftp
otherwise

A
Adamos, 2016-10-17
@Adamos

Put on the folders of all users 700, the problems are ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question