how to add linux user to group?
Answers were Sorted based on User's Feedback
Answer / ron
useradd -g primary_group -G secondary_group username
passwd password
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / shanu
gpasswd
Usage: gpasswd [-r|-R] group
gpasswd [-a user] group
gpasswd [-d user] group
gpasswd [-A user,...] [-M user,...] group
#gpasswd -a user1 dba
Adding user user1 to group dba
#gpasswd -M user2,user3 dba //multiple users
or
#usermod -g primary_grp username
#usermod -g dba user1
#usermod -G sec_grp username
#usermod -G oper,oinstall oracle
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / v.balaviswanathan
groupadd EXAMPLE
useradd -G EXAMPLE <username>
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / ajay songare
linux create a Two type of Group thare are:-
1.primary group represent g
2.secondary group represent G
# useradd -g groupname username
# useradd -G groupname username
usercreate and after that Add group
# usermod -g groupname username
# usermod -G groupname username
| Is This Answer Correct ? | 1 Yes | 2 No |
List all the files beginning with A
Explain how you would manage background and foreground processes in Linux.
How can we increase disk read performance in single command in Linux operating system?
What is help command in linux?
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance
What does df command do in linux?
What is the command to see on which port which service is running?
Is llvm a compiler?
Hi All of Unix/Linux professional Q.Why soft link file not open by cat command. Ihave make following symbolic link but when i open with #cat linkfilename it does not oped please see the following code and try to answer. # ln -s file1 ~/mydir/filea [root@dhcppc0 ~]# cd mydir [root@dhcppc0 mydir]# ls -l total 4 lrwxrwxrwx 1 root root 5 2010-04-04 09:04 filea -> file1 [root@dhcppc0 mydir]# cat filea cat: filea: No such file or directory
How do you clear the screen in linux?
What is ll command in unix?
Explain command grouping in linux?