Sponsored Content
Operating Systems Solaris entry in /etc/group too long - problem using sudo with %group Post 59483 by poli on Tuesday 21st of December 2004 08:50:12 AM
Old 12-21-2004
hi perderabo,
yeah, I just got the statement from SUN, that it's actually ok to edit /etc/group and add more users to a line. the system limit is 16 kByte which should be enough :-)
thanks again!
poli
 

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Edit/update an /etc/group database entry (c/c++)

Hello I'm writing a program for managing accounts and groups in a linux system. My problem is how to update the members of a group in the /etc/group file,if i have to add/remove those members. total 3 variables for adding some new members to the group : char **oldmembers=grp->gr_mem; ... (1 Reply)
Discussion started by: mekos
1 Replies

2. Shell Programming and Scripting

Merge group numbers and add a column containing group names

Hi All I do have a file like this with 6 columns. Groups of data merge together and the group number is indicated above each group. 1 1 12 26 289 3.2e-027 GCGTATGGCGGC 2 12 26 215 6.7e+006 TTCCACCTTTTG 3 9 26 175 ... (1 Reply)
Discussion started by: Lucky Ali
1 Replies

3. Shell Programming and Scripting

Sort the file contents in each group....print the group title as well

I've this file and need to sort the data in each group File would look like this ... cat file1.txt Reason : ABC 12345-0023 32123-5400 32442-5333 Reason : DEF 42523-3453 23345-3311 Reason : HIJ 454553-0001 I would like to sort each group on the last 4 fileds and print them... (11 Replies)
Discussion started by: prash184u
11 Replies

4. Solaris

Can't sudo Using Group Permission

All: I'm having a problem with sudo on Solaris 5.10 that is giving me fits (and BTW, I'm a Linux admin by trade...). The issue is that I have a number of users (myself included) that cannot sudo to root to complete user admin tasks. Assuming the user is jdoe, and the group with the elevated... (3 Replies)
Discussion started by: rjlohman
3 Replies

5. UNIX for Advanced & Expert Users

script regarding listing long group names

Hello, When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated. Can someone help with the script which would display the truncated group name? I appreciate if someone could help in this regard. (1 Reply)
Discussion started by: mike12
1 Replies

6. Shell Programming and Scripting

need a one liner to grep a group info from /etc/group and use that result to search passwd file

/etc/group tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453 bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root /etc/passwd mk789:x:234:1::/export/home/dummy:/bin/sh po312:x:234:1::/export/home/dummy:/bin/sh ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies

7. Solaris

Sudo Privileges & Sudoers Group

I'm looking for some suggestions to accomplish what a specific user needs, without adding them to the "sudoers" group. I have X user, that is requesting to be able to change file permissions on items owned by others and search directories where X user doesn't have access. I'm open to any... (2 Replies)
Discussion started by: Nvizn
2 Replies

8. SuSE

How to add a new user to sudo group in openSuse 12.3?

Hi All, I have created a openSUSE 12.3 VM in my VirtualBox. I have created one user and added that user to my group. Is there any command by which I can add that user to sudoers user group like we do in ubuntu? #sudo adduser user1 sudo I checked the /etc/groups file, but there is no sudo... (1 Reply)
Discussion started by: sanzee007
1 Replies

9. Programming

Sql ORA-00937: not a single-group group function

I'm trying to return only one row with the highest value for PCT_MAX_USED. Any suggestions? When I add this code, I get the ORA-00937 error. trunc(max(decode( kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100))) pct_max_used This is the original and returns all rows. select (select... (3 Replies)
Discussion started by: progkcp
3 Replies
EDQUOTA(8)						    BSD System Manager's Manual 						EDQUOTA(8)

