Linux Basic Commands

Create linux user and group

#groupadd john

#useradd -g john -d /home/john -s /bin/bash john

#mkdir /home/john

#chown john:john /home/john

#passwd john

 

#su john    -switching to user

$ls

 

SSH Login as user not root

$ ssh -l john 127.0.0.1