Re: Chage script for Linux servers?



On Wed, 20 Dec 2006 11:33:14 -0500, Jerry Stuckle wrote:

Ivan Marsh wrote:
On Tue, 19 Dec 2006 22:19:11 -0800, pangea33 wrote:


Ivan Marsh wrote:

Hey folks,

I'm looking for a script that allows control of account expiration
dates using chage under Linux so non admins can control account
expiration of client accounts. Anyone ever written anything like that?

This is definitely not something you're capable of accomplishing simply
by using PHP. The PHP engine is running on the Linux box, so it's
limited by the security configuration of that server. Including the
security settings that keep non-admin users from modifying settings only
accessible by administrators. Sorry, man.


Are you suggesting it's not possible to shell out and run a sudo command
from a PHP script?

I have complete control over the server in question.

You can, but you're creating a security whole in your server the size of
the Grand Canyon.

Of that I have no doubt... but this isn't a public server so I only have
to worry about "internal" issues.

.



Relevant Pages

  • Re: Chage script for Linux servers?
    ... I'm looking for a script that allows control of account expiration ... I have complete control over the server in question. ...
    (comp.lang.php)
  • Re: How to allow users to create groups and shares
    ... I delegated the control of the OU to the group with the test user ... or file server with my test account I get the message that "To log on ... to this remote computer you must have Terminal Server User Access ...
    (microsoft.public.windows.server.active_directory)
  • Re: How grant rights to add servers to domain into a particular OU
    ... It is a Security Group that I am using to Delegate Control to. ... Add the appropriate user account and click Next. ... Click Computer Objects and Create selected objects in this folder. ... I have given the OU Server Admins group "Special Permissions" of Full ...
    (microsoft.public.windows.server.active_directory)
  • Re: Just copy the .ssh directory?
    ... By just copying the .ssh directory, ... the second account, and append your new public key to that authized_keys ... file on your server. ... > authentication to a server running linux, but I have a strange problem ...
    (comp.security.ssh)
  • Re: User access & security
    ... If there is a user with non-root access to their account, ... to do (permissions permissions permissions)). ... to your users and your apache server ... Linux to such an extent that any user access at all is guaranteed to ...
    (comp.os.linux.security)