09-02-2010
passwd -f Test
see man page for details.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am not getting login prompt when connecting to the red hat linux 7.2 server from windows machine and i am unable to login to server, after giving username at login prompt cusor blinks, no respnse. I can able to login to server thro ssh.
Pl can i know how to solve this problem.
Very badly... (4 Replies)
Discussion started by: bache_gowda
4 Replies
2. AIX
I've an LPAR set up on a P690. The LPAR ran AIX v5.2. I then did an upgrade (using the migration option) to AIX v5.3. I've now encountered the problem that, at the console, I cannot log in as root (or as anyone else that matter). I get the login prompt, enter "root " and then the shell returns to... (1 Reply)
Discussion started by: morgan_g
1 Replies
3. Solaris
Hi Gurus
I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails.
Resetting my password reenables the keys.
Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies
4. Solaris
Hi,
I am using DSEE 6.3 to authenticate and authorize my Solaris 9 and 10 users. Everything works fine except password expiration. I use built-in global password policy for all users. The policy works well. However I could not find the right pam configuration in order to prompt users at ssh... (2 Replies)
Discussion started by: niyazi
2 Replies
5. Shell Programming and Scripting
Hi,
How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php).
Any help or hint appreciated.
Thanks,
SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies
6. Red Hat
Hi,
we have a server that runs on redhat linux. It was working fine until last year and all of sudden we are not able to ssh on to that server. we are getting the ping response but not getting the login prompt when tried to connect via ssh.
Port 22 is opened and i have tested it out using... (6 Replies)
Discussion started by: phanidhar6039
6 Replies
7. Solaris
Hi All,
I am not able to get the command prompt after entering the login password on solaris server
Only access is through console.
Server type : sun4u sparc SUNW,Netra-T12
bsnl-north-in > ssh 10.147.17.207 jtoin
Connecting to 10.147.17.207 as user jtoin
Password:
Last login: Wed Mar 5... (1 Reply)
Discussion started by: sandeep_kmehra
1 Replies
8. HP-UX
Hi, I'm a normal user in hp-ux box. today i'm unable to get prompt after i successfully logged in into the hp-ux box. what could be the problem? what should should i check? (4 Replies)
Discussion started by: sam_bd
4 Replies
9. HP-UX
When I login as root or any user it prompts for the Login again. never prompts for password.login: root
Login incorrect
login:
Does not matter what user login I try I get the same response (3 Replies)
Discussion started by: KMRWHUNTER
3 Replies
LEARN ABOUT CENTOS
putpwent
PUTPWENT(3) Linux Programmer's Manual PUTPWENT(3)
NAME
putpwent - write a password file entry
SYNOPSIS
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
int putpwent(const struct passwd *p, FILE *stream);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
putpwent(): _SVID_SOURCE
DESCRIPTION
The putpwent() function writes a password entry from the structure p in the file associated with stream.
The passwd structure is defined in <pwd.h> as follows:
struct passwd {
char *pw_name; /* username */
char *pw_passwd; /* user password */
uid_t pw_uid; /* user ID */
gid_t pw_gid; /* group ID */
char *pw_gecos; /* real name */
char *pw_dir; /* home directory */
char *pw_shell; /* shell program */
};
RETURN VALUE
The putpwent() function returns 0 on success, or -1 if an error occurs. In the event of an error, errno is set to indicate the cause.
ERRORS
EINVAL Invalid (NULL) argument given.
CONFORMING TO
SVr4.
SEE ALSO
endpwent(3), fgetpwent(3), getpw(3), getpwent(3), getpwnam(3), getpwuid(3), setpwent(3)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
2013-04-19 PUTPWENT(3)