06-14-2008
Hello...
What is the difference between a primary and secondary group for an user?
Thanks,
Fernanda
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
2. Solaris
Pre: no gpasswd/adduser
there is just usermod can be used, also there is no -a option for usermod.
How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies
3. Shell Programming and Scripting
I have a file in the following format. Groups of data merge together and the group number is indicated above each group.
1
adrf
dfgr
dfg
2
dfgr
dfgr
3
dfef
dfr
fd
4
fgrt
fgr
fgg
5
fgrt
fgr (3 Replies)
Discussion started by: Lucky Ali
3 Replies
4. Shell Programming and Scripting
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
5. AIX
Hello,
I am new in AIX please tell how can i create user and add group in this user for example, i want to create user umair and want to add this user primanry group DBA and secondary group ORACLE,how can i do this please tell in detail
Thanks,
Umair (1 Reply)
Discussion started by: umair
1 Replies
6. Ubuntu
Hi,
Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01".
I want both in the sames privileges and group. Please see the existing users list below;
drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies
7. Debian
Can someone help in creating a group and user.
syntax to create a Group called Members.
syntax to create a user called AAAA and place in to the Group Members.
Thanks for your help in Advance. (3 Replies)
Discussion started by: sawyer
3 Replies
8. Red Hat
Hi,
In the following output you can see the the user "richard" is a member on the team/group "developers":
# id richard
uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers)
but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies
9. Linux
Hello,
i try to add user john to secondary group, named groupB
this will add as primary group,
how can i add to secondary group??
dn: cn=groupB,ou=Groups,dc=ldap-server,dc=com
changetype: modify
add: memberuid
memberuid: john (1 Reply)
Discussion started by: prpkrk
1 Replies
10. SuSE
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
LEARN ABOUT NETBSD
newgrp
NEWGRP(1) BSD General Commands Manual NEWGRP(1)
NAME
newgrp -- change to a new primary group
SYNOPSIS
newgrp [-l] [group]
DESCRIPTION
The newgrp command changes a user to a new primary group (real and effective group ID) by starting a new shell. The user remains logged in
and the current directory and file creation mask remain unchanged. The user is always given a new shell even if the primary group change
fails.
The newgrp command accepts the following options:
-l The environment is changed to what would be expected if the user actually logged in again. This simulates a full login.
The group is a group name or non-negative numeric group ID from the group database. The real and effective group IDs are set to group or the
group ID associated with the group name.
If group is not specified, newgrp restores the user's real and effective group IDs to the user's primary group specified in the password
database. The user's supplementary group IDs are restored to the set specified for the user in the group database.
If the user is not a member of the specified group, and the group requires a password, the user will be prompted for the group password.
FILES
/etc/group The group database
/etc/master.passwd The user database
/etc/passwd A Version 7 format password file
EXIT STATUS
If a new shell is started the exit status is the exit status of the shell. Otherwise the exit status will be >0.
SEE ALSO
csh(1), groups(1), login(1), sh(1), su(1), umask(2), group(5), passwd(5), environ(7)
STANDARDS
The newgrp command conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A newgrp command appeared in Version 6 AT&T UNIX. A newgrp command appeared in NetBSD 5.0.
BUGS
There is no convenient way to enter a password into /etc/group. The use of group passwords is strongly discouraged since they are inherently
insecure. It is not possible to stop users from obtaining the encrypted password from the group database.
BSD
June 6, 2007 BSD