/etc/passwd
で /sbin/nologin
のユーザーで、そのユーザーとしてコマンドを実行する方法
$ su - [user] --shell=/bin/bash -c [command]
[nginx][linux][小ネタ]シェルを持たないユーザで一時的にコマンドを実行させる | (っ´∀`)っ ゃー | nullpopopo
Go to list of users who liked
More than 5 years have passed since last update.
/etc/passwd
で /sbin/nologin
のユーザーで、そのユーザーとしてコマンドを実行する方法
$ su - [user] --shell=/bin/bash -c [command]
[nginx][linux][小ネタ]シェルを持たないユーザで一時的にコマンドを実行させる | (っ´∀`)っ ゃー | nullpopopo
Register as a new user and use Qiita more conveniently
Go to list of users who liked