LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-29-2006, 06:44 AM   #1
greeting
LQ Newbie
 
Registered: Jun 2006
Posts: 17

Rep: Reputation: 0
Talking set GRUB password


Dear Friends,

How can I set password for grub bootloader?
I am using FC5.

Regards,
greeting

Last edited by greeting; 08-30-2006 at 04:08 AM. Reason: Mistyped GRUB with GRUP
 
Old 08-29-2006, 07:06 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm not sure if it's part of the default FC5 install, but do you have gpasswd installed? If so, have a look at man gpasswd.
 
Old 08-30-2006, 03:22 AM   #3
greeting
LQ Newbie
 
Registered: Jun 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Question gpasswd is for GRUB???

Hey! friend,

gpasswd is for grub???? Or to manage group????

Last edited by greeting; 08-30-2006 at 04:09 AM. Reason: Mistyped GRUB with GRUP
 
Old 08-30-2006, 03:36 AM   #4
jimmax777
LQ Newbie
 
Registered: Aug 2003
Location: Mumbai, India
Distribution: Red Hat 9
Posts: 26

Rep: Reputation: 15
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.

Hope its clear now!!!
 
Old 08-30-2006, 04:05 AM   #5
greeting
LQ Newbie
 
Registered: Jun 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Talking I would like to beg your forgiveness

Dear friends,

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]

Anyhow, Thank you all.


Regards,
greeting
 
  


Reply

Tags
boot loader, grub


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 08:27 AM
What should I do to set root password backpacker Linux - Newbie 1 06-10-2005 04:19 AM
Need help using expect to set password Arodef Linux - General 2 03-03-2005 08:30 PM
How to set no password rquin66 Fedora 17 01-01-2004 05:06 AM
Cant set password for new users ribbones Linux - General 1 09-03-2003 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration