Re: [CentOS] Strange su behavior after installing latest CentOS updates

2012-06-15 Thread Alfred von Campe
On Jun 15, 2012, at 17:11, Karanbir Singh wrote: > please file this at bugs.centos.org - so we can make sure its not an > issue we introduced. Done: issue number 0005778 has been filed. Alfred ___ CentOS mailing list CentOS@centos.org http://lists.cent

Re: [CentOS] Strange su behavior after installing latest CentOS updates

2012-06-15 Thread Karanbir Singh
On 06/15/2012 08:09 PM, Alfred von Campe wrote: > > Thanks, that's a good idea. Unfortunately, I don't have time to do this > today. I did, however, track this down to the root cause. The user I was > changing to was using tcsh as their shell (like many of our users are), and > this problem

Re: [CentOS] Strange su behavior after installing latest CentOS updates

2012-06-15 Thread Alfred von Campe
On Jun 15, 2012, at 14:52, Leonard den Ottolander wrote: > Thanks for the heads up, but you should really take issues like this > upstream. There's nothing the CentOS can or at least will do as they > rebuild upstream ad verbatim. Try the RHEL 6 mailing list: > https://www.redhat.com/mailman/listi

Re: [CentOS] Strange su behavior after installing latest CentOS updates

2012-06-15 Thread Leonard den Ottolander
Hello ALfred, On Fri, 2012-06-15 at 13:14 -0400, Alfred von Campe wrote: > I did a "yum update" on my CentOS 6 systems yesterday for the first time > in about a month and now have some automated processes failing because > the PATH is not set up correctly when using "su". Thanks for the heads up,

[CentOS] Strange su behavior after installing latest CentOS updates

2012-06-15 Thread Alfred von Campe
I did a "yum update" on my CentOS 6 systems yesterday for the first time in about a month and now have some automated processes failing because the PATH is not set up correctly when using "su". The problem is very easy to see by comparing the output of the following two commands: # su - -

Re: [CentOS] strange su behavior

2010-03-10 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 10.03.2010 20:23, schrieb Tom H: >>> Do you have any sudo call from your /etc or /etc/skel bashrc or >>> profile...? >> Yes, I do have in /etc/bashrc: >> sudo -l > > Unless you already understood: > su - "make the shell

Re: [CentOS] strange su behavior

2010-03-10 Thread Tom H
>> Do you have any sudo call from your /etc or /etc/skel bashrc or >> profile...? > Yes, I do have in /etc/bashrc: > sudo -l Unless you already understood:   su -  "make the shell a login shell"   so sudo -l  in bashrc is executed, which asks for the user's password

Re: [CentOS] strange su behavior

2010-03-10 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 10.03.2010 18:26, schrieb Tony Schreiner: > > On Mar 10, 2010, at 12:12 PM, Uwe Kiewel wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Am 09.03.2010 22:22, schrieb Tom H: >>> Do you have any sudo call from your /etc or /etc/

Re: [CentOS] strange su behavior

2010-03-10 Thread John Doe
From: Uwe Kiewel > > lists the commands that you are allowed to run with sudo > That is clear to me, but why does this command request the password? Security? Maybe they don't want someone passing by to find out what this user can run through sudo... JD ___

Re: [CentOS] strange su behavior

2010-03-10 Thread Tony Schreiner
On Mar 10, 2010, at 12:12 PM, Uwe Kiewel wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Am 09.03.2010 22:22, schrieb Tom H: >> Do you have any sudo call from your /etc or /etc/skel bashrc or >> profile...? > Yes, I do have in /etc/bashrc: > sudo -l Unless you

Re: [CentOS] strange su behavior

2010-03-10 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 09.03.2010 22:22, schrieb Tom H: > Do you have any sudo call from your /etc or /etc/skel bashrc or > profile...? Yes, I do have in /etc/bashrc: sudo -l >>> Unless you already understood: >>> su - "make the shell a login shell"

Re: [CentOS] strange su behavior

2010-03-09 Thread Tom H
Do you have any sudo call from your /etc or /etc/skel bashrc or profile...? >>> Yes, I do have in /etc/bashrc: >>> sudo -l >> Unless you already understood: >>   su -  "make the shell a login shell" >>   so sudo -l  in bashrc is executed, which asks for the user's password > Understood, who is

Re: [CentOS] strange su behavior

2010-03-09 Thread Bowie Bailey
Uwe Kiewel wrote: > Am 09.03.2010 17:32, schrieb John Doe: > > From: Uwe (ML) Kiewel > >>> Do you have any sudo call from your /etc or /etc/skel bashrc or > profile...? > >> Yes, I do have in /etc/bashrc: > >> sudo -l > > Unless you already understood: > > su - "make the shell a login shell" >

Re: [CentOS] strange su behavior

2010-03-09 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 09.03.2010 17:32, schrieb John Doe: > From: Uwe (ML) Kiewel >>> Do you have any sudo call from your /etc or /etc/skel bashrc or profile...? >> Yes, I do have in /etc/bashrc: >> sudo -l > > Unless you already understood: > su - "make the shell a

Re: [CentOS] strange su behavior

2010-03-09 Thread John Doe
From: Uwe (ML) Kiewel > >Do you have any sudo call from your /etc or /etc/skel bashrc or profile...? > Yes, I do have in /etc/bashrc: > sudo -l Unless you already understood: su - "make the shell a login shell" so sudo -l in bashrc is executed, which asks for the user's password JD

Re: [CentOS] strange su behavior

2010-03-09 Thread Uwe (ML) Kiewel
From: Uwe Kiewel >> If I am root and want to change the user to a non-root user, the system >> prompts me for a password: >> [r...@halifax ~]# useradd test00 >> [r...@halifax ~]# su - test00 >> We trust you have received the usual lecture from the local System >> Administrator. It usually boils d

Re: [CentOS] strange su behavior

2010-03-09 Thread John Doe
From: Uwe Kiewel > If I am root and want to change the user to a non-root user, the system > prompts me for a password: > [r...@halifax ~]# useradd test00 > [r...@halifax ~]# su - test00 > We trust you have received the usual lecture from the local System > Administrator. It usually boils down to

Re: [CentOS] strange su behavior

2010-03-08 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 09.03.2010 02:16, schrieb Spiro Harvey: > On Mon, 8 Mar 2010 21:28:44 +0100 > Uwe Kiewel wrote: > >>> that almost sounds like sudo, not su. is it aliased or something? >> I don't think so: >> [r...@halifax ~]# file /bin/su > > You've confirmed

Re: [CentOS] strange su behavior

2010-03-08 Thread Spiro Harvey
On Mon, 8 Mar 2010 21:28:44 +0100 Uwe Kiewel wrote: > > that almost sounds like sudo, not su. is it aliased or something? > I don't think so: > [r...@halifax ~]# file /bin/su You've confirmed it's not symlinked, but is it aliased? Type "alias" and see the result. -- Spiro Harvey

Re: [CentOS] strange su behavior

2010-03-08 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 08.03.2010 22:03, schrieb Dan Burkland: >> [r...@halifax ~]# useradd test00 >> [r...@halifax ~]# su - test00 >> >> >> We trust you have received the usual lecture from the local System >> Administrator. It usually boils down to these three things

Re: [CentOS] strange su behavior

2010-03-08 Thread Dan Burkland
> -Original Message- > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On > Behalf Of Uwe Kiewel > Sent: Monday, March 08, 2010 2:17 PM > To: centos@centos.org > Subject: [CentOS] strange su behavior > > -BEGIN PGP SIGNED MESSAGE- >

Re: [CentOS] strange su behavior

2010-03-08 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 08.03.2010 21:21, schrieb John R Pierce: > Uwe Kiewel wrote: >> [r...@halifax ~]# useradd test00 >> [r...@halifax ~]# su - test00 >> >> >> We trust you have received the usual lecture from the local System >> Administrator. It usually boils down to

Re: [CentOS] strange su behavior

2010-03-08 Thread Don Krause
> > > Hi, > > I have a strange su hehavior on a CentOS 5.4 32Bit installation in a > VMware ESXi virtualizied environment: > > If I am root and want to change the user to a non-root user, the system > prompts me for a password: > > > [r...@halifax ~]# useradd test00 > [r...@halifax ~]# su - t

Re: [CentOS] strange su behavior

2010-03-08 Thread John R Pierce
Uwe Kiewel wrote: > [r...@halifax ~]# useradd test00 > [r...@halifax ~]# su - test00 > > > We trust you have received the usual lecture from the local System > Administrator. It usually boils down to these three things: > > #1) Respect the privacy of others. > #2) Think before you type. >

[CentOS] strange su behavior

2010-03-08 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a strange su hehavior on a CentOS 5.4 32Bit installation in a VMware ESXi virtualizied environment: If I am root and want to change the user to a non-root user, the system prompts me for a password: [r...@halifax ~]# useradd test00 [r...