How To Access/Change Password For Root Account In Ubuntu

0 comments


This post will show you how to login as root in Ubuntu
By default Ubuntu will not allow you to login as root due to security reason.

So how to login as root without knowing its password?
Ans : Here are simple steps to login as root.

Step1 : Login to normal user account

Step2 : Open a terminal and type the below command
$sudo su
Clipped output for your reference
surendra@test:~$ sudo su
[sudo] password for surendra:
root@test:/home/surendra#
So just enter your password you will get root prompt.

Step3 : Now set the password whatever you want. But try to assign a complex password with following criteria for security reasons.
root@test:/home/surendra#passwd

Follow these rules when setting a password.
1) The password should be 8 letter length
2) It should contain Alpha, numeric, symbols etc.

Please comment your thoughts regarding this post:-)

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Troubleshooting Squid Reverse Proxy Server

    0 comments

    Reverse Proxy Implementation


    Step1 : Check Squid is running or not

    #psef | grep squid

    This command should give you

    Five internal dns server running process

    Two squid demon(squid –D)

    One unlinked process.

    If all the mentions process are running fine means, it indicates that your Squid server is running fine.

    ps -ef | grep squid

    root 31617 1 0 15:06 ? 00:00:00 /opt/squid/sbin/squid -D

    squid 31619 31617 0 15:06 ? 00:00:00 (squid) -D

    squid 31623 31619 0 15:06 ? 00:00:00 (dnsserver)

    squid 31624 31619 0 15:06 ? 00:00:00 (dnsserver)

    squid 31625 31619 0 15:06 ? 00:00:00 (dnsserver)

    squid 31626 31619 0 15:06 ? 00:00:00 (dnsserver)

    squid 31627 31619 0 15:06 ? 00:00:00 (dnsserver)

    squid 31628 31619 0 15:06 ? 00:00:00 (unlinkd)


    Step2 : Check back end server is able to access from your reverse proxy or not?

    #links web425.example.co.in


    Step3 : Check system default logs for any suspected activity.

    #tail –f /var/log/messages


    Step4 : Check squid access logs, cache logs, store logs if you can able to find any issues

    #tail –f /opt/squid/var/logs/access.log

    #tail –f /opt/squid/var/logs/cache.log

    #tail –f /opt/squid/var/logs/store.log


    Step5 : Check whether your syntx in squid is fine or not with the following commands

    /opt/squid/sbin/squid -k check
    /opt/squid/sbin/squid -k parse


    Please comment your thoughts regarding this post:-)


  • Like the post? Please Subscribe to free RSS feed to get updates
  • How To View CHM Files In Linux?

    0 comments

    If you are a book worm then defiantly you will know what is a CHM file?
    For those who don't know the CHM files let me explain it.
    CHM file is a compiled HTML files/document(s) in to a e-book kind so that we can view and index easily. This formate is the proprietary of Microsoft and by default the application to view CHM files in windows is installed.

    So what about viewing the files in Linux?
    We have to install
    CHM file viewer. There are so many applications to achieve this such as

    GTK

    * gnochm
    * CHMsee
    * FBReader

    Qt

    * Okular
    * kchmviewer
    * Kchm
    * chmcreator


    Other

    * xCHM
    * Archmage
    * DisplayCHM
    * CHM Reader Firefox addon


    In this post I will show you how to install
    gnochm application to view CHM files.

    Installing gnochm in Redhat
    #rpm -ivh libchm1.0.40-1.i386.rpm
    #rpm -ivh python-chm.0.8.4-1.i386.rpm
    #rpm -ivh 0.9.11-2.i386.rpm


    Installing gnochm in Ubuntu
    #apt-get install gnochm

    Please comment regarding this post:-)

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here