Get the package for the corrupted file:
Check the integrity of the package:
It will say that /usr/bin/passwd differs in checksum and date.
Mount the "Software 1" CD, or vold mounts it automatically to /cdrom.
Go to the Products directory, there is SUNWcsu/
You can list the archive and partially extract to /tmp by
Good Day
Our HP box was hacked and the passwd file has been altered,there are only 2 user accounts active,and these dont have any administrative rights.I need to edit the passwd file to correct the su and root entries.
Does any body have any suggestions as to how i can do this with out the root... (10 Replies)
Hi,
I am new to UNIX, and have recently installed Suse 9.3. I have been experimenting with all of the commands and have somehow managed to modify the default shell of the root user to an invalid file. Consequently I cannot su to the root user as I receive the 'no such file or directory' error... (2 Replies)
I'm getting the following error after we replaced a failed disk in a mirrored logical volume. We cleared the device entry in ODM before adding the new disk but when we create the mirror we get the following error after running lslv.
0516-022 lslv: Illegal parameter or structure value.... (1 Reply)
Hi,
I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server.
How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
I accidentally changed root shell from /bin/bash to bash in /etc/password, then logged out from root. Now I can't login as root and got "No shell" error, although I have root password. "su -f -s /bin/bash" command does NOT work. There is no GUI interface for this system.
My question: Do I have... (7 Replies)
Hi all ,
i have an issue in netra 20 server
when i boot the system its getting rebooting
and it is giving tha" /etc/name_to_sysnum " file not found
i done
OK> boot -ar
then also not solved
please can any body send the answer ASAP
regards (3 Replies)
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
did a big mistake, changing root entry of /etc/passwd to
root:x:0:0:root:/root:/usr/bin/tmux split-window -v \; attach
as expected, now I can't login as root anymore. sudo ed /etc/passwd etc. doesn't work.
Any idea?
Use code tags to increase readability and follow the rules. (4 Replies)
Discussion started by: dodona
4 Replies
LEARN ABOUT DEBIAN
authen::simple::passwd
Authen::Simple::Passwd(3pm) User Contributed Perl Documentation Authen::Simple::Passwd(3pm)NAME
Authen::Simple::Passwd - Simple Passwd authentication
SYNOPSIS
use Authen::Simple::Passwd;
my $passwd = Authen::Simple::Passwd->new(
path => '/etc/passwd'
);
if ( $passwd->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::Passwd
PerlSetVar AuthenSimplePasswd_path "/etc/passwd"
<Location /protected>
PerlAuthenHandler Authen::Simple::Passwd
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTION
Authenticate against a passwd file.
METHODS
* new
This method takes a hash of parameters. The following options are valid:
* path Path to passwd file to authenticate against. Any standard passwd file that has records seperated with newline and fields seper-
ated by ":" is supported. First field is expected to be username and second field, plain or encrypted password. Required.
path => '/etc/passwd'
path => '/var/www/.htpasswd'
* flock A boolean to enable or disable the usage of "flock()". Defaults to "d_flock" in Config.
flock => 0
* log Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::Passwd')
* authenticate( $username, $password )
Returns true on success and false on failure. Authentication attempts with a username that begins with a hyphen "-" will always return
false.
SEE ALSO
Authen::Simple.
Authen::Simple::Password.
passwd(5).
AUTHOR
Christian Hansen "ch@ngmedia.com"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.8 2008-03-01 Authen::Simple::Passwd(3pm)