On Mon, Aug 20, 2012 at 6:45 AM, Roy <linuxcanuck@gmail.com> wrote:
> You use root in Ubuntu using sudo. There is no separate root password or a
> root user. To use it, you use the command sudo before the operation such as
> 'sudo nautilus' will open the file manager as root or 'sudo apt-get update'
> to update your package list. You always use sudo before the command for
> anything requiring root access. You will only be asked for the password the
> first time, though. You can use 'sudo su' to switch to root and then not
> bother with sudo anymore (for that terminal session). You will get the
> traditional # to show you are root instead of the $ used in sudo.
>
> Let us know if the password problem continues. That can be fixed too.
>
> Roy
> Using Kubuntu 12.04, 64-bit
> Location: Canada
In addition to what Roy said, there actually IS a root account on
Ubuntu but it's mostly not enabled, and as Roy said, you would use
sudo to perform root level tasks.
However, there are some rare occasions where you actually can't use
sudo out of the box and want to be root, and if you absolutely need to
be root, you want to do the following:
sudo su -
this will use su (switch user) to switch you into the root account and
the - tells it to give you the path for that account. if you leave
the - off of the command, you'll switch to the root user, but have
your normal user path, which may not work well.
That all being said, I just mention it to be complete, you will not
need to do this for 99% of anything you want to do on your system.
Just use sudo, it's cleaner and easier.
Cheers,
Jeff
Monday, August 20, 2012
Re: [LINUX_Newbies] (unknown)
__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.
__,_._,___
No comments:
Post a Comment