authentication failure in linux

Page 1 of 1

4 Replies - 611 Views - Last Post: 07 September 2011 - 09:22 AM

#1 menukadevinda   User is offline

  • D.I.C Regular

Reputation: -7
  • View blog
  • Posts: 470
  • Joined: 14-April 11

authentication failure in linux

Posted 02 September 2011 - 09:58 AM

hi,

I am new to shell in linux. I was learning and trying to su command. then request the password and I gave it
but it says authantication faliur

then I type passwd and changed the password and try to run su command but I got the same message!!
I am working on ubuntu
Is This A Good Question/Topic? 0
  • +

Replies To: authentication failure in linux

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: authentication failure in linux

Posted 02 September 2011 - 10:00 AM

If you are issuing su with no user, then it assumes root. You must provide the root password.

If you are issuing a user to su, you must provide that users password.

su is not the same as sudo. sudo asks for your user password, & checks to see if you have permissions to perform the action as that user.
Was This Post Helpful? 1
  • +
  • -

#3 menukadevinda   User is offline

  • D.I.C Regular

Reputation: -7
  • View blog
  • Posts: 470
  • Joined: 14-April 11

Re: authentication failure in linux

Posted 02 September 2011 - 10:06 AM

thanks but I have nt set two passwords and users and groups in system administration tab I have set the account to administrator.

how to set root password? passwd doesnt chage root password?

plz help me
Was This Post Helpful? 0
  • +
  • -

#4 menukadevinda   User is offline

  • D.I.C Regular

Reputation: -7
  • View blog
  • Posts: 470
  • Joined: 14-April 11

Re: authentication failure in linux

Posted 02 September 2011 - 06:35 PM

hi guys,

I figured out the problem.Normally, by default Linux want to log as administrator or root to the system in order to prevent unnecessary changes to the system.

we can login as root by
following commands
sudo bash or sudo -s
then give the password
now u have log as root. therefor su command can now be run.


cheers,
menuka

This post has been edited by menukadevinda: 02 September 2011 - 06:36 PM

Was This Post Helpful? 0
  • +
  • -

#5 Gorian   User is offline

  • ninja DIC
  • member icon


Reputation: 156
  • View blog
  • Posts: 1,856
  • Joined: 28-June 08

Re: authentication failure in linux

Posted 07 September 2011 - 09:22 AM

or user sudo su

if you are privileged user, then it will use the privileges of the user to su, instead of root. This will make you root, and you can then use passwd to set/change the root password.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1