Find the answer to your Linux question:
Results 1 to 9 of 9
Hey there I wanted to put password in lilo.conf file. I added this line but doesn't seem to work out Code: password=vickey . I also did Code: lilo -v Is ...
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    Putting password in lilo.conf

    Hey there
    I wanted to put password in lilo.conf file. I added this line but doesn't seem to work out
    Code:
    password=vickey
    . I also did
    Code:
    lilo -v
    Is there any thing missing
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Have you execute lilo command without any option after editing lilo.conf file?

    Edit lilo.conf file, save it and execute lilo command.

    In case it doesn't work, post the contents of lilo.conf here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    thanks

    I simply edited the file and put the 'password' line in the file. Followed by
    Code:
    lilo -v
    as far as I knw it updated the entry in the MBR.
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Post the contents of lilo.conf file here.

    Here is sample of working lilo.conf file :
    Code:
    default="windows1"
    boot=/dev/hda
    map=/boot/map
    keytable=/boot/us.klt
    menu-scheme=wb:bw:wb:bw
    compact
    prompt
    nowarn
    timeout=100
    message=/boot/message
    image=/boot/vmlinuz
            password=xxxxxxxx
    	label="linux"
    	root=/dev/hda5
    	initrd=/boot/initrd.img
    	append=" splash=silent"
    	vga=788
    image=/boot/vmlinuz
    	label="linux-nonfb"
    	root=/dev/hda5
    	initrd=/boot/initrd.img
    image=/boot/vmlinuz
    	label="failsafe"
    	root=/dev/hda5
    	initrd=/boot/initrd.img
    	append=" failsafe"
    other=/dev/hda1
    	label="windows"
    	table=/dev/hda
    other=/dev/hda2
    	label="windows1"
    	table=/dev/hda
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    grub!!!

    I need a little more help !!
    I have installed grub using this command
    Code:
    grub-install /dev/hda
    now I m trying to restore lilo
    Code:
    lilo -v
    But still It's not working
    Here are the contents of the lilo.conf
    Code:
    prompt #prompt is used to tel lilo to show watevr is refrenced in message file
    timeout=50 #time in deciseconds after which default OS is loaded
    default=DOS #the default operating system to boot
    boot=/dev/hda #tells lilo to install itself on the hda 
    map=/boot/map #locates the map file
    install=/boot/boot.b #tells lilo to install this file as the new boot sector
    #the above file is default if the install line is missing
    message=/boot/message #the msg refers to screen tat lilo displays
    lba32 #could be linear
    
    password=vickey
    image=/boot/vmlinuz-2.4.21-4.EL #the linux kernel to boot 
    	label=linux #the OS
    	initrd=/boot/initrd-2.4.21-4.EL.img #helps in booting the kernel 
    	read-only
    	append="root=LABEL=/"
    
    other=/dev/hda1
    	optional
    	label=Wind$
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  6. #6
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    I hope those extra space around the '#' are'nt spoling the party
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  7. #7
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    got it , I learned a lesson never to mess around with the conf files. Luckly had a backup and replaced the modified file with the orignal file and everything worked like cream!!
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  8. #8
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    Just verifying

    I read it some where that it is not possible to use restricted without password??
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Thats correct and if you use restricted keyword without password, it won't make any sense.

    restricted keyword disables extra argument passing to Lilo. You have to use password to pass arguments. In case you don't use password keyword, restricted option will not work.

    Check here for more details.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...