# Run function as another user

```bash
export -f <function_name>
su <user to run function as> -c "bash -c <function_name>"
```