su "permission denied"

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

su "permission denied"

Postby Alex7793 » Wed Jul 25, 2012 2:09

Hi to all!!! When I use su command, even if I set correct password, it didn't give me access but write "permission denied", how can I fix it?

Thanks in advance!!!
Alex7793
Young Hen
 
Posts: 30
Joined: Thu Feb 05, 2009 17:06

Re: su "permission denied"

Postby wolfden » Wed Jul 25, 2012 6:23

hmmm, can you sudo su? than use the command passwd to reset the root password?

Also moving this to a better forum instead of Software forum
User avatar
wolfden
Sharecropper
 
Posts: 8824
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: su "permission denied"

Postby Alex7793 » Mon Sep 17, 2012 16:35

I answer after many days cause holidays... If you can move you to a better forum please, I don't know where...

I can use sudo passwd, I access root account, I change root password, but still I can't access directly via su... I remember that I write wrong password many times, cause darkness in my room, it is a thing that relates?

Thank you for answer,
Alex
Alex7793
Young Hen
 
Posts: 30
Joined: Thu Feb 05, 2009 17:06

Re: su "permission denied"

Postby sabayonino » Mon Sep 17, 2012 18:25

Alex7793 wrote:I answer after many days cause holidays... If you can move you to a better forum please, I don't know where...

I can use sudo passwd, I access root account, I change root password, but still I can't access directly via su... I remember that I write wrong password many times, cause darkness in my room, it is a thing that relates?

Thank you for answer,
Alex


as wolfden wrote , try :
Code: Select all
$ sudo su


not "sudo passwd"

and reset the root passwd with a new passwd
User avatar
sabayonino
Sagely Hen
 
Posts: 1602
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: su "permission denied"

Postby svantoviit » Sat Sep 22, 2012 9:56

or you can try to restore the password using the chroot way
1. boot a live distro
2. mount the root partition
3. cd to the mounted root partition
4. #chroot /bin/bash
5. #passwd
User avatar
svantoviit
Technological Hen
 
Posts: 418
Joined: Sun Feb 28, 2010 17:55


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 3 guests