cat /etc/shells
[root@server01 ~]# cat /etc/shells
/bin/bash
/bin/bash2
/sbin/e-smith/console
/bin/csh
/bin/false
/usr/bin/rssh
/bin/sh
Then use this to check which shell the user is using (ithk01 is the user id)
grep ithk01 /etc/passwdThen use
chsh --shell /bin/bash ithk01
For SME Linux do this
Shell Access
- I need to give a user shell access to the SME Server.
Shell access should only be provided to users who have a *need* for it and can be trusted.
Before a user can have shell access Admin must enable ssh access at
server-manager -> Security -> Remote Access
You then enable shell access for a user by:
db accounts setprop username Shell /bin/bash
chsh -s /bin/bash username
沒有留言:
發佈留言