To run a command as another user the following would normally suffice: su -c '/path/to/command --switches ' user For a user with no login shell, it is possible to specify the shell to use: su -s /bin/bash -c '/path/to/command --switches' user Categories: LinuxPosts 0 Comments Leave a Reply Cancel replyYour email address will not be published. Required fields are marked * Name * Email * Website What's on your mind? Δ This site uses Akismet to reduce spam. Learn how your comment data is processed.
0 Comments