Running script as user that does not have shell
I'm trying to run a script that converts mbox to maildir. The sript needs to be run as the user that I'm converting the mailbox but all my users except for a few do not have shell access.
When I do "su user -c "script" as root it doesn't work. It only works if the user has shell like /bin/bash.
Is it even possible to run commands as users that don't have shell access? In my case they all have /bin/false.