Jump to content
Froxlor Forum
  • 0

libnss-extrausers and su



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

7 answers to this question

Recommended Posts

  • 0

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

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...