i have created a user without any shell with /sbin/nologin
now inside root i have a directory where i can run mvn jett:run command .
but this runs the jetty process as root user.
how to make the user as the nologin user which i created.
if i enter bash shell with the nologin user and run the command i get some error relates to maven .m2 directory
what could be the way to run it with nologin user from inside a script ?