Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 installit in /usr/local. I am new to Linux so I don't understand why I need to create such a user nor do Iknow how. And this user would not be able to writemin these folders does it? I don't understand the benfits to make several users? I am running ubuntu server.

share|improve this question

1 Answer 1

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.

share|improve this answer
    
How would this user be able to create a folder for the application in /usr/local and such folders, and have the rights to execute/read/write programs in it? –  Andy Sep 24 '12 at 10:04
    
You can create that folder using root privileges. As a note, folders need the executable bit (+x). –  medigeek Sep 24 '12 at 13:07
    
Okey, I see. So should these users have home folders? –  Andy Sep 24 '12 at 16:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.