problems with command su

problems with command su

am 07.12.2004 17:01:55 von vrodriguez

Hello, I'm new user in linux community. I have installed in my computer
mandrake linux 10.0

Sometime ago it was working normal without problems. After that I changed the
root password, always that I want to change something in the configuration of
the system, I run su from other user (vladimir).

But the system says 'invalid password'. I tried the old, and new password, but
it doesn't work

I have to logout, and login with root to change some configurations.

Anyone could help me!!

thank you

Vladimir
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: problems with command su

am 07.12.2004 19:16:15 von kaushal

Im not sure but make sure your 'su' command has not been aliased by
someone/thing.
[sfaf@sdf]alias

If u find an entry for su there,type 'unalaias su' and it should work.
gudlk.
kaushal.
rocsys.
On Tue, 2004-12-07 at 21:31, Vladimir E. Rodriguez wrote:
> Hello, I'm new user in linux community. I have installed in my computer
> mandrake linux 10.0
>
> Sometime ago it was working normal without problems. After that I changed the
> root password, always that I want to change something in the configuration of
> the system, I run su from other user (vladimir).
>
> But the system says 'invalid password'. I tried the old, and new password, but
> it doesn't work
>
> I have to logout, and login with root to change some configurations.
>
> Anyone could help me!!
>
> thank you
>
> Vladimir
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: problems with command su

am 07.12.2004 22:31:32 von vrodriguez

No, I don't have aliases, I have checked, but I haven't aliases.

Please could anybody could help me?

Thanks

Vladimir
On Tuesday 07 December 2004 13:16, kaushal wrote:
> Im not sure but make sure your 'su' command has not been aliased by
> someone/thing.
> [sfaf@sdf]alias
>
> If u find an entry for su there,type 'unalaias su' and it should work.
> gudlk.
> kaushal.
> rocsys.
>
> On Tue, 2004-12-07 at 21:31, Vladimir E. Rodriguez wrote:
> > Hello, I'm new user in linux community. I have installed in my computer
> > mandrake linux 10.0
> >
> > Sometime ago it was working normal without problems. After that I changed
> > the root password, always that I want to change something in the
> > configuration of the system, I run su from other user (vladimir).
> >
> > But the system says 'invalid password'. I tried the old, and new
> > password, but it doesn't work
> >
> > I have to logout, and login with root to change some configurations.
> >
> > Anyone could help me!!
> >
> > thank you
> >
> > Vladimir
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: problems with command su

am 07.12.2004 23:46:59 von Andreas Unterkircher

please post what happens in the logs when your "su -" command failed.

depending on your distribution you could find that according info in
/var/log/messages,
/var/log/syslog, /var/log/secure, /var/log/auth.log,... or something
else - sorry - don't
know exactly for mandrake....

if u have installed the ssh-daemon - can u run the command "ssh
root@localhost"
and check if the login would succeed?

any special auth mechanism? ldap?

Andi

Vladimir E. Rodriguez wrote:

>No, I don't have aliases, I have checked, but I haven't aliases.
>
>Please could anybody could help me?
>
>Thanks
>
>Vladimir
>On Tuesday 07 December 2004 13:16, kaushal wrote:
>
>
>>Im not sure but make sure your 'su' command has not been aliased by
>>someone/thing.
>>[sfaf@sdf]alias
>>
>>If u find an entry for su there,type 'unalaias su' and it should work.
>>gudlk.
>>kaushal.
>>rocsys.
>>
>>On Tue, 2004-12-07 at 21:31, Vladimir E. Rodriguez wrote:
>>
>>
>>>Hello, I'm new user in linux community. I have installed in my computer
>>>mandrake linux 10.0
>>>
>>>Sometime ago it was working normal without problems. After that I changed
>>>the root password, always that I want to change something in the
>>>configuration of the system, I run su from other user (vladimir).
>>>
>>>But the system says 'invalid password'. I tried the old, and new
>>>password, but it doesn't work
>>>
>>>I have to logout, and login with root to change some configurations.
>>>
>>>Anyone could help me!!
>>>
>>>thank you
>>>
>>>Vladimir
>>>-
>>>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>>>the body of a message to majordomo@vger.kernel.org
>>>More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>>>
>>-
>>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>>the body of a message to majordomo@vger.kernel.org
>>More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: problems with command su

