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 does the boot process[init levels] work on Linux? How is it different from Solaris?
In Linux(RHEL) server have two users with same name. one is local user and second one is NIS user. if you login the server which user will login (local or NIS)
How to recover a deleted file in linux ?
cups stands for..?
Which directory is closer to the top of the file system tree, parent directory or current directory?
What is the difference between RedHat linux and Fedora and Ubuntu?
why you are using nis server
will u plz send me the complete steps of installation of red hat linux on intel's core 2 duo processor?
what is meant by mysql clustering
plz mention some interesting problems you faced and how you solved it?
Hi all Could u plz tell me how I can get UNIX/Linux Certification
Without Using $date -dyesterday. How I get the yesterday's date ?