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 |
How to findout, if the user is local user or NIS user in the Linux (RHEL)?
How does the boot process[init levels] work on Linux? How is it different from Solaris?
how to install linux OS? pls send step by step
what are the steps for Password-less ssh
expalin the process of kickstart installation?
what is the difference between fork and thread ? and parent and child process in fork system call?
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.
I have accidently deleted my fstab... how do i recover/ regenerate the file?????? in rescue mode i cannot create a new file since the filesystem is readonly and could not mount in readwrite mode ?????????
When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?
what is the difference betweenh the NFS and FTP?
1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?
What is the use of DNS Server? Name other servers works same as like DNS?