Results 1 to 10 of 10

Thread: How can I disable the Terminal for certain users?

  1. #1
    Join Date
    Aug 2011
    Beans
    3

    Cool How can I disable the Terminal for certain users?

    I want only certain users to be able to use the Terminal if possible.

  2. #2
    Join Date
    Jun 2008
    Location
    Kerala, India.
    Beans
    284
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I disable the Terminal for certain users?

    Terminal is the command line interface of Ubuntu, similar to 'Command prompt' in Windows, but it is much more important in Linux.

    Disabling the Terminal? You are asking to disable the command interpreter which would make Ubuntu or any other operating system useless!

    You may as well not create a user account for those users who need not run any commands on Ubuntu

    ***If you intend to restrict users as to which command they can run as administrator or root, you need to edit the sudoers file.
    My PC: AMD Phenom II X4 960T 3GHz, 8GB RAM, 500GB WD SATA HDD, 160 GB WD PATA HDD (slave), AMD 880G chipset, AMD Radeon 6450 graphics + 1GB DDR3 video memory

  3. #3
    Join Date
    Jul 2011
    Location
    Germany
    Beans
    990
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I disable the Terminal for certain users?

    Is there a thread on how to restrict users? I want to create an user account for my little brother - i used the chmod command alot so he cant mess with the files, as for other stuff i dont know how to restrict them. Could you give more info on how to restrict users?

  4. #4
    Join Date
    Aug 2011
    Beans
    3

    Re: How can I disable the Terminal for certain users?

    Most computer users do not have any interest in using a Terminal. They use the computer mainly for browsing the Internet and word processing. There has to be a way to simply disable the the gnome-terminal for non-administrator users.

  5. #5
    Join Date
    Aug 2011
    Beans
    3

    Re: How can I disable the Terminal for certain users?

    Basher101, that's exactly what I was thinking of. This seems like a really simple thing to do. Anybody have anymore suggestions?

  6. #6
    Join Date
    Jul 2011
    Location
    Germany
    Beans
    990
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can I disable the Terminal for certain users?

    Glad i could help^^ there are also very detailed threads on how to use the chmod command, just use the search

  7. #7
    Join Date
    Jan 2009
    Location
    Middle of USA
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Lightbulb Re: How can I disable the Terminal for certain users?

    I'm not 100% sure how to go about defeating a determined and knowledgeable user, but if you are just trying to block a casual user who might accidently damage the system from the command line, I suggest the following:

    Create an account for this person @ System > Administration > Users & Groups

    Set the user type for little brother to "desktop account"

    This does not keep little brother from opening a terminal session, but he cannot install or remove software packages, cannot invoke any command from terminal that requires the use of "sudo", and cannot make changes to the system properties from the command line or GUI.
    (Unless a past experience leads you to believe otherwise, I ask that you consider not taking away the terminal completely. It is generally a very good thing for ALL Unix/Linux users to have knowledge of the command line interface. Even if that knowledge is gained by just messing around...)

    If you feel you must take the terminal away, then:

    While in little brothers account, if he isn't too snoopy you can go to System > Preferences > Main Menu
    click on Accessories and un-check the box next to terminal so that it cannot even be seen from the menu.

    There are other options available when you set up this account, but is this enough?
    Last edited by relay_man; August 6th, 2011 at 10:58 PM. Reason: spelling
    Let's troubleshoot!

    Find your answer? Use Thread Tools to mark your thread solved>

  8. #8
    Join Date
    Mar 2010
    Location
    Scotland
    Beans
    258
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How can I disable the Terminal for certain users?

    Why do you want to do this anyway?
    [538] [792] Just because you have a secure OS doesn't mean you are invincible. Be careful out there! Don't trust strange sites and such. Also, don't block JavaScript, It is not some insecure monster who will attack you at every turn!

  9. #9
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How can I disable the Terminal for certain users?

    Quote Originally Posted by jakecersi View Post
    I want only certain users to be able to use the Terminal if possible.
    Find any terminals you have installed (gnome-terminal, xterm, etc)

    Code:
    sudo addgroup terminal
    sudo chrgp terminal /bin/your_terminal
    sudo o-x /bin/your_terminal
    xterm is in /usr/bin/xterm

    Now add any users you want to access the terminal to the terminal group.

    Quote Originally Posted by SavageWolf View Post
    Why do you want to do this anyway?
    This is a better question, why bother ? Unless they have access to sudo they can not damage the system.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  10. #10
    Join Date
    Nov 2009
    Beans
    67

    Re: How can I disable the Terminal for certain users?

    That breaks the utmp feature for xterm, unless the Ubuntu's
    updated to use utempter.

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
  •