LoginSignup
0
0

More than 5 years have passed since last update.

nologinユーザのコマンド実行

Posted at

apache+pythonの環境で、スクリプトの権限及び結果の確認に使えるので、メモします。

apacheのユーザを確認

/etc/passwd
(前略)
apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin

*:passwd apacheでパスワードを設定する必要があるかも。

apache用のbashを起動

su -s /bin/bash apache
0
0
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
0
0