Bonjour
est ce normal qu'avec le chroot, les utilisateurs ne peuvent rien créer, supprimer ?
ls -all /home/
drwxr-xr-x 5 root root 4096 juin 25 02:55 .
drwxr-xr-x 22 root root 4096 juin 25 01:10 ..
drwx------ 2 root root 16384 juin 25 01:08 lost+found
drwxr-xr-x 5 root user1 4096 juin 25 02:57 user1
drwxr-xr-x 2 root user2 4096 juin 26 03:30 user2
ls -all /home/user2
drwxr-xr-x 2 root user2 4096 juin 26 03:30 .
drwxr-xr-x 5 root root 4096 juin 25 02:55 ..
-rw------- 1 user2 user2 351 juin 25 16:45 .bash_history
-rw-r--r-- 1 user2 user2 220 juin 25 01:31 .bash_logout
-rw-r--r-- 1 user2 user2 3515 juin 25 01:31 .bashrc
-rwxr-xr-x 1 user2 user2 144 juin 25 16:44 monip
-rw-r--r-- 1 user2 user2 675 juin 25 01:31 .profile
-rw-r--r-- 1 user2 user2 663 juin 25 02:57 .rtorrent.rc
-rw-r--r-- 1 user2 user2 66 juin 26 00:09 .selected_editor
drwxr-xr-x 2 user2 user2 4096 juin 26 03:44 .session
-rwxr-xr-x 1 user2 user2 6670947 avril 25 17:19 teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
drwxr-xr-x 2 user2 user2 4096 juin 25 02:55 torrents
drwxr-xr-x 2 user2 user2 4096 juin 25 02:55 watch
ls -all /home/user1
drwxr-xr-x 5 root user1 4096 juin 25 02:57 .
drwxr-xr-x 5 root root 4096 juin 25 02:55 ..
-rw-r--r-- 1 user1 user1 220 juin 25 02:55 .bash_logout
-rw-r--r-- 1 user1 user1 3515 juin 25 02:55 .bashrc
-rw-r--r-- 1 user1 user1 675 juin 25 02:55 .profile
-rw-r--r-- 1 user1 user1 663 juin 25 02:57 .rtorrent.rc
drwxr-xr-x 2 user1 user1 4096 juin 26 03:44 .session
drwxr-xr-x 2 user1 user1 4096 juin 25 02:55 torrents
drwxr-xr-x 2 user1 user1 4096 juin 25 02:55 watch
cat /etc/ssh/sshd_config | grep ^# -v
Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 1024
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp internal-sftp -l INFO
UsePAM yes
Match user user1,user2
ChrootDirectory %h
su user1
cd ~
echo lol > test.log
bash: test.log: Permission non accordée
edit: j'ai trouvé qu'il fallait mettre le répertoire en chmod 770, est-ce correcte ? Ceci règle le problème mais est-ce la bonne solution ? ^^
Cordialement,