How do I install a software as admin for the standard user to use? The Next CEO of Stack Overflowhow do I install Aptana Studio 3 in Ubuntu 14.04 LTS?Installing Eclipse IDEs for Java and C/C++Applications that can be installed and/or run by a non-admin userCan I have a user execute sudo commands without being an administrator?Accidently removed admin/sudo rightsWhat's the difference if I use Windows 7 as a Standard User vs if I use ubuntu?Administrative AccountHow do I enabel my VPN on my standard account?Run sudo commands from standard accountSecurity risk in everyday use of an admin account (not root)?root login authentication failure, how to use sudo?Give permissions for a sub-folder from a Windows partition to a standard user

Why do airplanes bank sharply to the right after air-to-air refueling?

If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?

What happened in Rome, when the western empire "fell"?

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

How to add tiny 0.5A 120V load to very remote split phase 240v 3 wire well house

Does it take more energy to get to Venus or to Mars?

Why didn't Khan get resurrected in the Genesis Explosion?

Can we say or write : "No, it'sn't"?

Can I equip Skullclamp on a creature I am sacrificing?

How fast would a person need to move to trick the eye?

How to make a variable always equal to the result of some calculations?

Won the lottery - how do I keep the money?

What was the first Unix version to run on a microcomputer?

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

Written every which way

Is it possible to search for a directory/file combination?

Inappropriate reference requests from Journal reviewers

What benefits would be gained by using human laborers instead of drones in deep sea mining?

Which tube will fit a -(700 x 25c) wheel?

Return the Closest Prime Number

Novel about a guy who is possessed by the divine essence and the world ends?

WOW air has ceased operation, can I get my tickets refunded?

Is it my responsibility to learn a new technology in my own time my employer wants to implement?

Between two walls



How do I install a software as admin for the standard user to use?



The Next CEO of Stack Overflowhow do I install Aptana Studio 3 in Ubuntu 14.04 LTS?Installing Eclipse IDEs for Java and C/C++Applications that can be installed and/or run by a non-admin userCan I have a user execute sudo commands without being an administrator?Accidently removed admin/sudo rightsWhat's the difference if I use Windows 7 as a Standard User vs if I use ubuntu?Administrative AccountHow do I enabel my VPN on my standard account?Run sudo commands from standard accountSecurity risk in everyday use of an admin account (not root)?root login authentication failure, how to use sudo?Give permissions for a sub-folder from a Windows partition to a standard user










0















