Sponsored Content
Operating Systems Solaris Create user with Restricted Space usage Post 302407315 by jlliagre on Thursday 25th of March 2010 05:26:11 AM
Old 03-25-2010
and if you are using ZFS:

Code:
zfs set userquota@username=size pool/filesystem

 

10 More Discussions You Might Find Interesting

1. Cybersecurity

Restricted user

A few of the other employees here need to learn "vi" in order to use crontab to schedule / unschedule jobs on one of our production servers. I tried to set up a login on one of my Linux boxes for them to use "vimtutor", but scrapped it and decided to try for something more secure, since there are... (1 Reply)
Discussion started by: LivinFree
1 Replies

2. Shell Programming and Scripting

To provide restricted access to certain user's on linux box

Hi, I need to provide execute access to certain users and not to all users For ex: if ther is a file /home/august/aug.sh. and there are user's like jan,feb,mar,april,May and jan is the owner of that box. I need to provide execute access to feb and mar only. I also know the root pwd for... (3 Replies)
Discussion started by: Ashok_oct22
3 Replies

3. AIX

A user with restricted ftp access to a folder

Hi, We have Oracle Database on AIX 5.3 server.We want to give ftp access to a user to a specific folder.He should be able to put and get files from that specific folder only.Moreover he should not be able to cd to any other filesystems also along with root directory. Please note that as per... (1 Reply)
Discussion started by: dwiravi
1 Replies

4. UNIX for Dummies Questions & Answers

Need to create a restricted user(Centos)

Hi, I am a newbie to Linux and I want to create a user which can only execute network config commands like ifconfig and ping(to check the config). The following is what I did but failed. 1) Created a group called 'netconfig'. 2) added a user named 'user'. 3) added user to the 'netconfig'... (4 Replies)
Discussion started by: ankushpandit
4 Replies

5. UNIX for Dummies Questions & Answers

User should be restricted moving a folder

Hi All , Some of the users should be restricted using the MV commands on some of the standard folders. We had an issue the other day like from the standard folder structure which was set up one of the user has moved a folder to a different location and the jobs failed as the folder was not... (6 Replies)
Discussion started by: perlamohan
6 Replies

6. Solaris

create a restricted user

I have solaris 10 os 64 bit. I need to create a restricted user which has the following command to run ls df and du list crontab of root and edit crontab of root also please help (2 Replies)
Discussion started by: reyazan
2 Replies

7. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

8. AIX

Restricted user

Hello everyone I need to create a restricted user or a special user. Here is what I need. I have this path next to profiles I have server1, server2, server3....... The user that I have to create I need that he can move between server1. server2, server3 because in every one have logs... (1 Reply)
Discussion started by: lo-lp-kl
1 Replies

9. Debian

Create restricted user for programs

want to create a user account for each of the key programs installed on my debian server. For example, for the following programs: Tomcat Nginx Supervisor PostgreSQL This seems to be recommended based on my reading online. However, I want to restrict these user accounts as much as possible,... (3 Replies)
Discussion started by: Spadez
3 Replies

10. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies
QUOTACTL(2)						      BSD System Calls Manual						       QUOTACTL(2)

NAME
quotactl -- manipulate filesystem quotas SYNOPSIS
#include <sys/types.h> /* types needed by quota.h */ #include <sys/quota.h> /* for disk quotas */ int quotactl(const char *path, int cmd, int id, char *addr); DESCRIPTION
The quotactl() call enables, disables and manipulates filesystem quotas. A quota control command given by cmd operates on the given filename path for the given user id. The address of an optional command specific data structure, addr, may be given; its interpretation is discussed below with each command. A command is composed of a primary command (see below) and a command type used to interpret the id. Types are supported for interpretation of user identifiers and group identifiers. The specific commands are: Q_QUOTAON Enable disk quotas for the filesystem specified by path. The command type specifies the type of the quotas being enabled. The addr argument specifies a file from which to take the quotas. The quota file must exist; it is normally created with the quotacheck(8) program. The id argument is unused. Only the super-user may turn quotas on. Q_QUOTAOFF Disable disk quotas for the filesystem specified by path. The command type specifies the type of the quotas being disabled. The addr and id arguments are unused. Only the super-user may turn quotas off. Q_GETQUOTA Get disk quota limits and current usage for the user or group (as determined by the command type) with identifier id. Addr is a pointer to a struct dqblk structure. Q_SETQUOTA Set disk quota limits for the user or group (as determined by the command type) with identifier id. Addr is a pointer to a struct dqblk structure. The usage fields of the dqblk structure are ignored. This call is restricted to the super-user. Q_SETUSE Set disk usage limits for the user or group (as determined by the command type) with identifier id. Addr is a pointer to a struct dqblk structure. Only the usage fields are used. This call is restricted to the super-user. Q_SYNC Update the on-disk copy of quota usages. The command type specifies which type of quotas are to be updated. The id and addr parameters are ignored. Q_QUOTASTAT Get the enable status for the filesystem specified by path. The command type specifies the type of the quotas whose status is being queried. Addr is a pointer to an integer. Upon return, this integer will hold a zero value if quotas for the given type are not enabled and a non-zero value if quotas for the given type are enabled. The id parameter is ignored. RETURN VALUES
A successful call returns 0, otherwise the value -1 is returned and the global variable errno indicates the reason for the failure. ERRORS
A quotactl() call will fail if: [ENOTSUP] The kernel has not been compiled with the QUOTA option. [EUSERS] The quota table cannot be expanded. [EINVAL] Cmd or the command type is invalid. [EACCES] In Q_QUOTAON, the quota file is not a plain file. [EACCES] Search permission is denied for a component of a path prefix. [ENOTDIR] A component of a path prefix was not a directory. [ENAMETOOLONG] A component of a pathname exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters. [ENOENT] A filename does not exist. [ELOOP] Too many symbolic links were encountered in translating a pathname. [EROFS] In Q_QUOTAON, the quota file resides on a read-only filesystem. [EIO] An I/O error occurred while reading from or writing to a file containing quotas. [EFAULT] An invalid addr was supplied; the associated structure could not be copied in or out of the kernel. [EFAULT] Path points outside the process's allocated address space. [EPERM] The call was privileged and the caller was not the super-user. SEE ALSO
quota(1), fstab(5), edquota(8), quotacheck(8), quotaon(8), repquota(8) BUGS
There should be some way to integrate this call with the resource limit interface provided by setrlimit(2) and getrlimit(2). HISTORY
The quotactl() function call appeared in 4.3BSD-Reno. BSD
June 4, 1993 BSD
All times are GMT -4. The time now is 11:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy