Solved

Time Quotas - How to set ?

Posted on 2004-08-01
4
227 Views
Last Modified: 2013-12-15
Greetings,

I have set a Linux server to allow windows users on our network to log in and access the internet.

I am using RH9 and samba 3.0 set to work as PDC so users are logging into the domain.

To avoid that some users will hog the computers all the time keeping the others from using them, I want to set time quotas.

Say like some users will have 10 hours per week and some will have like 1 hour per day.

Is this doable in Linux ?

Do I need any aditional software ?
0
Comment
Question by:wildcat2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 63 total points
ID: 11697080
I haven't tested it, but there is plugin for pam: time

If you are using unix accounts for your authentication you could add the time plugin to the system_auth configuration of pam.

This would probably do what you are looking for
0
 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 62 total points
ID: 11757312
The shadow password suite restricts the max amount of time that someone can be logged in at any time (logoutd):

http://www.die.net/doc/linux/LFS/appendixa/shadow.html

This is similar to the free dial up ISP accounts that automatically log you out after you have been connected for an hour, and then you are forced to re-dialin. You would need to tweak this a little in order to get the flexibility that you require.

pam_time  as far as I am aware enables you to restrict logins to certain times of the day based on the location that they are logging in for, so again does not exactly fit your requirements either:( There is a fairly comprehensive list of pam modules available here that it may be possible to use in some fashion for what you require:

http://www.kernel.org/pub/linux/libs/pam/modules.html

My general impression of what you have is that you will need to alter the logging proces/authentication process for samba to detail login times, and then the next problem is how do you decide when they are actually logged out? Overall, this approach to trying to restrict users doesn't appear to be particularly workable, hence there not being a readily available solution for it.

Perhaps a better to prevent any 1 user 'hogging' the processor is to monitor the output of 'top' and if CPU usage gets near to a threshold, then start to throttle the processes of the heaviest users using 'nice'?


0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question