Background: I installed Ubuntu 14.04.2 LTS and would like to install and use Aptana (and Java). Google pointed me to the guide how to do this and i successfully did this under the initial Ubuntu account with administrative privileges. (this way: http://goo.gl/N5I1eW) However, as far as i understand, it is not safe to use the admin account daily. So, i created a standard account, but standard account does not have access to whatever i installed under the admin account and it may not sudo or install software. I am back to the clean Ubuntu 14.04.2 LTS with the admin and the standard users now. I could not find any guides about installing software for other users so far.



Not a duplicate of anything because: the new dimension of this question is related to security - installing Aptana for use not under the admin's account, but by admin to be used under the standard user's account. As a newbie, I am not sure of the finer details and would appreciate a clarification by a more experienced Ubuntu user.










share|improve this question
















bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    You should edit your question and add a link to the guide you where following. Installing software via software-center (gui) or apt (cli) makes it available for all users.

    – mgor
    Aug 5 '15 at 21:14











  • possible duplicate of Installing Eclipse IDEs for Java and C/C++

    – A.B.
    Aug 6 '15 at 5:28











  • ^^^^^^ Read and adapt my answer.

    – A.B.
    Aug 6 '15 at 5:29











  • @mgor: Is this (goo.gl/N5I1eW) the complete and safe way to install Aptana by admin to be used by the user without admin privileges? Is Aptana installed this way by admin under admin's account available for the standard user to use? Is the only thing left to do for the standard user creating a correct .desktop file under the standard account? Would it be correct to create the same .desktop file as the one under the admin account? What would the code of a correct .desktop file for the standard user look like?

    – viDim
    Aug 6 '15 at 5:53











  • @A.B. There is no answer to my question there "Installing Eclipse IDEs for Java and C/C++" askubuntu.com/questions/656561/…

    – viDim
    Aug 6 '15 at 6:42















0















Background: I installed Ubuntu 14.04.2 LTS and would like to install and use Aptana (and Java). Google pointed me to the guide how to do this and i successfully did this under the initial Ubuntu account with administrative privileges. (this way: http://goo.gl/N5I1eW) However, as far as i understand, it is not safe to use the admin account daily. So, i created a standard account, but standard account does not have access to whatever i installed under the admin account and it may not sudo or install software. I am back to the clean Ubuntu 14.04.2 LTS with the admin and the standard users now. I could not find any guides about installing software for other users so far.



Not a duplicate of anything because: the new dimension of this question is related to security - installing Aptana for use not under the admin's account, but by admin to be used under the standard user's account. As a newbie, I am not sure of the finer details and would appreciate a clarification by a more experienced Ubuntu user.










share|improve this question
















bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    You should edit your question and add a link to the guide you where following. Installing software via software-center (gui) or apt (cli) makes it available for all users.

    – mgor
    Aug 5 '15 at 21:14











  • possible duplicate of Installing Eclipse IDEs for Java and C/C++

    – A.B.
    Aug 6 '15 at 5:28











  • ^^^^^^ Read and adapt my answer.

    – A.B.
    Aug 6 '15 at 5:29











  • @mgor: Is this (goo.gl/N5I1eW) the complete and safe way to install Aptana by admin to be used by the user without admin privileges? Is Aptana installed this way by admin under admin's account available for the standard user to use? Is the only thing left to do for the standard user creating a correct .desktop file under the standard account? Would it be correct to create the same .desktop file as the one under the admin account? What would the code of a correct .desktop file for the standard user look like?

    – viDim
    Aug 6 '15 at 5:53











  • @A.B. There is no answer to my question there "Installing Eclipse IDEs for Java and C/C++" askubuntu.com/questions/656561/…

    – viDim
    Aug 6 '15 at 6:42













0












0








0








Background: I installed Ubuntu 14.04.2 LTS and would like to install and use Aptana (and Java). Google pointed me to the guide how to do this and i successfully did this under the initial Ubuntu account with administrative privileges. (this way: http://goo.gl/N5I1eW) However, as far as i understand, it is not safe to use the admin account daily. So, i created a standard account, but standard account does not have access to whatever i installed under the admin account and it may not sudo or install software. I am back to the clean Ubuntu 14.04.2 LTS with the admin and the standard users now. I could not find any guides about installing software for other users so far.



Not a duplicate of anything because: the new dimension of this question is related to security - installing Aptana for use not under the admin's account, but by admin to be used under the standard user's account. As a newbie, I am not sure of the finer details and would appreciate a clarification by a more experienced Ubuntu user.










share|improve this question
















Background: I installed Ubuntu 14.04.2 LTS and would like to install and use Aptana (and Java). Google pointed me to the guide how to do this and i successfully did this under the initial Ubuntu account with administrative privileges. (this way: http://goo.gl/N5I1eW) However, as far as i understand, it is not safe to use the admin account daily. So, i created a standard account, but standard account does not have access to whatever i installed under the admin account and it may not sudo or install software. I am back to the clean Ubuntu 14.04.2 LTS with the admin and the standard users now. I could not find any guides about installing software for other users so far.



Not a duplicate of anything because: the new dimension of this question is related to security - installing Aptana for use not under the admin's account, but by admin to be used under the standard user's account. As a newbie, I am not sure of the finer details and would appreciate a clarification by a more experienced Ubuntu user.







package-management sudo user-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 6 '15 at 5:48







viDim

















asked Aug 5 '15 at 21:11









viDimviDim

612




612





bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.









  • 1





    You should edit your question and add a link to the guide you where following. Installing software via software-center (gui) or apt (cli) makes it available for all users.

    – mgor
    Aug 5 '15 at 21:14











  • possible duplicate of Installing Eclipse IDEs for Java and C/C++

    – A.B.
    Aug 6 '15 at 5:28











  • ^^^^^^ Read and adapt my answer.

    – A.B.
    Aug 6 '15 at 5:29











  • @mgor: Is this (goo.gl/N5I1eW) the complete and safe way to install Aptana by admin to be used by the user without admin privileges? Is Aptana installed this way by admin under admin's account available for the standard user to use? Is the only thing left to do for the standard user creating a correct .desktop file under the standard account? Would it be correct to create the same .desktop file as the one under the admin account? What would the code of a correct .desktop file for the standard user look like?

    – viDim
    Aug 6 '15 at 5:53











  • @A.B. There is no answer to my question there "Installing Eclipse IDEs for Java and C/C++" askubuntu.com/questions/656561/…

    – viDim
    Aug 6 '15 at 6:42












  • 1





    You should edit your question and add a link to the guide you where following. Installing software via software-center (gui) or apt (cli) makes it available for all users.

    – mgor
    Aug 5 '15 at 21:14











  • possible duplicate of Installing Eclipse IDEs for Java and C/C++

    – A.B.
    Aug 6 '15 at 5:28











  • ^^^^^^ Read and adapt my answer.

    – A.B.
    Aug 6 '15 at 5:29











  • @mgor: Is this (goo.gl/N5I1eW) the complete and safe way to install Aptana by admin to be used by the user without admin privileges? Is Aptana installed this way by admin under admin's account available for the standard user to use? Is the only thing left to do for the standard user creating a correct .desktop file under the standard account? Would it be correct to create the same .desktop file as the one under the admin account? What would the code of a correct .desktop file for the standard user look like?

    – viDim
    Aug 6 '15 at 5:53











  • @A.B. There is no answer to my question there "Installing Eclipse IDEs for Java and C/C++" askubuntu.com/questions/656561/…

    – viDim
    Aug 6 '15 at 6:42







1




1





You should edit your question and add a link to the guide you where following. Installing software via software-center (gui) or apt (cli) makes it available for all users.

– mgor
Aug 5 '15 at 21:14





You should edit your question and add a link to the guide you where following. Installing software via software-center (gui) or apt (cli) makes it available for all users.

– mgor
Aug 5 '15 at 21:14













possible duplicate of Installing Eclipse IDEs for Java and C/C++

– A.B.
Aug 6 '15 at 5:28





possible duplicate of Installing Eclipse IDEs for Java and C/C++

– A.B.
Aug 6 '15 at 5:28













^^^^^^ Read and adapt my answer.

– A.B.
Aug 6 '15 at 5:29





^^^^^^ Read and adapt my answer.

– A.B.
Aug 6 '15 at 5:29













@mgor: Is this (goo.gl/N5I1eW) the complete and safe way to install Aptana by admin to be used by the user without admin privileges? Is Aptana installed this way by admin under admin's account available for the standard user to use? Is the only thing left to do for the standard user creating a correct .desktop file under the standard account? Would it be correct to create the same .desktop file as the one under the admin account? What would the code of a correct .desktop file for the standard user look like?

– viDim
Aug 6 '15 at 5:53





@mgor: Is this (goo.gl/N5I1eW) the complete and safe way to install Aptana by admin to be used by the user without admin privileges? Is Aptana installed this way by admin under admin's account available for the standard user to use? Is the only thing left to do for the standard user creating a correct .desktop file under the standard account? Would it be correct to create the same .desktop file as the one under the admin account? What would the code of a correct .desktop file for the standard user look like?

– viDim
Aug 6 '15 at 5:53













@A.B. There is no answer to my question there "Installing Eclipse IDEs for Java and C/C++" askubuntu.com/questions/656561/…

– viDim
Aug 6 '15 at 6:42





@A.B. There is no answer to my question there "Installing Eclipse IDEs for Java and C/C++" askubuntu.com/questions/656561/…

– viDim
Aug 6 '15 at 6:42










1 Answer
1






active

oldest

votes


















0














In most cases, installing applications for all users on Ubuntu requires root access. Binaries are installed in /usr/bin, which is writable only by root, and likewise for other installed files.



The usual way to install packages from the command line is using the apt-get tool, running under sudo:



sudo apt-get install package-name


If you run this from an account that has sudo access, it will prompt for your password and then run the command as root.



There are also GUI package managers; they'll prompt for your password when you do anything that requires root access.




However, as far as i understand, it is not safe to use the admin account daily.




It's not safe to run an interactive shell under the root account. It's too easy for a typo in a command to mess up your system. That's why sudo exists -- so you can (carefully!) execute individual commands as root while being logged in as an ordinary user.



I suppose that setting up one user account with sudo access, and another user account without sudo access (and using the latter for most purposes) is slightly safer than giving your usual user account sudo access. I've never bothered to do that myself. If the system is not shared with other users, I suggest just configuring your own account with sudo access and being careful about what you use it for. You'll have root access, but you won't be able to use it accidentally; typing sudo will be a reminder that you're doing something that could be dangerous.



Based on the information in this question, it looks like Aptana has to be installed by unzipping a downloaded file under /opt. The same considerations apply. Rather than running apt-get install under sudo, you'll just run unzip under sudo.



It's good to be cautious, even a bit paranoid, about using root privileges -- but if you need to install software, you need to use your root privileges.



Some software can be configured for installation under your home directory, to be used only from your own user account. On the other hand, some software is preconfigured to assume that, for example, its binaries are under /usr/bin. I don't know whether you can install Aptana under an ordinary user account. But judging from the answer to the linked question, I'd probably just go ahead and install it under /opt. There's always a risk in installing any third-party software, but people do it all the time.



On further thought, let me clarify some points.



There are (to an initial rough approximation) three kinds of accounts on the system:



  1. The root account. This account can do anything on the system: install software, read other users' files, reformat the disk. In normal usage, you should probably never login to this account.


  2. One or more administrative users. These are people who are trusted to use root privileges, for example to install software packages to be used by everyone on the system. Each administrative user can use the sudo command.


  3. Zero or more non-administrative users. These users do not have sudo access, and cannot install software outside their own home directories.


The systems I use have a single administrative user (me) and no non-administrative users, since I either own or control the entire system for my own use. A multi-user system will of course have more accounts.



It's also possible to modify the sudoers file to permit some users to run only certain commands as root; those users would be somewhere between 2 and 3 in the above list.



If you're the only user of the system (something that wasn't clear from your question), just set up a user account for yourself with sudo privileges. Use sudo only for administrative activities like installing software.



(Sorry about the length of this answer. I haven't had time to make it shorter.)






share|improve this answer

























  • Thank you for your attention. Nobody else cares to answer. Basically, you suggest giving the standard user sudo rights. There probably is a way to achieve the aim i have in mind. Since Aptana is not available in the repository anyway, and the admin has a system-wide access, he can unpack Aptana in the home directory of the standard user and then add him to the access rights of the folder with Aptana. I now wonder whether i can do the same with Java - put it in the home directory of the standard user and install it just for him to use and keep the admin account clean.

    – viDim
    Aug 6 '15 at 21:56












  • @viDim: Depends on what you mean by "the standard user". There needs to be a non-root account that can use sudo. You can login to that account and use sudo to install software. Depending on how the system is being used (multiple non-admin users? just you?) you may or may not want to set up additional accounts without sudo access. Users logging into those accounts will not be able to install software under the root directory (though they may be able to install some software under their home directories).

    – Keith Thompson
    Aug 6 '15 at 22:07











  • @viDim: I've updated my answer; the new material starts at "On further thought".

    – Keith Thompson
    Aug 6 '15 at 22:13











  • Would it be safe to give standard user sudo rights just for installing Java and Aptana and then just to revoke sudo rights, maybe also add him to the access rights of the folder with Aptana? Will it all work?

    – viDim
    Aug 6 '15 at 22:14











  • @viDim: I have no idea. How much to do you trust the "standard user(s)"? Why do you want to give them permission to install the software rather than installing it yourself?

    – Keith Thompson
    Aug 6 '15 at 22:17











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f657028%2fhow-do-i-install-a-software-as-admin-for-the-standard-user-to-use%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














In most cases, installing applications for all users on Ubuntu requires root access. Binaries are installed in /usr/bin, which is writable only by root, and likewise for other installed files.



The usual way to install packages from the command line is using the apt-get tool, running under sudo:



sudo apt-get install package-name


If you run this from an account that has sudo access, it will prompt for your password and then run the command as root.



There are also GUI package managers; they'll prompt for your password when you do anything that requires root access.




However, as far as i understand, it is not safe to use the admin account daily.




It's not safe to run an interactive shell under the root account. It's too easy for a typo in a command to mess up your system. That's why sudo exists -- so you can (carefully!) execute individual commands as root while being logged in as an ordinary user.



I suppose that setting up one user account with sudo access, and another user account without sudo access (and using the latter for most purposes) is slightly safer than giving your usual user account sudo access. I've never bothered to do that myself. If the system is not shared with other users, I suggest just configuring your own account with sudo access and being careful about what you use it for. You'll have root access, but you won't be able to use it accidentally; typing sudo will be a reminder that you're doing something that could be dangerous.



Based on the information in this question, it looks like Aptana has to be installed by unzipping a downloaded file under /opt. The same considerations apply. Rather than running apt-get install under sudo, you'll just run unzip under sudo.



It's good to be cautious, even a bit paranoid, about using root privileges -- but if you need to install software, you need to use your root privileges.



Some software can be configured for installation under your home directory, to be used only from your own user account. On the other hand, some software is preconfigured to assume that, for example, its binaries are under /usr/bin. I don't know whether you can install Aptana under an ordinary user account. But judging from the answer to the linked question, I'd probably just go ahead and install it under /opt. There's always a risk in installing any third-party software, but people do it all the time.



On further thought, let me clarify some points.



There are (to an initial rough approximation) three kinds of accounts on the system:



  1. The root account. This account can do anything on the system: install software, read other users' files, reformat the disk. In normal usage, you should probably never login to this account.


  2. One or more administrative users. These are people who are trusted to use root privileges, for example to install software packages to be used by everyone on the system. Each administrative user can use the sudo command.


  3. Zero or more non-administrative users. These users do not have sudo access, and cannot install software outside their own home directories.


The systems I use have a single administrative user (me) and no non-administrative users, since I either own or control the entire system for my own use. A multi-user system will of course have more accounts.



It's also possible to modify the sudoers file to permit some users to run only certain commands as root; those users would be somewhere between 2 and 3 in the above list.



If you're the only user of the system (something that wasn't clear from your question), just set up a user account for yourself with sudo privileges. Use sudo only for administrative activities like installing software.



(Sorry about the length of this answer. I haven't had time to make it shorter.)






share|improve this answer

























  • Thank you for your attention. Nobody else cares to answer. Basically, you suggest giving the standard user sudo rights. There probably is a way to achieve the aim i have in mind. Since Aptana is not available in the repository anyway, and the admin has a system-wide access, he can unpack Aptana in the home directory of the standard user and then add him to the access rights of the folder with Aptana. I now wonder whether i can do the same with Java - put it in the home directory of the standard user and install it just for him to use and keep the admin account clean.

    – viDim
    Aug 6 '15 at 21:56












  • @viDim: Depends on what you mean by "the standard user". There needs to be a non-root account that can use sudo. You can login to that account and use sudo to install software. Depending on how the system is being used (multiple non-admin users? just you?) you may or may not want to set up additional accounts without sudo access. Users logging into those accounts will not be able to install software under the root directory (though they may be able to install some software under their home directories).

    – Keith Thompson
    Aug 6 '15 at 22:07











  • @viDim: I've updated my answer; the new material starts at "On further thought".

    – Keith Thompson
    Aug 6 '15 at 22:13











  • Would it be safe to give standard user sudo rights just for installing Java and Aptana and then just to revoke sudo rights, maybe also add him to the access rights of the folder with Aptana? Will it all work?

    – viDim
    Aug 6 '15 at 22:14











  • @viDim: I have no idea. How much to do you trust the "standard user(s)"? Why do you want to give them permission to install the software rather than installing it yourself?

    – Keith Thompson
    Aug 6 '15 at 22:17















0














In most cases, installing applications for all users on Ubuntu requires root access. Binaries are installed in /usr/bin, which is writable only by root, and likewise for other installed files.



The usual way to install packages from the command line is using the apt-get tool, running under sudo:



sudo apt-get install package-name


If you run this from an account that has sudo access, it will prompt for your password and then run the command as root.



There are also GUI package managers; they'll prompt for your password when you do anything that requires root access.




However, as far as i understand, it is not safe to use the admin account daily.




It's not safe to run an interactive shell under the root account. It's too easy for a typo in a command to mess up your system. That's why sudo exists -- so you can (carefully!) execute individual commands as root while being logged in as an ordinary user.



I suppose that setting up one user account with sudo access, and another user account without sudo access (and using the latter for most purposes) is slightly safer than giving your usual user account sudo access. I've never bothered to do that myself. If the system is not shared with other users, I suggest just configuring your own account with sudo access and being careful about what you use it for. You'll have root access, but you won't be able to use it accidentally; typing sudo will be a reminder that you're doing something that could be dangerous.



Based on the information in this question, it looks like Aptana has to be installed by unzipping a downloaded file under /opt. The same considerations apply. Rather than running apt-get install under sudo, you'll just run unzip under sudo.



It's good to be cautious, even a bit paranoid, about using root privileges -- but if you need to install software, you need to use your root privileges.



Some software can be configured for installation under your home directory, to be used only from your own user account. On the other hand, some software is preconfigured to assume that, for example, its binaries are under /usr/bin. I don't know whether you can install Aptana under an ordinary user account. But judging from the answer to the linked question, I'd probably just go ahead and install it under /opt. There's always a risk in installing any third-party software, but people do it all the time.



On further thought, let me clarify some points.



There are (to an initial rough approximation) three kinds of accounts on the system:



  1. The root account. This account can do anything on the system: install software, read other users' files, reformat the disk. In normal usage, you should probably never login to this account.


  2. One or more administrative users. These are people who are trusted to use root privileges, for example to install software packages to be used by everyone on the system. Each administrative user can use the sudo command.


  3. Zero or more non-administrative users. These users do not have sudo access, and cannot install software outside their own home directories.


The systems I use have a single administrative user (me) and no non-administrative users, since I either own or control the entire system for my own use. A multi-user system will of course have more accounts.



It's also possible to modify the sudoers file to permit some users to run only certain commands as root; those users would be somewhere between 2 and 3 in the above list.



If you're the only user of the system (something that wasn't clear from your question), just set up a user account for yourself with sudo privileges. Use sudo only for administrative activities like installing software.



(Sorry about the length of this answer. I haven't had time to make it shorter.)






share|improve this answer

























  • Thank you for your attention. Nobody else cares to answer. Basically, you suggest giving the standard user sudo rights. There probably is a way to achieve the aim i have in mind. Since Aptana is not available in the repository anyway, and the admin has a system-wide access, he can unpack Aptana in the home directory of the standard user and then add him to the access rights of the folder with Aptana. I now wonder whether i can do the same with Java - put it in the home directory of the standard user and install it just for him to use and keep the admin account clean.

    – viDim
    Aug 6 '15 at 21:56












  • @viDim: Depends on what you mean by "the standard user". There needs to be a non-root account that can use sudo. You can login to that account and use sudo to install software. Depending on how the system is being used (multiple non-admin users? just you?) you may or may not want to set up additional accounts without sudo access. Users logging into those accounts will not be able to install software under the root directory (though they may be able to install some software under their home directories).

    – Keith Thompson
    Aug 6 '15 at 22:07











  • @viDim: I've updated my answer; the new material starts at "On further thought".

    – Keith Thompson
    Aug 6 '15 at 22:13











  • Would it be safe to give standard user sudo rights just for installing Java and Aptana and then just to revoke sudo rights, maybe also add him to the access rights of the folder with Aptana? Will it all work?

    – viDim
    Aug 6 '15 at 22:14











  • @viDim: I have no idea. How much to do you trust the "standard user(s)"? Why do you want to give them permission to install the software rather than installing it yourself?

    – Keith Thompson
    Aug 6 '15 at 22:17













0












0








0







In most cases, installing applications for all users on Ubuntu requires root access. Binaries are installed in /usr/bin, which is writable only by root, and likewise for other installed files.



The usual way to install packages from the command line is using the apt-get tool, running under sudo:



sudo apt-get install package-name


If you run this from an account that has sudo access, it will prompt for your password and then run the command as root.



There are also GUI package managers; they'll prompt for your password when you do anything that requires root access.




However, as far as i understand, it is not safe to use the admin account daily.




It's not safe to run an interactive shell under the root account. It's too easy for a typo in a command to mess up your system. That's why sudo exists -- so you can (carefully!) execute individual commands as root while being logged in as an ordinary user.



I suppose that setting up one user account with sudo access, and another user account without sudo access (and using the latter for most purposes) is slightly safer than giving your usual user account sudo access. I've never bothered to do that myself. If the system is not shared with other users, I suggest just configuring your own account with sudo access and being careful about what you use it for. You'll have root access, but you won't be able to use it accidentally; typing sudo will be a reminder that you're doing something that could be dangerous.



Based on the information in this question, it looks like Aptana has to be installed by unzipping a downloaded file under /opt. The same considerations apply. Rather than running apt-get install under sudo, you'll just run unzip under sudo.



It's good to be cautious, even a bit paranoid, about using root privileges -- but if you need to install software, you need to use your root privileges.



Some software can be configured for installation under your home directory, to be used only from your own user account. On the other hand, some software is preconfigured to assume that, for example, its binaries are under /usr/bin. I don't know whether you can install Aptana under an ordinary user account. But judging from the answer to the linked question, I'd probably just go ahead and install it under /opt. There's always a risk in installing any third-party software, but people do it all the time.



On further thought, let me clarify some points.



There are (to an initial rough approximation) three kinds of accounts on the system:



  1. The root account. This account can do anything on the system: install software, read other users' files, reformat the disk. In normal usage, you should probably never login to this account.


  2. One or more administrative users. These are people who are trusted to use root privileges, for example to install software packages to be used by everyone on the system. Each administrative user can use the sudo command.


  3. Zero or more non-administrative users. These users do not have sudo access, and cannot install software outside their own home directories.


The systems I use have a single administrative user (me) and no non-administrative users, since I either own or control the entire system for my own use. A multi-user system will of course have more accounts.



It's also possible to modify the sudoers file to permit some users to run only certain commands as root; those users would be somewhere between 2 and 3 in the above list.



If you're the only user of the system (something that wasn't clear from your question), just set up a user account for yourself with sudo privileges. Use sudo only for administrative activities like installing software.



(Sorry about the length of this answer. I haven't had time to make it shorter.)






share|improve this answer















In most cases, installing applications for all users on Ubuntu requires root access. Binaries are installed in /usr/bin, which is writable only by root, and likewise for other installed files.



The usual way to install packages from the command line is using the apt-get tool, running under sudo:



sudo apt-get install package-name


If you run this from an account that has sudo access, it will prompt for your password and then run the command as root.



There are also GUI package managers; they'll prompt for your password when you do anything that requires root access.




However, as far as i understand, it is not safe to use the admin account daily.




It's not safe to run an interactive shell under the root account. It's too easy for a typo in a command to mess up your system. That's why sudo exists -- so you can (carefully!) execute individual commands as root while being logged in as an ordinary user.



I suppose that setting up one user account with sudo access, and another user account without sudo access (and using the latter for most purposes) is slightly safer than giving your usual user account sudo access. I've never bothered to do that myself. If the system is not shared with other users, I suggest just configuring your own account with sudo access and being careful about what you use it for. You'll have root access, but you won't be able to use it accidentally; typing sudo will be a reminder that you're doing something that could be dangerous.



Based on the information in this question, it looks like Aptana has to be installed by unzipping a downloaded file under /opt. The same considerations apply. Rather than running apt-get install under sudo, you'll just run unzip under sudo.



It's good to be cautious, even a bit paranoid, about using root privileges -- but if you need to install software, you need to use your root privileges.



Some software can be configured for installation under your home directory, to be used only from your own user account. On the other hand, some software is preconfigured to assume that, for example, its binaries are under /usr/bin. I don't know whether you can install Aptana under an ordinary user account. But judging from the answer to the linked question, I'd probably just go ahead and install it under /opt. There's always a risk in installing any third-party software, but people do it all the time.



On further thought, let me clarify some points.



There are (to an initial rough approximation) three kinds of accounts on the system:



  1. The root account. This account can do anything on the system: install software, read other users' files, reformat the disk. In normal usage, you should probably never login to this account.


  2. One or more administrative users. These are people who are trusted to use root privileges, for example to install software packages to be used by everyone on the system. Each administrative user can use the sudo command.


  3. Zero or more non-administrative users. These users do not have sudo access, and cannot install software outside their own home directories.


The systems I use have a single administrative user (me) and no non-administrative users, since I either own or control the entire system for my own use. A multi-user system will of course have more accounts.



It's also possible to modify the sudoers file to permit some users to run only certain commands as root; those users would be somewhere between 2 and 3 in the above list.



If you're the only user of the system (something that wasn't clear from your question), just set up a user account for yourself with sudo privileges. Use sudo only for administrative activities like installing software.



(Sorry about the length of this answer. I haven't had time to make it shorter.)







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 13 '17 at 12:24









Community

1




1










answered Aug 6 '15 at 20:25









Keith ThompsonKeith Thompson

1,173715




1,173715












  • Thank you for your attention. Nobody else cares to answer. Basically, you suggest giving the standard user sudo rights. There probably is a way to achieve the aim i have in mind. Since Aptana is not available in the repository anyway, and the admin has a system-wide access, he can unpack Aptana in the home directory of the standard user and then add him to the access rights of the folder with Aptana. I now wonder whether i can do the same with Java - put it in the home directory of the standard user and install it just for him to use and keep the admin account clean.

    – viDim
    Aug 6 '15 at 21:56












  • @viDim: Depends on what you mean by "the standard user". There needs to be a non-root account that can use sudo. You can login to that account and use sudo to install software. Depending on how the system is being used (multiple non-admin users? just you?) you may or may not want to set up additional accounts without sudo access. Users logging into those accounts will not be able to install software under the root directory (though they may be able to install some software under their home directories).

    – Keith Thompson
    Aug 6 '15 at 22:07











  • @viDim: I've updated my answer; the new material starts at "On further thought".

    – Keith Thompson
    Aug 6 '15 at 22:13











  • Would it be safe to give standard user sudo rights just for installing Java and Aptana and then just to revoke sudo rights, maybe also add him to the access rights of the folder with Aptana? Will it all work?

    – viDim
    Aug 6 '15 at 22:14











  • @viDim: I have no idea. How much to do you trust the "standard user(s)"? Why do you want to give them permission to install the software rather than installing it yourself?

    – Keith Thompson
    Aug 6 '15 at 22:17

















  • Thank you for your attention. Nobody else cares to answer. Basically, you suggest giving the standard user sudo rights. There probably is a way to achieve the aim i have in mind. Since Aptana is not available in the repository anyway, and the admin has a system-wide access, he can unpack Aptana in the home directory of the standard user and then add him to the access rights of the folder with Aptana. I now wonder whether i can do the same with Java - put it in the home directory of the standard user and install it just for him to use and keep the admin account clean.

    – viDim
    Aug 6 '15 at 21:56












  • @viDim: Depends on what you mean by "the standard user". There needs to be a non-root account that can use sudo. You can login to that account and use sudo to install software. Depending on how the system is being used (multiple non-admin users? just you?) you may or may not want to set up additional accounts without sudo access. Users logging into those accounts will not be able to install software under the root directory (though they may be able to install some software under their home directories).

    – Keith Thompson
    Aug 6 '15 at 22:07











  • @viDim: I've updated my answer; the new material starts at "On further thought".

    – Keith Thompson
    Aug 6 '15 at 22:13











  • Would it be safe to give standard user sudo rights just for installing Java and Aptana and then just to revoke sudo rights, maybe also add him to the access rights of the folder with Aptana? Will it all work?

    – viDim
    Aug 6 '15 at 22:14











  • @viDim: I have no idea. How much to do you trust the "standard user(s)"? Why do you want to give them permission to install the software rather than installing it yourself?

    – Keith Thompson
    Aug 6 '15 at 22:17
















Thank you for your attention. Nobody else cares to answer. Basically, you suggest giving the standard user sudo rights. There probably is a way to achieve the aim i have in mind. Since Aptana is not available in the repository anyway, and the admin has a system-wide access, he can unpack Aptana in the home directory of the standard user and then add him to the access rights of the folder with Aptana. I now wonder whether i can do the same with Java - put it in the home directory of the standard user and install it just for him to use and keep the admin account clean.

– viDim
Aug 6 '15 at 21:56






Thank you for your attention. Nobody else cares to answer. Basically, you suggest giving the standard user sudo rights. There probably is a way to achieve the aim i have in mind. Since Aptana is not available in the repository anyway, and the admin has a system-wide access, he can unpack Aptana in the home directory of the standard user and then add him to the access rights of the folder with Aptana. I now wonder whether i can do the same with Java - put it in the home directory of the standard user and install it just for him to use and keep the admin account clean.

– viDim
Aug 6 '15 at 21:56














@viDim: Depends on what you mean by "the standard user". There needs to be a non-root account that can use sudo. You can login to that account and use sudo to install software. Depending on how the system is being used (multiple non-admin users? just you?) you may or may not want to set up additional accounts without sudo access. Users logging into those accounts will not be able to install software under the root directory (though they may be able to install some software under their home directories).

– Keith Thompson
Aug 6 '15 at 22:07





@viDim: Depends on what you mean by "the standard user". There needs to be a non-root account that can use sudo. You can login to that account and use sudo to install software. Depending on how the system is being used (multiple non-admin users? just you?) you may or may not want to set up additional accounts without sudo access. Users logging into those accounts will not be able to install software under the root directory (though they may be able to install some software under their home directories).

– Keith Thompson
Aug 6 '15 at 22:07













@viDim: I've updated my answer; the new material starts at "On further thought".

– Keith Thompson
Aug 6 '15 at 22:13





@viDim: I've updated my answer; the new material starts at "On further thought".

– Keith Thompson
Aug 6 '15 at 22:13













Would it be safe to give standard user sudo rights just for installing Java and Aptana and then just to revoke sudo rights, maybe also add him to the access rights of the folder with Aptana? Will it all work?

– viDim
Aug 6 '15 at 22:14





Would it be safe to give standard user sudo rights just for installing Java and Aptana and then just to revoke sudo rights, maybe also add him to the access rights of the folder with Aptana? Will it all work?

– viDim
Aug 6 '15 at 22:14













@viDim: I have no idea. How much to do you trust the "standard user(s)"? Why do you want to give them permission to install the software rather than installing it yourself?

– Keith Thompson
Aug 6 '15 at 22:17





@viDim: I have no idea. How much to do you trust the "standard user(s)"? Why do you want to give them permission to install the software rather than installing it yourself?

– Keith Thompson
Aug 6 '15 at 22:17

















draft saved

draft discarded
















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f657028%2fhow-do-i-install-a-software-as-admin-for-the-standard-user-to-use%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»