0. 概述

在日常使用中,切换用户是一件很简单的事情,但是,如果一个用户没有指定默认 shell,你是没法直接切换到该用户的。

1. 切换方法

你得手动指定运行 shell:

[[email protected]]# sudo su -s /bin/bash jenkins

2. Ref