LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   SuperUser on ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/superuser-on-ubuntu-422857/)

alanblundell 03-08-2006 11:13 AM

SuperUser on ubuntu
 
Have reinstalled Kubuntu after reorganising my second disk and I cannot figure out how to set a known password for the superuser. I did It some time ago when I first installed Kubuntu but I can't remember how.
Any help appreciate. If I remember correctly I also put a permanent password into sudo, I can't remember how to do that either 8-)
Any help much appreciated.
Alan.

Dragineez 03-08-2006 11:16 AM

sudu su
 
sudo passwd root ?

Your sudo password should be the password of the first user created when you installed. In other words, your password. You must have that or you wouldn't have been able to "reorganize" that second disc.

libhf 03-08-2006 02:43 PM

I have the same problem.

When I did the install, I was prompted to create a normal user account with a password for myself, and a root password for administrative work.
Now, in Kubuntu, certain setting changes ask for administrator log in--
I enter my password: "invalid password"
I enter the root password referred to above: "conversation with su failed."

Why did the creators of Ubuntu do this? Why couldnt they just follow what other distros do?

reddazz 03-08-2006 03:31 PM

To have a proper root account in Ubuntu or Kubuntu, do
Code:

$sudo passwd root
If using Kubuntu, you can fix the su or kdesu problem by editing /usr/share/kubuntu-default-settings/kde-profile/default/share/config/kdeglobals and adding the lines below
Code:

[super-user-command]
super-user-command=su

Once you have done that, you can get rid of sudo by running visudo and commenting out the privileges that allow users in admin to run all commands on the system.

libhf 03-08-2006 06:57 PM

Thanks very much. I will certainly give that a try in both interfaces.

libhf 03-08-2006 09:14 PM

Thanks! I followed your clear instructions and it works perfectly now, both in Ubuntu and Kubuntu.

Algi3rs 07-31-2008 09:03 PM

i am using kubuntu 8.04 and i am trying to install the ati driver for a 64 bit card but it says that i need to be logged in as superuser for installation. CAN SOMEONE PLEASE JUST TELL ME HOW TO LOG IN AS SUPERUSER INSTEAD OF ALL THESE USELESS, TIME-CONSUMING WRAPAROUNDS?!! PLEASE!!!

Dragineez 08-01-2008 09:14 AM

Wraparound?
 
To what "USELESS, TIME-CONSUMING WRAPAROUND" do you refer? If your login is a sudoer you can su or sudo the command and - voila - it works. Ubuntu does not, by default, have a root account. But you can create one. Login as root - voila - it works.

Please describe the process you're using and perhaps we can help you.

texasone 08-06-2008 08:21 AM

I use Debian mostly so I am used to using "su" or "su -" to get super-user permissions. but I am going to be installing ubuntu hardy on a laptop to try to get my parents to switch to linux so I can get rid of windows in my house, just easier for me to be a systems admin of the house when I use that operating system:Pengy:. Will what reddazz said switch from using the user password for admin programs like synaptics, and use just the root password so I can install right on my parents accounts and not have to log on, locally or remotely, and install as it is more time consuming.
Quote:

Originally Posted by reddazz (Post 2141078)
To have a proper root account in Ubuntu or Kubuntu, do
Code:

$sudo passwd root
If using Kubuntu, you can fix the su or kdesu problem by editing /usr/share/kubuntu-default-settings/kde-profile/default/share/config/kdeglobals and adding the lines below
Code:

[super-user-command]
super-user-command=su

Once you have done that, you can get rid of sudo by running visudo and commenting out the privileges that allow users in admin to run all commands on the system.

Thanx for all help past present and future.

Kyle
#Texasone


All times are GMT -5. The time now is 12:00 PM.