commands regarding the adding of users into groups n
different options with useradd...?
Answers were Sorted based on User's Feedback
Answer / raj kumar yadav
vi /etc/group
and set the user name in the same group line where we want
to add user
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / susheel narayan singh
If user is susheel and groupe name is n
then
#useradd -G n susheel
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / raj kishor
Two ways are there:
1.To add as primary group
user:tom group:harry
useradd -g harry tom(harry will be the primary group of tom)
2.To add secondary grup
useradd -G harry tom (now tom's seconday group is hary).
3.To add to the earlier secondary group of tom
useradd -aG harry tom (This appends harry to the secondary
group)
| Is This Answer Correct ? | 1 Yes | 1 No |
What is page-in and page-out in redhat linux?
how to recollect root password
Without Using $date -dyesterday. How I get the yesterday's date ?
What is the difference between semaphore and spinlock?
Tell me the 5 differences between Linux and Unix?
how u use the iptable firewall to restrict ssh,telnet,ftp
How to load the old kernel without rebooting server
How to Create NIS Server And NIS Client? Explain With Example?
in linux gui desktop icon was lost how con u back this icons
what is NIS Server...?
What is the complete name of the default configuration file for LILO?
When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?