Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
gpasswd is definitely for setting group passwords. I'm not sure if its included in the FC5. have not used FC5 yet. But yes you can use gpasswd to set group passwords.
gpasswd is also used to add and remove users from a particular group which is an adviced method to add users to a particular group because if you use usermod command to do that then you need to include every group the user needs to be added every time even if you just want to add a user to one group.
For eg: if user jack is already a member of the groups jack, admin, sys and managers and now that you want to add him to group marketing then
# gpasswd -a jack marketing
or
# usermod -G jack,admin,sys,managers,marketing jack
The disadvantage here in using usermod command is that if you only did
# usermod -G marketing jack
then the user jack is removed from all the other groups and is only added to the group marketing. So it is a very good command in linux and I'm sure it should be provided in FC5 also. Though you should check the FC site for details.
Your replies are very useful for me and I got more knowledge than before concern with gpasswd. Actually, I would like to know about GRUB not GRUP. I made the big mistake.
Now, I know the way how to set password for GRUB. All I have to do is to add the following line to /etc/grub.conf. password --md5 [encrypted md5 password]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.