I accidently deleted a chrooted shell user. OK should be no problem, recrate it, but now the access to /web /webdav etc are gone. Tried several times, same effect. Have no idea to fix. Thanks Rainer
exactly thats what I do, while my other shell users see the web webdav log private directories I do not. bevor that user was accidently deleted it worked fine. Rainer
<code> [email protected]:/$ ls -la total 36 drwxr-xr-x 9 root root 4096 Feb 22 08:54 . drwxr-xr-x 9 root root 4096 Feb 22 08:54 .. -rwxr-x--- 1 mkmk client4 0 Feb 22 09:12 .bash_history -rw-r--r-- 1 mkmk client4 0 Feb 22 09:12 .profile drwx------ 2 mkmk client4 4096 Feb 22 09:12 .ssh lrwxrwxrwx 1 root root 7 Feb 22 08:45 bin -> usr/bin drwxr-xr-x 2 root root 4096 Feb 22 08:46 dev drwxr-xr-x 6 root root 4096 Feb 22 08:46 etc drwxr-xr-x 4 root root 4096 Feb 22 09:12 home lrwxrwxrwx 1 root root 7 Feb 22 08:45 lib -> usr/lib lrwxrwxrwx 1 root root 9 Feb 22 08:45 lib64 -> usr/lib64 drwxrwxrwx 2 root root 4096 Feb 22 08:46 tmp drwxr-xr-x 7 root root 4096 Feb 22 08:46 usr drwxr-xr-x 3 root root 4096 Feb 22 08:46 var [email protected]:/$ </code>
to compare other shell user same server <code> [email protected]:/$ ls -la total 60 drwxr-xr-x 15 root root 4096 Feb 19 14:34 . drwxr-xr-x 15 root root 4096 Feb 19 14:34 .. -rwxr-x--- 1 mkgerda client4 0 Feb 22 09:19 .bash_history -rw-r--r-- 1 mkgerda client4 0 Feb 22 09:19 .profile drwx------ 2 mkgerda client4 4096 Feb 22 09:19 .ssh lrwxrwxrwx 1 root root 7 Feb 19 14:33 bin -> usr/bin drwxr-xr-x 2 mkgerda client4 4096 Feb 18 11:13 cgi-bin drwxr-xr-x 2 root root 4096 Feb 19 14:34 dev drwxr-xr-x 6 root root 4096 Feb 19 14:34 etc drwxr-xr-x 4 root root 4096 Feb 19 14:34 home lrwxrwxrwx 1 root root 7 Feb 19 14:33 lib -> usr/lib lrwxrwxrwx 1 root root 9 Feb 19 14:33 lib64 -> usr/lib64 drwxr-xr-x 2 root root 4096 Feb 21 23:21 log drwx--x--- 2 mkgerda client4 4096 Feb 22 07:43 private drwxr-xr-x 2 root root 4096 Feb 19 10:14 ssl drwxrwxrwx 2 mkgerda client4 4096 Feb 21 14:36 tmp drwxr-xr-x 7 root root 4096 Feb 19 14:34 usr drwxr-xr-x 3 root root 4096 Feb 19 14:34 var drwx--x--x 10 mkgerda client4 4096 Feb 21 15:20 web drwx--x--- 2 mkgerda client4 4096 Feb 18 11:13 webdav [email protected]:/$ </code>
Run the command: ls -la /var/www/yourdomain.tld/ as root user and post the result. yourdomain.tld must be the domain name of that site where you added this user. And post the line from that user from /etc/passwd file
<code>root@http1:~# ls -la /var/www/zen-works.de/ total 36 drwxr-xr-x 9 root root 4096 Feb 22 09:54 . drwxr-xr-x 8 root root 4096 Feb 22 09:45 .. -rwxr-x--- 1 web58 client4 0 Feb 22 10:12 .bash_history lrwxrwxrwx 1 root root 7 Feb 22 09:45 bin -> usr/bin drwxr-xr-x 2 root root 4096 Feb 22 09:46 dev drwxr-xr-x 6 root root 4096 Feb 22 09:46 etc drwxr-xr-x 4 root root 4096 Feb 22 10:12 home lrwxrwxrwx 1 root root 7 Feb 22 09:45 lib -> usr/lib lrwxrwxrwx 1 root root 9 Feb 22 09:45 lib64 -> usr/lib64 -rw-r--r-- 1 web58 client4 0 Feb 22 10:12 .profile drwx------ 2 web58 client4 4096 Feb 22 10:12 .ssh drwxrwxrwx 2 root root 4096 Feb 22 09:46 tmp drwxr-xr-x 7 root root 4096 Feb 22 09:46 usr drwxr-xr-x 3 root root 4096 Feb 22 09:46 var root@http1:~# </code> web58:x:1008:1004::/var/www/clients/client4/web58/./home/web58:/usr/sbin/jk_chrootsh mkmk:x:1008:1004::/var/www/clients/client4/web58/./home/mkmk:/usr/sbin/jk_chrootsh
As you can see, the ssh user is working correctly. For whatever reason, this site lacks the web folder. Change a setting in that website, e.g. enable cgi, and let ispconfig create the missing folder.
nice the folders are back, empty the website is gone!. Good to have abckup. remember thats the server with the ispconfig3.1dev. May be there ist still a bug. Thanks for help just activates cgi as you said. Is it possible deleting the shell user deletes the web site, after deleteing the shell user I did not check the website
So let us move this to the "basket of unexplainable issues in IT" I will restore my website. Happy Weekend Rainer
still an other issue the directories are back but with root permission instead of client. I think I will delete the shell user, the website and recreate both. as the website is gone anyway and has to be restored from backup and these were the only data of the shell user Or do you nee some more information before I do this? Rainer
after deleting first the shell user then the website I found a web58_bak under /var/www/clients/client4 with the contents of the old working shell user including the web site. with 1008 client4 permissions timestamp of the directory ist this morning when i deleted the shell user. Do you create ab backup wen deleteing a shell user? Rainer
Yes, but only in case of an error where a new shell user is created or homedir has been changed while that homedir exists already. So the homedir of the shell user must have been changed manually somehow from home/username inside the web root to the web root itself.
That make sense so by recreating the deleted shell user the homedir still existed and the backup was created, with this the website is gone (means hidden) So there is at least an explanation. Thanks again for your help. Rainer