Comments (7)
Try the following configuration:
bind /home/%u /home/ rw,nodev,nosuid
from jail-shell.
yes it worked after I added your given command in the jail configuration below:
#Base directory binding configuration
#Set directory read-only, and prohibit device files
bind / ro,nodev,nosuid
bind /dev ro,dev,noexec,nosuid
bind /home/user /home/user rw,nodev,nosuid
But when I try to open a file inside /home/user through winSCP, I get the below error:
Cannot execute SCP to start transfer. Please make sure that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP.
Command failed with return code 127.
I got this error when I tried opening some files in /home/user.
Thanks
from jail-shell.
You should copy scp command into jail.
clink /usr/bin/scp /usr/bin/scp
from jail-shell.
I want to put 5 users in the same jail. But those users should not be able to access other users' /home directory.
from jail-shell.
bind /home/%u /home/ rw,nodev,nosuid
%u means user name
from jail-shell.
How to give a jailed user access to entire /usr directory using bind mounts? I tried adding "bind /usr /usr ro,nodev,exec,nosuid" in jail conf. It did not work for me.
from jail-shell.
Bind the entire /usr directory is not supported because the /usr/bin/init program in the jail is required.
from jail-shell.
Related Issues (20)
- Build error HOT 1
- Home directory is stuck in read only. HOT 1
- Cannot allocate memory
- allow jail user to restart services HOT 1
- Issue getting SCP to work on jail HOT 1
- socket to jail
- warnings after Werror removed in makefile HOT 3
- Is jailshell supported in cloudlinux?
- Is there a way to execute /bin/bash as user and enter the jailed environment? HOT 2
- php artisan commands not working in almalinux 8 and centos 7,8
- Having issues with Ubuntu 22.04
- terminfo doesn't exist , almalinux 8 HOT 8
- can't export a writable directory
- undefined symbol: pam_get_user HOT 2
- No such file or directory HOT 6
- PHP Composer is not working HOT 1
- Nano editor is not working HOT 1
- Effectively non-chrooted/jailed users. What am i missing? HOT 5
- Can't change jail-shell php version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jail-shell.