nvindice Posted September 26, 2022 Share Posted September 26, 2022 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? Link to comment Share on other sites More sharing options...
0 d00p Posted September 26, 2022 Share Posted September 26, 2022 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 Link to comment Share on other sites More sharing options...
0 nvindice Posted September 26, 2022 Author Share Posted September 26, 2022 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. Link to comment Share on other sites More sharing options...
0 d00p Posted September 26, 2022 Share Posted September 26, 2022 "chroot" is a privileged command, root permissions are required, you cannot use that as user Link to comment Share on other sites More sharing options...
0 nvindice Posted September 26, 2022 Author Share Posted September 26, 2022 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? Link to comment Share on other sites More sharing options...
0 d00p Posted September 26, 2022 Share Posted September 26, 2022 are you running "su - username" as root? works for me such fine. As "username" you cannot change users Link to comment Share on other sites More sharing options...
0 nvindice Posted September 26, 2022 Author Share Posted September 26, 2022 Yes, I do. It works with all non virtual users, but not with the froxlor users provided by libnss-extrausers... Link to comment Share on other sites More sharing options...
0 d00p Posted September 26, 2022 Share Posted September 26, 2022 whats the output of "id [username]"? Link to comment Share on other sites More sharing options...
Question
nvindice
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,
fails with the following error:
Am I missing something? Why can't su find the extrauser?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now