10-09-2006
To restrict disk usage u have to implement quota for that user.
#chfs "quota = userquota" /home (or ur desired fs)
#quotaon -u /home --> to enable userquota
#edquota <username> ---> Here u can specify hard limit and soft limit.
10 More Discussions You Might Find Interesting
1. Solaris
Hi all,
I am using Sun OS 5.10. I am new to Unix.
Is there some way to restrict a specific user to certain command say "/usr/bin/more" ??
for example: I want that user1 can execute more command & user2 can't.
Can we somehow edit .profile file in the home directory of user to achieve... (1 Reply)
Discussion started by: vikas027
1 Replies
2. AIX
Hello
I have a question in Aix 5.3 can I create a user, that only can see a specify path.
I mean the user log in the default path its /home/newuser he type cd the path that need to check /example/directory_check but if he wants to go to / or any other path. we can not do this.
I only... (1 Reply)
Discussion started by: lo-lp-kl
1 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone !
I got "viewer" and "root" user on a *nix computer. When i log in using "viewer" I only can use "df" command. When I try another command like "ls" it say :
-bash: ls: command not found
I checked permission of "/bin/ls" file, it has excute permission for everyone. Inside home... (4 Replies)
Discussion started by: camus
4 Replies
4. Red Hat
Hi,
I am trying to install Oracle 11g R2 on Oracle Enterprise Linux (5.4 version, which is basically some Redhat version).
I have created oracle user, when I tried installing, the installer erred out saying there is no enough space. I logged out and when I logged in back, user oracle was... (2 Replies)
Discussion started by: guruparan18
2 Replies
5. Red Hat
Hi
I have a Fedora10 server and i need a particular user to view files only in a particular folder.
All other files in other folders having "read" permission for all shouldn't be accessible to this user.
Please let me know if ther's a way.
Thanks,
HG (5 Replies)
Discussion started by: Hari_Ganesh
5 Replies
6. UNIX for Dummies Questions & Answers
Can some one help me with this issue . I require to restrict a particular user to a particular folder alone when they log in. I dont want this particular user to come out of this folder.
Kindly help (7 Replies)
Discussion started by: kirbhas72
7 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
How can we restrict a particular user access to a particular shell in solaris 10.
Thanks in Advance. (5 Replies)
Discussion started by: rama krishna
5 Replies
8. Red Hat
Hi there
I have an application user on my system that wants accesses to these file systems as such:
rwx:
/SAPO
/SAPS12
/R3_888
/R3_888B
/R3_888F
/R3_888R
r:
/usr/sap
these are the existing FS permissions:ownerships:
# ls -ld /SAPO (9 Replies)
Discussion started by: hedkandi
9 Replies
9. AIX
hi,
I want to restrict some user access to only 1 directory (including all sub-directories/files in it).
can you please explain me, how can we do this?
example;
Filesystem GB blocks Used Free %Used Mounted on
/dev/hd4 2.61 1.02 1.59 40% /
/dev/hd2 ... (7 Replies)
Discussion started by: aaron8667
7 Replies
10. HP-UX
Dear Concern,
We want to restrict ssh for particular user "oracle". Our HP UX version is as below. Please advise.
# uname -a
HP-UX tabsdb02 B.11.31 U ia64 2963363594 unlimited-user license (2 Replies)
Discussion started by: makauser
2 Replies
LEARN ABOUT FREEBSD
quota.user
QUOTA.USER(5) BSD File Formats Manual QUOTA.USER(5)
NAME
quota.user, quota.group -- per file system quota database
DESCRIPTION
Each file system with active quotas should contain a quota.user and quota.group file in the file system root. These files are created by
quotacheck(8), and should be edited with edquota(8). It is possible to specify a different location and file name with the ``userquota'' and
``groupquota'' options in the fstab(5) file.
The data files contain the following information:
o Current block usage
o Current number of files
o Soft block limit
o Soft file limit
o Hard block limit
o Hard file limit
o Block grace time remaining if over the soft limit
o File grace time remaining if over the soft limit
See edquota(8) for an explanation on the various limits and grace periods.
During normal quota operations the quotactl(2) interface is used to query or set quota information and the kernel will maintain the data
files as needed. If quotas are disabled on a file system, but marked as having quotas enabled in fstab(5), then the quota data files will be
used directly.
The data files are stored as an array of ``struct dqblk'' structures, as defined in <ufs/ufs/quota.h>, and indexed by UID or GID. The data
files will be written as a sparse file if possible. Data is only maintained for ids that have either non-zero usage or non-zero quota lim-
its. If an attempt is made to access data for an id that would exist past the end of the current data file, a quota structure with all val-
ues set to zero will be created, and the data file extended as needed. The quotacheck(8) utility will truncate the data files to the minimum
size needed to store the highest id with either non-zero file usage or non-zero quota limits.
The data record for id 0 has special meaning. If the ``dqb_btime'' or ``dbq_itime'' fields are non-zero, they are used to indicate the grace
period on that file system for users who have exceeded their soft limit. These times can be set by edquota(8) with the -t flag. If no
explicit grace period has been set with edquota(8), then the default value of 7 days will be used. The default values are defined by
MAX_DQ_TIME and MAX_IQ_TIME in <ufs/ufs/quota.h>.
SEE ALSO
quota(1), quotactl(2), fstab(5), edquota(8), quotacheck(8), quotaoff(8), quotaon(8), repquota(8)
BSD
October 30, 2007 BSD