NAME
edquota -- edit user quotas SYNOPSIS
edquota [-uh] [-f fspath] [-p proto-username] username ... edquota [-u] -e fspath[:bslim[:bhlim[:islim[:ihlim]]]] [-e ...] username ... edquota -g [-h] [-f fspath] [-p proto-groupname] groupname ... edquota -g -e fspath[:bslim[:bhlim[:islim[:ihlim]]]] [-e ...] groupname ... edquota -t [-u] [-f fspath] edquota -t -g [-f fspath] DESCRIPTION
The edquota utility is a quota editor. By default, or if the -u flag is specified, one or more users may be specified on the command line. For each user a temporary file is created with an ASCII representation of the current disk quotas for that user. The list of file systems with user quotas is determined from /etc/fstab. An editor is invoked on the ASCII file. The editor invoked is vi(1) unless the environment variable EDITOR specifies otherwise. The quotas may then be modified, new quotas added, etc. Block quotas can be specified in bytes (B), kilobytes (K), megabytes (M), terabytes (T), petabytes (P), or exabytes (E). If no units are specified, kilobytes are assumed. Inode quotas can be specified in kiloinodes (K), megainodes (M), terainodes (T), petainodes (P), or exainodes (E). If no units are specified, the number of inodes specified are used. If the -h flag is specified, the editor will always display the block usage and limits in a more human readable format rather than displaying them in the historic kilobyte format. Setting a quota to zero indicates that no quota should be imposed. Setting a hard limit to one indi- cates that no allocations should be permitted. Setting a soft limit to one with a hard limit of zero indicates that allocations should be permitted only on a temporary basis (see -t below). The current usage information in the file is for informational purposes; only the hard and soft limits can be changed. On leaving the editor, edquota reads the temporary file and modifies the binary quota files to reflect the changes made. If the -p option is specified, edquota will duplicate the quotas of the prototypical user specified for each user specified. This is the normal mechanism used to initialize quotas for groups of users. If the user given to assign quotas to is a numerical uid range (e.g. 1000-2000), then edquota will duplicate the quotas of the prototypical user for each uid in the range specified. This allows for easy setup of default quotas for a group of users. The uids in question do not have to be currently assigned in /etc/passwd. If one or more -e fspath[:bslim[:bhlim[:islim[:ihlim]]]] options are specified, edquota will non-interactively set quotas defined by bslim, bhlim, islim, and ihlim on each particular file system referenced by fspath. Here bslim is the soft limit on the number of blocks, bhlim is the hard limit on the number of blocks, islim is the soft limit on the number of files, and ihlim is the hard limit on the number of files. If any of the bslim, bhlim, islim, and ihlim values is omitted, it is assumed to be zero, therefore indicating that no particular quota should be imposed. Block quotas can be specified in bytes (B), kilobytes (K), megabytes (M), terabytes (T), petabytes (P), or exabytes (E). If no units are specified, kilobytes are assumed. Inode quotas can be specified in kiloinodes (K), megainodes (M), terainodes (T), petain- odes (P), or exainodes (E). If no units are specified, the number of inodes specified are used. If invoked with the -f option, edquota will read and modify quotas on the file system specified by fspath only. The fspath argument may be either a special device or a file system mount point. The primary purpose of this option is to set the scope for the -p option, which would overwrite quota records on every file system with quotas otherwise. If the -g flag is specified, edquota is invoked to edit the quotas of one or more groups specified on the command line. The -p flag can be specified in conjunction with the -g flag to specify a prototypical group to be duplicated among the listed set of groups. Similarly, -e flag can be specified in conjunction with the -g flag to non-interactively set-up quotas on the listed set of groups. Users are permitted to exceed their soft limits for a grace period that may be specified per file system. Once the grace period has expired, the soft limit is enforced as a hard limit. The default grace period for a file system is specified in <ufs/ufs/quota.h>. The -t flag can be used to change the grace period. By default, or when invoked with the -u flag, the grace period is set for all the file systems with user quotas specified in /etc/fstab. When invoked with the -g flag the grace period is set for all the file systems with group quotas specified in /etc/fstab. The grace period may be specified in days, hours, minutes, or seconds. Setting a grace period to zero indicates that the default grace period should be imposed. Setting a grace period to one second indicates that no grace period should be granted. Quotas must be turned off for the file system and then turned back on for the new grace period to take effect. Only the super-user may edit quotas. FILES
quota.user at the file system root with user quotas quota.group at the file system root with group quotas /etc/fstab to find file system names and locations DIAGNOSTICS
Various messages about inaccessible files; self-explanatory. SEE ALSO
quota(1), quotactl(2), fstab(5), quotacheck(8), quotaon(8), repquota(8) BSD
June 6, 1993 BSD
All times are GMT -4. The time now is 07:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy