Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: How to lock terminal on login for user

  1. #1
    Join Date
    Mar 2010
    Location
    /var/local
    Beans
    401
    Distro
    Ubuntu Development Release

    How to lock terminal on login for user

    Hello, I recently set up a family computer for a friend, and now his son is "experimenting" with the terminal (randomly entering commands). since he could accidentally do something bad, I am supposed to prevent him from using terminals, but only as hi user. I tried vlock and away, but with vlock it says 'this terminal is not a virtual console', and away can't seem to lock all consoles. please help before he erases his own home directory lol!

  2. #2

    Re: How to lock terminal on login for user

    Make sure he has no admin privileges. That way sudo will not work.
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  3. #3
    Join Date
    Mar 2009
    Beans
    554
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to lock terminal on login for user

    and remove the terminal link in the menu
    Someday we'll hit the human carrying capacity. And the band will just play on. -Me

    I'm trying PHP, so my code can probably be labelled "bad and insecure"

  4. #4
    Join Date
    Jan 2008
    Beans
    438

    Re: How to lock terminal on login for user

    If the son has his own account (and no admin/sudo privileges), then the most he can possibly mess up is his own account. Let him use it if he wants to.

  5. #5
    Join Date
    Nov 2009
    Beans
    919
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to lock terminal on login for user

    Quote Originally Posted by Agent ME View Post
    If the son has his own account (and no admin/sudo privileges), then the most he can possibly mess up is his own account. Let him use it if he wants to.
    This is good advice. Take away the capacity to do system damage and let him try things. It's the best way to learn, and it's a good skill to have.

  6. #6
    Join Date
    Mar 2010
    Location
    in my room
    Beans
    172
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Thumbs down Re: How to lock terminal on login for user

    i say let him mess with it and when he messes up the system have him reinstall and put it back to the way it was lol

    ubuntu is that hard to fix its like not even 30 minutes for the actual working os

    so yeah let him mess with it we all started some where right
    01101001 0010000001101100011011110111011001100101 00100000011101010110001001110101011011100111010001 110101

    i 01101100011011110111011001100101 ubuntu

  7. #7
    Join Date
    Mar 2010
    Location
    /var/local
    Beans
    401
    Distro
    Ubuntu Development Release

    Re: How to lock terminal on login for user

    Lol thanks guys! But I have my "orders" so I still have to lock the terminal. His parents don't want him to lose a month of schoolwork if he messes up his account, and he doesn't need the menu shortcut, since he knows the command, and can just make a launcher (he would too). Personally, I like that advise, but I got a very simple answer when I asked my friend: "NO". He did say if I could make the terminal just look like it works, but actually not affect the computer, he would accept that. is there a way to just set it up so it shows him the normal prompt but either says 'bash: command not found' or simulates all the normal stuff, but uses only commands put in a certain directory, and then redirects the commands to a safe folder/file

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

    Re: How to lock terminal on login for user

    I would suggest :

    1. Teach him how to back up his files. Learning the utility of backups is one of the first lessons all computer users should learn. Data loss is not a matter of if, but when ...

    2. Use a separate /data partition and teach his parents how to back up their data. Learning the utility of backups is one of the first lessons all computer users should learn. Data loss is not a matter of if, but when ...

    3. Give him a playground - Use either the guest account or an alternate test account or better his own partition to manage and learn on.

    4. Use apparmor to confine him or her.

    At the end of the day, if the user has physical access there is not a whole lot you can do other then teach 'em right.
    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

  9. #9
    Join Date
    Nov 2009
    Beans
    919
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to lock terminal on login for user

    To a certain sort of curious user, restriction is a form of enticement. If they are not talented enough to overcome restrictions at the moment, they certainly will become so before long. The best thing you can do in those cases is to limit the potential damage and try to channel the curiosity constructively.

  10. #10
    Join Date
    Jul 2009
    Location
    Dayton Ohio USA
    Beans
    1,069
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to lock terminal on login for user

    The beauty of having a system that you are in full control of (linux) is that it's repairable without cost. Your son is learning and that is a beautiful thing as well so let the learning commence. I didn't learn a thing about computers using them I learned by changing!
    It's okay, I'm a limo driver

Page 1 of 2 12 LastLast

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
  •