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 the other method of installing Linux O.S other than Text, GUI mode? Why we prefer that for installation of Linux in Real time?
why /etc/shadow file do not have any permission ?
What is the difference between Telnet and SSH?
How can i recover the linux system after it was crashed by step by step process..
How To Hide the FTP Version?
This question is belong to linux support. "one of my customer told to me, my application is getting slow response". how to resolve the issue. what are the steps you will follow to resolve the issue.
How to sort a file of size 2N bytes, if I have N bytes of memory?
As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.
What are the main differences between RHEL4 & RHEL5?
What is the use of DNS Server? Name other servers works same as like DNS?
what is difference between inetd and xinetd
what is the difference between unix and linux...