Hi I have a user zak and
4 groups:-
oracle
stats
data
archive
I want user zak to be part of the oracle and stats group but not be able to view,list anything in data and archive. Also anyone in the data and archive group should not be able to view,list anything in oracle and stats....... (3 Replies)
Hello,
I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job.
linux1
linux2
linux3
linux4
linux5 ......
.
.
.
.
.
1.) How can i enter "password" in script rather asking me?
I was trying this...
ssh... (2 Replies)
hi eveyone i've recently requested my unix admin to create a userid for 2 groups. He created the id and i can see it by grep "id" /etc/group.
But when i login with that id into unix and try to cd that group it says permission denied. something like cd /groupname -- permission denied
Can my admin... (1 Reply)
Hello
A couple of weeks ago, I added a user to an AIX 5.3 system.
I go to add one today, and it appears that when creating a user in smit, I cannot see any groups.
No primary groups
No Group set
No Admin Groups
The /etc/group and etc/secuity/group files seem to be intact.
I did... (4 Replies)
Do we have concepts of volume groups in solaris like we have in Linux(command: vgdiplay) and AIX(command: lsvg).
If yes, then what commands/ files can give details for same. (5 Replies)
Must I be in a group? I am using Ubuntu and am the only user on my PC. I know how to change groups but do not see a way to not be in a group. Any help would be appreciated. (2 Replies)
Hi
I see that I can use umask to set the default permissions on files created by a script like so -
umask u=rwx,g=rwx,o=
So that would grant rwx to the user and group.
My question is how do I control the group this applies to?
I want a script to create files under... (3 Replies)
Hi,
I am looking at a slightly different sorting problem and I am not sure how to do it in bash.
I have the following input:
0 ... (8 Replies)
Discussion started by: jamie_123
8 Replies
LEARN ABOUT OSX
groupmod
groupmod(1M) System Administration Commands groupmod(1M)NAME
groupmod - modify a group definition on the system
SYNOPSIS
/usr/sbin/groupmod [ -g gid [-o]] [-n name] group
DESCRIPTION
The groupmod command modifies the definition of the specified group by modifying the appropriate entry in the /etc/group file.
OPTIONS
The following options are supported:
-g gid Specify the new group ID for the group. This group ID must be a non-negative decimal integer less than MAXUID, as defined in
<param.h>. The group ID defaults to the next available (unique) number above 99. (Group IDs from 0-99 are reserved by SunOS for
future applications.)
-n name Specify the new name for the group. The name argument is a string of no more than eight bytes consisting of characters from the
set of lower case alphabetic characters and numeric characters.
A warning message will be written if these restrictions are not met. A future Solaris release may refuse to accept group fields
that do not meet these requirements. The name argument must contain at least one character and must not include a colon (:) or
NEWLINE (
).
-o Allow the gid to be duplicated (non-unique).
OPERANDS
The following operands are supported:
group An existing group name to be modified.
EXIT STATUS
The groupmod utility exits with one of the following values:
0 Success.
2 Invalid command syntax. A usage message for the groupmod command is displayed.
3 An invalid argument was provided to an option.
4 gid is not unique (when the -o option is not used).
6 group does not exist.
9 name already exists as a group name.
10 Cannot update the /etc/group file.
FILES
/etc/group group file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO users(1B), groupadd(1M), groupdel(1M), logins(1M), useradd(1M), userdel(1M), usermod(1M), group(4), attributes(5)NOTES
The groupmod utility only modifies group definitions in the /etc/group file. If a network name service such as NIS or NIS+ is being used to
supplement the local /etc/group file with additional entries, groupmod cannot change information supplied by the network name service. The
groupmod utility will, however, verify the uniqueness of group name and group ID against the external name service.
SunOS 5.10 5 Dec 1995 groupmod(1M)