Ubuntu: Why do I need to use separate accounts for installing and running a program?


I bought some software from Atlassian (JIRA, Confluence etc.) and I am installing it. One of the programs recommend me to create a user with limited access for only that program, and it also wants me to install it in /usr/local. I am new to Linux so I don't understand why I need to create such a user nor do I know how. And this user would not be able to write in these folders does it? I don't understand the benefits to make several users? I am running Ubuntu server.


Writing a new user specifically for one application is a really good idea.

If someone was able to hack through the program somehow, will not have administrator privileges (they won't be "root"), only the privileges assigned to that specific user. You can create a new user in debian/ubuntu consoles by executing this command:

sudo adduser mynewusername  

(where you change mynewusername to your liking)

You may also want to assign the user into some groups: cat /etc/group

sudo adduser mynewusername newgroup  

(where you change the newgroup and mynewusername. Changes when you logout/login that specific user.)

Also, they won't be able to see other users' files (if file permissions are assigned properly). You can change file permissions using the chmod command.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »