01-25-2008
how can i add a user to a group
All,
How i can add a user to a group so that the user will ahve all permsion on that directory .
(sys12
nl:/work/cn/>) groups crcv1
canusr
and
(sys12
nl:/work/cn/>) groups pfmgr
pfw users
i am having the .ssh in the directory /work/cn/ which has permision as drwx------ .
My code is running as pfmgr . So when my code try to find the directory .ssh it fails with permision no permision to read .
If i add canusr to my group pfmgr . Will my code will have permission to .ssh file ?? .
Again how i add canusr to my group pfmgr . Please let me know .
Thanks,
Arun
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
groups(1) General Commands Manual groups(1)
NAME
groups - show group memberships
SYNOPSIS
[user]
DESCRIPTION
shows the groups to which the caller or the optionally specified user belong. If invoked with no arguments, prints the current access list
returned by (see getgroups(2)).
Each user belongs to a group specified in the password file and possibly to other groups as specified in the files and A user is granted
the permissions of those groups specified in and at login time. The permissions of the groups specified in are normally available only
with the use of (see newgrp(1)). If a user name is specified with no options, prints the union of all these groups.
The and options limit the printed list to those groups specified in and respectively. If a user name is not specified with any of these
options, is called to determine the default user name (see cuserid(3S)).
The printed list of groups is sorted in ascending collation order (see Environment Variables below).
EXTERNAL INFLUENCES
Environment Variables
determines the order in which the output is sorted.
If is not specified in the environment or is set to the empty string, the value of is used as a default. If is not specified or is set to
the empty string, a default of ``C'' (see lang(5)) is used instead of If any internationalization variable contains an invalid setting,
behaves as if all internationalization variables are set to ``C'' (see environ(5)).
EXAMPLES
Check file and display all groups to which user belongs:
AUTHOR
was developed by the University of California, Berkeley.
FILES
SEE ALSO
id(1), newgrp(1), getgroups(2), initgroups(3C), cuserid(3S), group(4).
groups(1)