Last login: Thu Mar 23 10:44:52 2017 from 10.164.22.158
[root@outreachsrv02 ~]# ls
anaconda-ks.cfg install.log install.log.syslog jdk-8u40-linux-x64.rpm
[root@outreachsrv02 ~]# mkdir home
[root@outreachsrv02 ~]# ls
anaconda-ks.cfg home install.log install.log.syslog jdk-8u40-linux-x64.rpm
[root@outreachsrv02 ~]# useradd jboss
[root@outreachsrv02 ~]# ls
anaconda-ks.cfg home install.log install.log.syslog jdk-8u40-linux-x64.rpm
[root@outreachsrv02 ~]# rm -rf home
[root@outreachsrv02 ~]# ls
anaconda-ks.cfg install.log install.log.syslog jdk-8u40-linux-x64.rpm
[root@outreachsrv02 ~]# clear
[root@outreachsrv02 ~]# useradd -d /home/jboss -m jboss
useradd: user 'jboss' already exists
[root@outreachsrv02 ~]# userdel jboss
[root@outreachsrv02 ~]# ls
anaconda-ks.cfg install.log install.log.syslog jdk-8u40-linux-x64.rpm
[root@outreachsrv02 ~]# useradd -d /home/jboss -m jboss
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
Creating mailbox file: File exists
[root@outreachsrv02 ~]# users
root root
[root@outreachsrv02 ~]# cd /home
[root@outreachsrv02 home]# ls
jboss nginx tomcat
[root@outreachsrv02 home]# useradd -d /home/jboss -m jboss
useradd: user 'jboss' already exists
[root@outreachsrv02 home]# passwd jboss
Changing password for user jboss.
New password:
BAD PASSWORD: it is too short
BAD PASSWORD: is too simple
Retype new password:
Sorry, passwords do not match.
New password:
BAD PASSWORD: it is too short
BAD PASSWORD: is too simple
Retype new password:
Sorry, passwords do not match.
New password:
BAD PASSWORD: it is too short
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@outreachsrv02 home]# clear
[root@outreachsrv02 home]#
============================
Copyright (c) 2002-2012 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
Xshell:\> ssh jboss@10.164.194.49
Connecting to 10.164.194.49:22...
Could not connect to '10.164.194.49' (port 22): Connection failed.
Type `help' to learn how to use Xshell prompt.
Xshell:\> ssh jboss@10.164.197.49
Connecting to 10.164.197.49:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
[jboss@outreachsrv02 ~]$ ls
[jboss@outreachsrv02 ~]$
[jboss@outreachsrv02 ~]$ 测的。。
-bash: 测的。。: command not found
[jboss@outreachsrv02 ~]$
[jboss@outreachsrv02 ~]$
[jboss@outreachsrv02 ~]$ .cd ..
[jboss@outreachsrv02 home]$ ls
jboss nginx tomcat
[jboss@outreachsrv02 home]$ cd jboss
[jboss@outreachsrv02 ~]$ clear
[jboss@outreachsrv02 ~]$ ls
[jboss@outreachsrv02 ~]$
[jboss@outreachsrv02 ~]$
[jboss@outreachsrv02 ~]$
[jboss@outreachsrv02 ~]$ clear
[jboss@outreachsrv02 ~]$ ls
[jboss@outreachsrv02 ~]$