Results 1 to 9 of 9

Thread: How to login as root user?

  1. #1
    Join Date
    Jan 2011
    Location
    Surat,Gujarat,India
    Beans
    28
    Distro
    Ubuntu

    How to login as root user?

    when installing ubuntu i created one user account named myself but it sometimes doesnot allows me to copy or run some files. It simply says "Permission Denied".

    I know i can run that files and scripts using sudo command but i want to login as a root user which has all the required permissions by default...

    How to do that ???
    Thanks & Regards
    Ankur M Trapasiya

  2. #2
    Join Date
    Feb 2010
    Beans
    10

    Re: How to login as root user?

    Ankur,

    Use the "sudo -s" command. That will get you a root shell.

    Cheers,
    -Polar

  3. #3
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,414
    Distro
    Xubuntu

    Re: How to login as root user?

    By default the root account is locked in Ubuntu and we do not provide support regarding how to log in to the account.

    See here for more details:
    https://help.ubuntu.com/community/RootSudo

    On that note, what exactly are you trying to run that is giving these errors?

    For graphical applications you need to use gksu/gksudo

    If you tell us more perhaps we can help you.

    EDIT: @Polar Humenn; the correct command to use is
    sudo -i
    see here for why:http://ubuntuforums.org/showpost.php...26&postcount=4
    Last edited by Rubi1200; January 11th, 2011 at 05:51 PM.

  4. #4
    Join Date
    Jan 2011
    Location
    Surat,Gujarat,India
    Beans
    28
    Distro
    Ubuntu

    Re: How to login as root user?

    i want to one file from one location to another location... but it is saying "permission denied" ...

    so i need to be root user.... now how can i copy that file without using terminal ???? This is the exact problem which i am facing...
    Thanks & Regards
    Ankur M Trapasiya

  5. #5
    Join Date
    Jun 2009
    Location
    U.S.A. Illinios
    Beans
    336
    Distro
    Ubuntu

    Re: How to login as root user?

    In terminal, sudo nautilus This will open root nautilus and you can do what you need to there, It is the same as regular nautilus but with root permissions !
    johnnyg713
    Ultimate Edition,We are World Wide and Growing !
    http://ultimateedition.info/
    http://www.ultimateeditionoz.com/for...hp?f=36&t=2387

  6. #6
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,414
    Distro
    Xubuntu

    Re: How to login as root user?

    Quote Originally Posted by JOHNNYG713 View Post
    In terminal, sudo nautilus This will open root nautilus and you can do what you need to there, It is the same as regular nautilus but with root permissions !
    Again, with all due respect, but the correct command for graphical applications is to use either gksu or gksudo.

    Thus,
    Code:
    gksudo nautilus
    Beware, you can truly mess up your system copying/moving files like this so please understand what you are doing.

  7. #7
    Join Date
    Jun 2009
    Location
    U.S.A. Illinios
    Beans
    336
    Distro
    Ubuntu

    Re: How to login as root user?

    Quote Originally Posted by Rubi1200 View Post
    Again, with all due respect, but the correct command for graphical applications is to use either gksu or gksudo.

    Thus,
    Code:
    gksudo nautilus
    Beware, you can truly mess up your system copying/moving files like this so please understand what you are doing.
    Yes I stand corrected ! gksudo !
    johnnyg713
    Ultimate Edition,We are World Wide and Growing !
    http://ultimateedition.info/
    http://www.ultimateeditionoz.com/for...hp?f=36&t=2387

  8. #8
    Join Date
    Feb 2011
    Location
    Southampton, UK
    Beans
    131
    Distro
    Ubuntu

    Re: How to login as root user?

    Thanks guys, I give it a try.

    Andy
    SAABS, SLOT REAL ALE RED WINE "Looks no object, it's your soul I want!"Computer Home built, AMD thingy, 4gig and 1T of HDD. Coffee stains. Well of course it does.

  9. #9
    Join Date
    Jul 2011
    Beans
    1

    Cool Re: How to login as root user?


Tags for this Thread

Bookmarks

Posting Permissions

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