September 26, 20223 yr Hi, I'm trying to create a chrooted environment for a froxlor user (eg: username). libnss-extrausers is installed for php-fpm support. However, when trying to chroot the user, su - username fails with the following error: su: user username does not exist or the user entry does not contain all the required fields Am I missing something? Why can't su find the extrauser?
September 26, 20223 yr You need to allow shell-access globally in the settings and specify available shells (e.g. /bin/bash) and then the customer can select one of the shells for his/her ftp-users which are then mapped via libnss-extrausers as systemusers
September 26, 20223 yr Author Thank you, I did that - using a shell like /bin/bash works fine. However, using the "chroot" command without "su - username", my user writes all his files as root, not as "username". Thats where I need the "su" for, which is not working... EDIT: Sorry, some more context: I need sudo rights to use the "chroot" command, afterwards I need the user to switch back by using "su - username". This is where my problem is.
September 26, 20223 yr "chroot" is a privileged command, root permissions are required, you cannot use that as user
September 26, 20223 yr Author Yes, it is. My only question is: Why can't I use "su - username" for a virtual froxlor user "username" with libnss-extrausers in my Froxlor setup?
September 26, 20223 yr are you running "su - username" as root? works for me such fine. As "username" you cannot change users
September 26, 20223 yr Author Yes, I do. It works with all non virtual users, but not with the froxlor users provided by libnss-extrausers...
Create an account or sign in to comment