08-24-2009
But I think in this way, the commands entered by the user will not be stored in the .bash_history since the user will not have any permission to write into the file.
Correct me if I'm wrong?!
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Question for all sysadmins.
How do you keep track of what commands each user uses on his account. I thought an easy way is to monitor .bash_history, however those files can be "edited" by the user.
Is there a permission combination that will allow the shell to record to it but yet they can't edit... (12 Replies)
Discussion started by: jason6792
12 Replies
2. UNIX for Dummies Questions & Answers
we need the help to change .bash_histroy file in root ,(i.e) we want to save the histroy for .temp.txt for permenently. how to do??
Help us (1 Reply)
Discussion started by: thakshina
1 Replies
3. UNIX for Advanced & Expert Users
During the course of the session before I logout I see some of the commands listed from my previous session but not from my current session and after I logout and log back in I see the commands which I ran before logging out.
Does the .bash_history stay in the buffer or someplace else then?
... (2 Replies)
Discussion started by: jacki
2 Replies
4. UNIX for Advanced & Expert Users
Hi Experts,
I know my question would be strange but i need to understand how the .bash_history file is logging user actions (the mechanism) and if possible modify it to include also the date/time of every action done by the user.
Sample file:
# more .bash_history
ssh <IP address> -l axadmin... (3 Replies)
Discussion started by: Dendany83
3 Replies
5. UNIX for Dummies Questions & Answers
Hi - user commands are written in . bash_history of that user when he logs out. my bash_history file shows. not sure what that number means
#1329618972
ls -la
#1329618978
ls
#1329618980
ls -la
my bash_profile looks like this
PATH=$PATH:$HOME/bin
export PATH
export... (3 Replies)
Discussion started by: oraclermanpt
3 Replies
6. UNIX for Advanced & Expert Users
rm -rf .bash_history some one ran rm -rf .bash_history on my Linux server(SUSE),I can see this command being run in current history, but I want the OLD history as well,can I recover the old history back. (9 Replies)
Discussion started by: Ankit Bansal
9 Replies
7. Shell Programming and Scripting
Hi would like to ask if there is anyway to display .bash_history with timestamp using shell script?
i know that you should use history command with HISTTIMEFORMAT="%d/%m/%y %T " to display it in terminal but it does not work when i use it on shell script. It seem that you can't run history... (1 Reply)
Discussion started by: pikamon
1 Replies
8. UNIX for Beginners Questions & Answers
I am using the bash shell.
When I view my recent command history using the "history" command from the prompt, it only shows me the commands starting at #928.
The commands I need are earlier than that, but I can't figure out how to make the other 927 display.
They are in my .bash_history... (1 Reply)
Discussion started by: Twinklefingers
1 Replies
quotaon(8) System Manager's Manual quotaon(8)
NAME
quotaon, quotaoff - turns quota enforcement on or off
SYNOPSIS
/usr/sbin/quotaon [-guv] file_spec ...
/usr/sbin/quotaon -a [-guv]
/usr/sbin/quotaoff [-guv] file_spec ...
/usr/sbin/quotaoff -a [-guv]
PARAMETERS
Specifies one or more file systems. Specify any file system by entering its full path name or its mount point. The full path name is the
name entered in the file-spec field of the file system's entry in the /etc/fstab file. The mount point is the name entered in the
mnt_point field of the file system's entry in the /etc/fstab file.
For UFS file systems, you can alternatively enter the name of a block device special file. For example: /dev/disk/dsk3c.
For AdvFS filesets, you can alternatively enter the name of a file domain, a pound sign (#), and the name of the fileset. For exam-
ple: root_domain#root.
FLAGS
Turns on (with quotaon) or turns off (with quotaoff) quotas for all file systems identified in the /etc/fstab file as read/write with quo-
tas. Turns on or off group quotas only. Turns on or off user quotas only. Prints a message for each file system whose quotas are turned
on or off.
DESCRIPTION
The quotaon and quotaoff commands enable or disable user and group quotas that have been established using the edquota command. To turn
the quotas on or off, the file systems specified must have the userquota and groupquota entries in the /etc/fstab file and be mounted at
the time.
quotaon and quotaoff must be run by a user with superuser authority.
These commands expect each file system to have quota files named quota.user and quota.group in the root directory of the file system.
(These default file locations may be overridden in the /etc/fstab file.)
By default, both user and group quotas are affected by the quotaon and quotaoff commands. Use the -g flag to specify only group quotas or
the -u flag to specify only user quotas.
NOTES
The term file system represents either a UFS file system or an AdvFS fileset.
The quotaon and quotaoff commands are used to manage user and group quotas: they are not used to manage AdvFS fileset quotas. Use the
chfsets command to set or clear fileset quotas.
AdvFS always maintains user and group file and block usage in the quota files (quota.user and quota.group). User and group quota limit
information displays with the showfsets command even if quota enforcement is turned off.
When a file system is unmounted, user and group quotas are disabled. After a file system has been remounted, use the quotaon command to
enable user and group quotas on the file system.
RESTRICTIONS
You must be the root user to run the quotaon and quotaoff commands.
FILES
Specifies the command path Specifies the command path Contains user quotas for filesets Contains group quotas for filesets Contains file
system names and locations
RELATED INFORMATION
Commands: chfsets(8), showfsets(8), edquota(8), fsck(8), quota(1), quotacheck(8), repquota(8).
Functions: quotactl(2).
Files: fstab(4). delim off
quotaon(8)