R. K. Mehta wrote:
> Dear lists
> I want some particular users could not change their passwd.
> how to do it? pl help.
Hi,
As you must have already read so far,
the passwd utility does not allow it.
And if you don't want to delve into C programming,
then i'd like to suggest a simple wrapper utility.
Place this wrapper utility (appropriately called passwd)
in a directory which is ahead in the PATH of your
normal passwd binary.
Or move your passwd binary somewhere else!
A "simple" wrapper in pseudocode:
Also create a file containing users who can't
change passwords.
<code>
user=first argument;
if (user exists in the file) {
print "You can't change your own password! You need help!";
} else {
call the real passwd binary, passing username as argument;
}
</code>
--
arc_of_descent
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help