am 08.12.2004 00:17:27 von Niklas Bolander

Some systems requirers a user to be a member of the "wheel" group to be
allowed to su.
Shouldn't be relevant since you could use it before but it might be
worth checking out.

Vladimir E. Rodriguez wrote:

>Sometime ago it was working normal without problems. After that I changed the
>root password, always that I want to change something in the configuration of
>the system, I run su from other user (vladimir).
>
>But the system says 'invalid password'. I tried the old, and new password, but
>it doesn't work
>
>I have to logout, and login with root to change some configurations.
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: problems with command su

am 08.12.2004 01:32:52 von Niklas Bolander

Odd, would you mind posting your pam configuration for su?
Should be "/etc/pam.d/su".

MSc.Vladimir E.Rodr=EDguez wrote:

>Yes, I checked it, but it's not working.
>I run passwd for root, and changed the password nothing more, after th=
at
>the su doesn't work.
>
>Thanks
>
>Vladimir
>Niklas Bolander said:
> =20
>
>>Some systems requirers a user to be a member of the "wheel" group to =
be
>>allowed to su.
>>Shouldn't be relevant since you could use it before but it might be
>>worth checking out.
>>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: problems with command su

am 08.12.2004 10:08:23 von Andrew Kelly

On Tue, 2004-12-07 at 17:01, Vladimir E. Rodriguez wrote:
> Hello, I'm new user in linux community. I have installed in my computer
> mandrake linux 10.0
>
> Sometime ago it was working normal without problems. After that I changed the
> root password, always that I want to change something in the configuration of
> the system, I run su from other user (vladimir).
>
> But the system says 'invalid password'. I tried the old, and new password, but
> it doesn't work
>
> I have to logout, and login with root to change some configurations.
>
> Anyone could help me!!

Just a wild guess, mind you, but that sounds like toggling keyboard
drivers or something. As if at a login prompt a different character set was
being delivered than happens later, once you've logged in.

Try logging in as root, and changing the password to something silly
like 111111. Then try su'ing to root as another user.

Without seeing some of the log/config info that other have requested,
it's just a guessing game, though.

Andy

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: problems with command su

am 08.12.2004 17:18:05 von Atishay Kumar

hi,
try sudo command.
only users listed in /etc/sudoers are allowed to run sudo command. and
u can also specify whether to ask for root password or not. put the
following line /etc/sudoers

username ALL=3D(ALL) NOPASSWD: ALL

username above will be able to issue all commands like root and
without asking password.

see /etc/sudoers for more.

after making entry for username

try "sudo su" command. it should work if entry was for NOPASSWD

atishay
On Wed, 08 Dec 2004 01:32:52 +0100, Niklas Bolander
wrote:
> Odd, would you mind posting your pam configuration for su?
> Should be "/etc/pam.d/su".
>=20
> MSc.Vladimir E.Rodr=EDguez wrote:
>=20
> >Yes, I checked it, but it's not working.
> >I run passwd for root, and changed the password nothing more, after =
that
> >the su doesn't work.
> >
> >Thanks
> >
> >Vladimir
>=20
>=20
> >Niklas Bolander said:
> >
> >
> >>Some systems requirers a user to be a member of the "wheel" group t=
o be
> >>allowed to su.
> >>Shouldn't be relevant since you could use it before but it might be
> >>worth checking out.
> >>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>=20


--=20
:)
Atishay Kumar
Btech, SEM VII
DA-IICT
Gandhinagar - 382009
India
ph: +91 9825383948
/*********************************************************** ***********=
******
* Learn the rules as you would need them to break them properly *
************************************************************ **********=
******/
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html