[OT] sudo, why not su?

Magnus Therning magnus at therning.org
Fri Aug 5 23:47:36 UTC 2005


On Fri, Aug 05, 2005 at 08:56:14PM +0200, J.Markoll wrote:
>Magnus Therning a écrit :
>>Is there any way of configuring pam in such a way that su behaves like
>>sudo, i.e. asks for the user's password before executing something as
>>root?
>>/M
>Hello,
>See with aliasing.
>http://www.samspublishing.com/articles/article.asp?p=169504&seqNum=7&rl=1

OK. I suppose I should have been a bit more explicit.

I'm _not_ looking for 'alias' or 'ln'. I'm not interested in writing
'su' and having 'sudo' executing. I want to know if there's a way to run
'su', the binary, but have it behave like sudo.

I can configure pam in such a way that if a user in a specific group
(often 'wheel' is used for this) calls 'su' then no root password is
required. Actually no password is required at all!

So, I ask again. Is there a way to configure my system in such a way
that 'su' asks for the caller's password?

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Unreadable code,
Why would anyone use it?
Learn a better way.
     -- Geoff Kuenning's contribution to the 2004 Perl Haiku Contest,
        Haikus about Perl - 'Dishonerable Mention' winner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050806/314c8cc6/attachment.sig>


More information about the ubuntu-users mailing list