- 一般使用者登入系統,欲切換為root
login as: mds
Using keyboard-interactive authentication.
Password:
Last login: Tue Jan 13 16:21:07 2015 from 172.16.37.211
Oracle Corporation SunOS 5.11 11.1 May 2014
-bash-4.1$ su -
Password:
Roles can only be assumed by authorized users
- 先使用root權限登入.
root@LDAPc25:~# usermod -R root mds
UX: usermod: mds is currently logged in, some changes may not take effect until next login.
- 下次登入時生效
login as: mds
Using keyboard-interactive authentication.
Password:
Last login: Wed May 6 10:22:15 2015 from 172.16.37.211
Oracle Corporation SunOS 5.11 11.1 May 2014
-bash-4.1$ su -
Password:
Oracle Corporation SunOS 5.11 11.1 May 2014
root@LDAPc25:~#
沒有留言:
張貼留言