nologinユーザーにsuする
例えばこんなapacheユーザ
root # vipw apache:x:48:48:Apache:/var/www:/sbin/nologin
普通にswitch userすると
root # su - apache This account is currently not available.
となるので、ログインシェルを渡すとswitch userできる
root # su - apache --shell=/bin/bash -bash $
例えばこんなapacheユーザ
root # vipw apache:x:48:48:Apache:/var/www:/sbin/nologin
普通にswitch userすると
root # su - apache This account is currently not available.
となるので、ログインシェルを渡すとswitch userできる
root # su - apache --shell=/bin/bash -bash $