DRM

Stop the Hollyweb! No DRM in HTML5.

Sunday, December 29, 2013

Login with 2 users in one terminal

Requirements : Ubuntu OS

1. Open terminal

2. Set root password incase you dont know
sudo passwd root

3. Create another user, say alice
sudo useradd alice

4. Assign password to alice
sudo passwd alice

5. Open another tab in the same terminal and type
su - alice

6. Likewise you can add as many users you wish on the terminal and make users interact with each other simultaneously.

7. But if you try to do any sudo command then it will give you an error
alice is not in the sudoers file.  This incident will be reported.

8. Exit alice user
ctrl c

9.  For that, open a file
sudo gedit /etc/sudoers

10. Add line in the file
alice ALL=(ALL:ALL) ALL

11. Close the file

DONE!!!

No comments:

Post a Comment