Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Finding users logged on time and space useage Post 302304554 by sandholm on Monday 6th of April 2009 07:31:27 PM
Old 04-06-2009
Take a look at the "last" command. It will report who is logged in, if they're currently logged on, and will report the total time they were logged in.
As for diskuse, if your users are restricted to keeping their files in their $HOME, it's easy to run a du /home/login_name to find their disk usage. If you're using disk quota's, its even easier. Otherwise you'll need to run "find" and look for all files owned by user and sum up their total usage.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Finding last time users logged in

I would like to find out the last time all users have logged in or out. I tried the last command, but it could not find the wtmp file in /var/adm (I searched in othe directories also). This is an AIX rs6000 4.2.1 system. We are moving our applications from this system to an AIX 5.2 system and I... (11 Replies)
Discussion started by: jyoung
11 Replies

2. Shell Programming and Scripting

how many users logged

in unix what is the syntax to find out how many users are currently logged in (4 Replies)
Discussion started by: trichyselva
4 Replies

3. Post Here to Contact Site Administrators and Moderators

logged out users

how to find out users who logged out within 5 minutes (1 Reply)
Discussion started by: roshni
1 Replies

4. Linux

Swap space useage 100%

How can i check that which process and path of particular file is using highst Swap space ? (2 Replies)
Discussion started by: bryanabhay
2 Replies

5. UNIX for Dummies Questions & Answers

How to do a login time and date list of users never logged on?

Hello, I'm trying to do a list of user that never connected to a couple of servers. I want to do a diff between the servers lists, and print out only the users that never has logged on each server. Here my first step : SERVER01: # finger `egrep -v -e "^\s*#" /etc/passwd | awk '{ print $1 }' |... (4 Replies)
Discussion started by: gogol_bordello
4 Replies

6. Shell Programming and Scripting

Users Not Logged in

I have searched the forums but have not mangaed to quite find what im looking for. I have used to /etc/passwd command to present me a list of all users the who command to present all users currently logged on, but what i want to know is what command can i use to display users that are registered... (12 Replies)
Discussion started by: warlock129
12 Replies

7. UNIX for Dummies Questions & Answers

How many users are logged in?

How do I find this out? I have a feeling its a simple command such as who, but I just don't know what it is. I've had a search on here but either I can't put it into the right search criteria or there isn't a topic on it. Thanks. EDIT: Delete this thread, as I posted it I noticed the... (0 Replies)
Discussion started by: chris_rabz
0 Replies

8. Red Hat

Current logged in users

I have 2 systems. (1) RHEL5 and (2) winXP pro from xpPRO putty i ssh into rhel5 : user root from xpPRO i ftp into rhel5 : user abc123 when i run #uptime it only shows 1 user when i do #ps -u abc123 : it shows vsftpd deamon PID is there a command that can be used to show all currently... (4 Replies)
Discussion started by: dplinux
4 Replies

9. Shell Programming and Scripting

Finding out users logged in between 10:00AM and 11:00AM

Hi All, I have a specific requirement wherein I want a list of users who have logged in between 10:00 AM and 11:30 AM. Thanks, vini (4 Replies)
Discussion started by: vini kumar
4 Replies

10. Homework & Coursework Questions

Sort current logged in users by log in time (supposedly to be very easy but I'm missing something)

1. The problem statement, all variables and given/known data: Show all users who are currently logged in, sorted from earliest to latest log in time. The log in time includes the month, day, and time. 2. Relevant commands, code, scripts, algorithms: finger, who, sort, pipe, head, tail, ... (8 Replies)
Discussion started by: vtmd
8 Replies
quotactl(2)							System Calls Manual						       quotactl(2)

NAME
quotactl - manipulate disk quotas SYNOPSIS
DESCRIPTION
manipulates disk quotas. cmd indicates a command to be applied to the user or group ID id. A command is composed of a primary command and a type that is used to interpret the id parameter. Types supported are USRQUOTA for users and GRPQUOTA for groups. To set the type of quota use the macro. Parameter special is a pointer to a null-terminated string containing the path name of the block special device for the file system being manipulated. The block special device must be mounted. The parameter addr is the address of an optional, command- specific, data structure which is copied in or out of the system. The interpretation of addr is explained with each command below: Turn on quotas for a file system. The parameter addr points to the path name of file containing the quotas for the file system. The quota file must exist; it is normally created using the command (see quotacheck(1M)). The id parameter is ignored. This call is restricted to users having appropriate privileges. Turn off quotas for a file system. The addr and id parameters are ignored. This call is restricted to the user with appropriate privileges. Get disk quota limits and current usage for user or group id. addr is a pointer to a structure (defined in Only users having appropriate privileges can get the quotas of a user other than himself. Get 64-bit disk quota limits and current usage for user or group id. addr is a pointer to a structure (defined in Only users having appropriate privileges can get the quotas of a user other than himself. VxFS 3.5 will only track usage for dqb64_curblocks up to to 2 TB. Set disk quota limits and current usage of files and blocks for user or group id. Note does not allow the current usage fields to be changed. addr is a pointer to a structure (defined in This call is restricted to users with appropriate privileges. Set 64-bit disk quota limits and current usage of files and blocks for user or group id. Note does not allow the current usage fields to be changed. addr is a pointer to a structure (defined in This call is restricted to users with the appropriate privileges. Set disk quota limits for user or group id. The parameter addr is a pointer to a structure (defined in This call is restricted to users with appropriate privileges. Set 64-bit disk quota limits for user or group id. The parameter addr is a pointer to a structure (defined in This call is restricted to users with the appro- priate privileges. Retrieve information about quotas supported by file system id. The parameter addr is a pointer to a flags word. The meaning of the various bit fields are defined in Update the on-disk copy of quota usages for a file system. If special is null, all file systems with active quotas are synced. The parameters addr and id are ignored. RETURN VALUE
Upon successful completion, returns 0; otherwise, it returns -1 and sets to indicate the error. ERRORS
fails when any of the following occurs: The quota file pointed to by addr exists but is either not a regular file or is not on the file system pointed to by special. attempted while another or is in progress. User's disk quota block limit has been reached for this file system. The addr or special parameter points to an invalid address. Reliable detection of this error is implementation-depen- dent. The parameters cmd and/or id are invalid. The parameter special contains a type of file system that does not support quotas. Currently, quotas are supported on HFS and VxFS file systems. The file specified by special or addr does not exist. The kernel has not been configured with the disk quota subsystem. The parameter special is not a block device. Type of quota not supported on the file system. 64-bit values will overflow 32-bit fields, either in the struct in the user level (for or in a 32-bit file system in the kernel (for and The call is privileged and the calling process does not have appropriate privileges. No disc quota is found for the indicated user or quotas have not been turned on for this file system. WARNINGS
The system call is incompatible with the 4.2/4.3 BSD implementation of Melbourne quotas which uses a different system call interface and on-disk data structure. Use and commands for 64-bit field values. AUTHOR
was developed by HP and Sun Microsystems, Inc. SEE ALSO
quota(1), edquota(1M), quotacheck(1M), quotaon(1M), rquotad(1M), mount(2), privileges(5), quota(5). quotactl(2)
All times are GMT -4. The time now is 11:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy