how to add linux user to group?

Answer Posted / ajay songare

New User Add to Grop
# username -g groupname username(for Primary Group)
# useradd -G groupname username(for Secondary Group)

Old User Add To Grop
# usermod -g groupname username(for Primary Group)
# usermod -G groupname username(for Secondary Group)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you save a file in linux?

565


What is mkdir p?

560


What is the gcc command?

514


What is the export command used for?

519


How many types of commands are there in linux?

560






What does && mean in linux?

557


what is the fastest way to enter a series of commands from the command-line in linux

524


Brief about finger username?

560


How do I know my linux shell version?

507


Explain about the command lynx?

672


What is ulimit in linux?

562


Which is the required command for checking the file system?

538


You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?

557


Which command is used to uncompress gzip files?

589


How do I check my disk space?

469