Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-16-2004, 08:47 PM   #1
Registered: Apr 2004
Distribution: mandrake
Posts: 116

Rep: Reputation: 15
Post limit usage?

Hi, I'm very new using linux
and want to limit program usage.
I don't want my bro and his friend
to play bzflag all day and night long.

I've searched online, and found something about disk quotas,
but i don't want to limit their disk usage, just internet time or game time.

any ideas how? please be very specific, i don't know too much about linux yet.

Old 04-16-2004, 10:03 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Hi, and welcome to LQ.

Have a look at
man logoutd
man porttime
for time-restrictions ...

If you don't want them to use one
program all day you'd have to change the
permissions on that file from a cron-job.

Old 04-17-2004, 07:32 PM   #3
Registered: Apr 2004
Distribution: mandrake
Posts: 116

Original Poster
Rep: Reputation: 15

i tried typing man porttime and man logoutd in the konsole, but my manual doesn't have entries for those... I can guess that logoutd may automatically log out a user on a set time,, but how to do this? is there a gui or can someone show me step by step the command line entries to accomplish this?

i do have webmin, and was looking at the cron-jobs thing there. It looks as if a cron job lets you start or execute a command at a specific time. however i don't see where to stop or halt a program after lets say 30 mins of use per day.

if cron job is the way to go, can someone tell me step by step how to create a new cron job to shut off a program after a said time. (letting a user turn on a program and use it within a set period of time is acceptable. for example, if the user wanted to play bz flag from 6-7pm he could launch it, but then after 7 it turns off. I don't want bz flag to automatically start at 6 though)


Old 04-17-2004, 09:18 PM   #4
Registered: Feb 2004
Location: New York City
Distribution: Debian
Posts: 97

Rep: Reputation: 15
you have to install a program or utility to get its manpage (or you can probably find it on the internet with google). I would also recommend looking into kernel patches such as grsecurity which has an amazing ACL (access control list) which can limit processes used, limit access to certain processes, limit access time etc. The sky is the limit.
Old 04-18-2004, 07:05 AM   #5
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
This task is not a simple point and click task to accomplish so you will probably have to read quite a few lines ofman pages, online how-to docs and be prepared for some frustration before you get it working.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
limit cpu % usage for a process student04 Linux - General 15 03-18-2014 08:22 PM
limit cpu usage by mysql eduac Linux - Software 3 06-08-2004 06:08 PM
How can I limit the CPU usage of a PID? ideasman Linux - Software 1 04-01-2004 08:15 AM
Apache 2 -- limit bandwidth usage edman007 Linux - Software 0 01-01-2004 10:58 PM
How to Limit Runtime Resource Usage Skywings Programming 0 11-22-2001 08:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration