Results 1 to 5 of 5

Thread: Let non-root users install apps

  1. #1
    Join Date
    Jan 2009
    Location
    Flanders
    Beans
    Hidden!

    Question Let non-root users install apps

    Hi,

    I'm going to set up an Ubuntu computer for my family. They asked for it, I didn't push them. But I know that they don't like passwords.

    So my plan is to make an admin account which is in the sudoers group and then make induvidual accounts for the users. But I also want them to be able to install apps.

    So I wonder if it is possible to set the computer so that they can use the software center. What is the best method to do this? The apps mustn't be installed system-wide.

  2. #2
    Join Date
    Mar 2011
    Beans
    370

    Re: Let non-root users install apps

    edited-reread your post
    The apps mustn't be installed system-wide.
    otherwise, you could add to sudoers,
    Code:
    username ALL=(ALL) NOPASSWD: /usr/bin/software-center
    and add gksu to the software center entry in the menu

    -good luck
    Last edited by ~Plue; April 7th, 2011 at 11:13 AM.

  3. #3
    Join Date
    Oct 2009
    Location
    New Hamsha
    Beans
    1,275
    Distro
    Kubuntu 13.04 Raring Ringtail

    Re: Let non-root users install apps

    It's not really possible to have apps -not- installed system-wide. There are a few reasons for this.

    • Many apps need to access system files.
    • Problems would be caused if two users decided to install the same program.

    This could possibly be bypassed if you use source code to install programs, depending on the program.
    AMD A4-3400 w/ Radeon HD 6410D, 8 GB Corsair Vengeance DDR3 1333Mhz, Kubuntu 14.04, SliTaz 4.0, Windows 8.1, Ubuntu 14.04 VM
    " ... Love your neighbor as you love yourself."

  4. #4
    Join Date
    Jan 2009
    Location
    Flanders
    Beans
    Hidden!

    Re: Let non-root users install apps

    Quote Originally Posted by ~Plue View Post
    edited-reread your post
    otherwise, you could add to sudoers,
    Code:
    username ALL=(ALL) NOPASSWD: /usr/bin/software-center
    and add gksu to the software center entry in the menu

    -good luck
    I added

    Code:
    sander ALL=(ALL) NOPASSWD: /usr/bin/mintinstall
    to the /etc/sudoers file

    (it's my own user to test it)

    but wether I use the "gksu /usr/bin/mintinstall" or just "mintinstall", I always have to give my password. In the first case I have to give it when I launch the program, in the second case when I click "install".

  5. #5
    Join Date
    Mar 2011
    Beans
    370

    Re: Let non-root users install apps

    Quote Originally Posted by sanderd17 View Post
    but wether I use the "gksu /usr/bin/mintinstall" ....... I have to give it when I launch the program,
    well.. i couldn't come up with any reasons why sudo (and in turn, gksu) would require a password when the NOPASSWD tag is used..
    could you recheck it?

    also, you shouldn't edit the /etc/sudoers file directly since there might be syntax errors that could prevent you from using sudo at all.
    visudo would lock the file > save changes to a temporary file > check it and then make changes

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •