ali@mini:~$ cat /etc/passwd | grep ali
ali:x:1000:50:Linux User,,,:/home/ali:/bin/sh
ali@mini:~$ which bash | sudo tee -a /etc/shells > /dev/null
ali@mini:~$ cat /etc/passwd | grep ali
ali:x:1000:50:Linux User,,,:/home/ali:/bin/sh
ali@mini:~$ sed '/^ali:/s#:[^:]\+$#:/usr/local/bin/bash#' /etc/passwd
root:x:0:0:root:/root:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/false
tc:x:1001:50:Linux User,,,:/home/tc:/bin/sh
ali:x:1000:50:Linux User,,,:/home/ali:/usr/local/bin/bash
ali@mini:~$ cat /etc/passwd | grep ali
ali:x:1000:50:Linux User,,,:/home/ali:/bin/sh
ali@mini:~$ cat /etc/shells
# /etc/shells: valid login shells.
/bin/sh
/bin/ash
/usr/local/bin/bash