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 complete name of the default configuration file for LILO?
how can i make an user to nologin without locking the account for the user
How to Trouble shoot performance issue in RHEL administration ? please give to one example
why /etc/shadow file do not have any permission ?
i installed clustering packages.When i try to run it getting LUCI error...what is it..??
in linux gui desktop icon was lost how con u back this icons
what is the use of runlevel 4 in redhat linux? in which cases it will use.
What are the main differences between RHEL4 & RHEL5?
Who owns the data dictionary?
How to check all open ports on linux machine and block unsed ports????????
My Linux server in the two lan card one lan card is ok working but second lan card after restart daily lan card deactivate and then manual activate then properly working but after restart repeat this problem.(Fedora O.S.) Pls tell me solved this problem.
How to findout, if the user is local user or NIS user in the Linux (RHEL)?