Can't su to root

11 réponses [Dernière contribution]
lansburyslido
Hors ligne
A rejoint: 08/29/2011

Just realised that I can no longer su into root, I get an authentication error.

Did do a recommended update a few days ago, would this be the cause?

lembas
Hors ligne
A rejoint: 05/13/2010

You are typing the root's password and not your own, right? :)

lansburyslido
Hors ligne
A rejoint: 08/29/2011

I don't know if I'm having a funny turn here or not?

I can sudo fine, but I thought that Trisquel Mini was set up with root access? I'm sure that previously I could access root.

Does Trisquel Mini use su or sudo?

lansburyslido
Hors ligne
A rejoint: 08/29/2011

I don't know if I'm having a funny turn here or not?

I can sudo fine, but I thought that Trisquel Mini was set up with root
access? I'm sure that previously I could access root.

Does Trisquel Mini use su or sudo?

Revelation
Hors ligne
A rejoint: 06/25/2010

Maybe Trisquel has the disabled root user, just like Ubuntu.
Try

sudo su
or
sudo -s

http://askubuntu.com/questions/64178/why-is-sudo-s-better-than-sudo-su
https://help.ubuntu.com/community/RootSudo

apvp
Hors ligne
A rejoint: 12/10/2011

Make sure you're still in the admin group with the command groups
your-user-name; you should replace your-user-name with your login username,
obviously!

If admin doesn't show up in the commands' output you'll have to add yourself
back to the admin group: shutdown your computer, boot with a liveCD, mount
the drive where the /etc/ folder is located and open the group file
(/etc/group).

In the group file there should be a line starting with admin:x: followed by a
number and :, something like admin:x:121: Now, all you have to do is to add
your username to the end of that line, like admin:x:121:myself

Then check if the sudoers file (/etc/sudoers) contains the following line:
%admin ALL=(ALL) ALL

If that line isn't there - create it.

lembas
Hors ligne
A rejoint: 05/13/2010

sudo uses your password
su uses root's password

You can change roots password by
sudo su
passwd
exit

Revelation
Hors ligne
A rejoint: 06/25/2010

Maybe Trisquel has the disabled root user, just like Ubuntu.
Try

sudo su
or
sudo -s

http://askubuntu.com/questions/64178/why-is-sudo-s-better-than-sudo-su
https://help.ubuntu.com/community/RootSudo

apvp
Hors ligne
A rejoint: 12/10/2011

Make sure you're still in the admin group with the command

groups your-user-name

You should replace your-user-name with your login username, obviously!

If admin doesn't show up in the commands' output you'll have to add yourself back to the admin group: shutdown your computer, boot with a liveCD, mount the drive where the /etc/ folder is located and open the group file (/etc/group).

In the group file there should be a line starting with admin:x: followed by a number and :, something like admin:x:121: Now, all you have to do is to add your username to the end of that line, like admin:x:121:myself

Then check if the sudoers file (/etc/sudoers) contains the following line:

%admin ALL=(ALL) ALL

If that line isn't there - create it.

--------------------------------------------------------------

UPDATE:

Oh! I've just realized that you have said that you can still sudo... Not shure if what i've said previously does you any good.

lansburyslido
Hors ligne
A rejoint: 08/29/2011

Yup, I'm in admin:

chris@chris-laptop:~$ groups chris
chris : chris adm dialout cdrom floppy audio video plugdev users lpadmin sambashare admin

I did a post recently about getting cpufrequtils working, had to install the cpufrequtils package, just noticed that this is no longer installed!

Last system update did include a kernel update, maybe this was it.

Anyways, I can sudo so panic over.

lansburyslido
Hors ligne
A rejoint: 08/29/2011

Yup, I'm in admin:

chris@chris-laptop:~$ groups chris
chris : chris adm dialout cdrom floppy audio video plugdev users lpadmin
sambashare admin

I did a post recently about getting cpufrequtils working, had to install the
cpufrequtils package, just noticed that this is no longer installed!

Last system update did include a kernel update, maybe this was it.

Anyways, I can sudo so panic over.

lembas
Hors ligne
A rejoint: 05/13/2010

sudo asks your password
su asks root's password

You can change root's password by
sudo su
passwd
exit