Jump to content
Froxlor Forum
  • 0

Question

Posted

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?

7 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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.

  • 0
Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...