8
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

シェルを持たないユーザで一時的にコマンドを実行方法

Posted at

/etc/passwd/sbin/nologinのユーザーで、そのユーザーとしてコマンドを実行する方法

$ su - [user] --shell=/bin/bash -c [command]

[nginx][linux][小ネタ]シェルを持たないユーザで一時的にコマンドを実行させる | (っ´∀`)っ ゃー | nullpopopo

8
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?