Adding and Deleting user


OCI’s default user is ubuntu. To add a new user and to delete an user, follow the step below.

sudo -i
adduser username
passwd username
cp /home/ubunadu/.ssh /home/username/ -r
chown -R username:username /home/username/.ssh

vi /etc/sudoers
------------------
# User privilege specification
root     ALL=(ALL:ALL) ALL
------------------
# User privilege specification
root     ALL=(ALL:ALL) ALL
username   ALL=(ALL:ALL) ALL
------------------
sudo deluser --remove-home ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *