search for: pw_gecos

Displaying 20 results from an estimated 30 matches for "pw_gecos".

2001 Feb 28
2
[PATCH]: auth.c (pwcopy): Copy pw_gecos field when build for Cygwin
Hi, the attached patch is very important for Cygwin. I don't know how I could have missed that for months now :-( I hope this can be included in 2.5.1p2. The pw_gecos field in Cygwin's /etc/passwd contains Windows specific authentication informations which let NT domain users logon to a machine without the need to inform the logon server (sshd in our case) about the name of the NT domain. As a side effect you can have a different name under Cygwin than your...
2013 Apr 04
9
[Bug 2086] New: passwd struct does not have pw_gecos member on Android
https://bugzilla.mindrot.org/show_bug.cgi?id=2086 Bug ID: 2086 Summary: passwd struct does not have pw_gecos member on Android Classification: Unclassified Product: Portable OpenSSH Version: 6.2p1 Hardware: All OS: Linux Status: NEW Severity: minor Priority: P5 Component: ssh Assignee: unassigned-bugs at...
2001 Jun 21
1
pw_expire/pw_change in current portable openssh CVS bombs
...1:35:28 2001 +++ misc.c Thu Jun 21 11:36:09 2001 @@ -125,14 +125,10 @@ { struct passwd *copy = xmalloc(sizeof(*copy)); - memset(copy, 0, sizeof(*copy)); + memcpy(copy, pw, sizeof(*copy)); copy->pw_name = xstrdup(pw->pw_name); copy->pw_passwd = xstrdup(pw->pw_passwd); copy->pw_gecos = xstrdup(pw->pw_gecos); - copy->pw_uid = pw->pw_uid; - copy->pw_gid = pw->pw_gid; - copy->pw_expire = pw->pw_expire; - copy->pw_change = pw->pw_change; #ifdef HAVE_PW_CLASS_IN_PASSWD copy->pw_class = xstrdup(pw->pw_class); #endif
2001 Jun 22
1
PATCH: pidfile/sigterm race
If one is using the pidfile as an indicator of sshd's status, it is possible to kill sshd before the sigterm handler gets installed, since the pidfile is written out before the signal handlers are setup. The solution is to simply write the pidfile after the signal handlers are setup. Here's the patch. Rob --- sshd.c.orig Fri Jun 22 11:16:41 2001 +++ sshd.c Fri Jun 22 11:18:32 2001 @@
2005 Oct 13
2
mysql backend create user problem
...ord = <password> bmais:mysql user = root bmais:mysql host = db.bmais.or.id bmais:table = bmais_or_id bmais:domain column = 'bmais.or.id' bmais:username column = pw_name: bmais:nt username column = pw_name: bmais:fullname column = pw_gecos: bmais:lanman pass column = pw_passwd: I assume the fields that are not being specify would follow pdb_mysql default values, isn't it? can someone give pointer what's wrong? pardon my explanation. if anything is unclear, i would be more than happy to elaborate more. Thanks
2003 Dec 14
1
fakepw auth.c question
...s is at the bottom of auth.c. What is it? struct passwd * fakepw(void) { static struct passwd fake; memset(&fake, 0, sizeof(fake)); fake.pw_name = "NOUSER"; fake.pw_passwd = "$2a$06$r3.juUaHZDlIbQaO2dS9FuYxL1W9M81R1Tc92PoSNmzvpEqLkLGrK"; fake.pw_gecos = "NOUSER"; fake.pw_uid = -1; fake.pw_gid = -1; fake.pw_class = ""; fake.pw_dir = "/nonexist"; fake.pw_shell = "/nonexist"; return (&fake); } Default branch: MAIN _____________________________________________________________...
2002 Mar 20
1
privsep
i think our strategy for privsep is to just keep portable sync'd closely with openbsd's tree, even though things will be broken wrt privsep for many platforms. then we just get primary one's working and work out issues as we go along. i'll start to work on sun and hp-ux again tomorrow.
2003 May 19
0
[PATCH] getpwnam() implementation in tftpd.c
...; +#else +#include <sys/types.h> +#include <features.h> +#include <stdio.h> + +/* The passwd structure. */ +struct passwd +{ + char *pw_name; /* Username. */ + char *pw_passwd; /* 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. */ +}; + +/* to prevent a compiler warning */ +struct passwd *__getpwent(int pwd_fd); +struct passwd *getpwnam(const char *name); + +#define PWD_BUFFER_SIZE 256 +struct passwd *__getpwent(int pwd_f...
2016 Dec 28
2
Help with httpd userdir recovery
...bufsize, &result); if (result == NULL) { if (s == 0) printf("Not found\n"); else { errno = s; perror("getpwnam_r"); } exit(EXIT_FAILURE); } printf("Name: %s; UID: %ld GID: %ld\n", pwd.pw_gecos, (long) pwd.pw_uid, (long) pwd.pw_gid); /* process is running as root, drop privileges */ if (getuid() == 0) { if (setgid(pwd.pw_gid) != 0) { perror("setgid: Unable to drop group privileges"); exit(EXIT_FAILURE); } if (setuid(pwd.p...
2013 Jul 02
1
[patch/cygwin]: Fix documentation
...files! It always uses the value of the pw_dir field in /etc/passwd as the home directory. If no home diretory is set in /etc/passwd, the root directory is used instead! -You may use all features of the CYGWIN=ntsec setting the same -way as they are used by Cygwin's login(1) port: - - The pw_gecos field may contain an additional field, that begins - with (upper case!) "U-", followed by the domain and the username - separated by a backslash. - CAUTION: The SID _must_ remain the _last_ field in pw_gecos! - BTW: The field separator in pw_gecos is the comma. - The username in pw_n...
2018 Oct 04
2
vpopmail
...sql -u root -p`cat vpoppasswd` vpopmail > yeilds > Field Type Null Key Default Extra > pw_name char(32) NO PRI NULL > pw_passwd char(40) YES NULL > pw_uid int(11) YES NULL > pw_gid int(11) YES NULL > pw_gecos char(48) YES NULL > pw_dir char(160) YES NULL > pw_shell char(20) YES NULL > pw_clear_passwd char(16) YES NULL > > As you can see there is no 'pw_domain' field from which to draw. > &...
2016 Dec 13
0
replication and backend vpopmail
...-+-----------+------+-----+---------+-------+ | pw_name | char(32) | NO | PRI | | | | pw_passwd | char(40) | YES | | NULL | | | pw_uid | int(11) | YES | | NULL | | | pw_gid | int(11) | YES | | NULL | | | pw_gecos | char(48) | YES | | NULL | | | pw_dir | char(160) | YES | | NULL | | | pw_shell | char(20) | YES | | NULL | | | pw_clear_passwd | char(16) | YES | | NULL | | +-----------------+-----------+------+-----+---------+----...
2007 Feb 06
1
Problem with vpopmail auth
...---+-------+ | pw_name | char(32) | | PRI | | | | pw_domain | char(64) | | PRI | | | | pw_passwd | char(40) | YES | | NULL | | | pw_uid | int(11) | YES | | NULL | | | pw_gid | int(11) | YES | | NULL | | | pw_gecos | char(48) | YES | | NULL | | | pw_dir | char(160) | YES | | NULL | | | pw_shell | char(20) | YES | | NULL | | +-----------+-----------+------+-----+---------+-------+
2002 Jun 25
0
[Bug 298] New: sshd fails to set user context, preventing all logins, also setgroups is failing
...ssion.c:1164 1164 if (setusercontext(lc, pw, pw->pw_uid, (gdb) print lc $1 = (login_cap_t *) 0x0 (gdb) print *pw $2 = {pw_name = 0x8141000 "sshd", pw_passwd = 0x8141005 "", pw_uid = 10658, pw_gid = 1010, pw_change = 0, pw_class = 0x8141007 "", pw_gecos = 0x8141008 "SSH,,,", pw_dir = 0x814100f "/var/empty", pw_shell = 0x814101a "nologin", pw_expire = 0} Setting "Compression no" has no effect Setting "UsePrivilegeSeparation no" has no effect Tried several versions of openssh (including current ssh...
2008 Jan 23
0
strange issues with pam_winbind and sudo
...ypes.h> #include <pwd.h> #include <stdio.h> int main(int argc, char** argv) { struct passwd * whatevs = getpwent(); if (whatevs) { printf("%s:%s:%d:%d:%s:%s:%s\n", whatevs->pw_name, whatevs->pw_passwd, whatevs->pw_uid, whatevs->pw_gid, whatevs->pw_gecos, whatevs->pw_dir, whatevs->pw_shell); } else { printf("crap!!!! null\n"); } return 0; } Here is my smb.conf: [global] workgroup=VANDERBILT server string = Lamborghini Metaclinic (RHEL5.1) netbios name = lamborghini realm = DS.VANDERBILT.EDU preferred master...
2016 Dec 28
0
Help with httpd userdir recovery
...if (s == 0) > printf("Not found\n"); > else { > errno = s; > perror("getpwnam_r"); > } > exit(EXIT_FAILURE); > } > > printf("Name: %s; UID: %ld GID: %ld\n", pwd.pw_gecos, (long) > pwd.pw_uid, (long) pwd.pw_gid); > > /* process is running as root, drop privileges */ > > if (getuid() == 0) { > if (setgid(pwd.pw_gid) != 0) { > perror("setgid: Unable to drop group privileges"); > exit(EXIT_F...
2004 Sep 22
3
problems with cvs version and vpopmail
Hi, I have tried compiling the latest cvs version of dovecot on my FreeBSD 5.2.1-release box with the ports version of vpopmail: 5.4.3_1. In the configuration file I have two auth paragraphs, one for passwd authentication and one for vpopmail-auth: auth vpopmail { mechanisms = plain userdb = vpopmail passdb = vpopmail user = vpopmail } But the vpopmail dosn'nt work. I got the
2013 Jul 25
11
Call for testing: OpenSSH-6.3
...orms that don't have them. bz#2085 * Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. bz#2085 * Add a null implementation of endgrent for platforms that don't have it (eg Android) bz#2087 * Support platforms, such as Android, that lack struct passwd.pw_gecos. bz#2086 Reporting Bugs: =============== - Please read http://www.openssh.com/report.html Security bugs should be reported directly to openssh at openssh.com OpenSSH is brought to you by Markus Friedl, Niels Provos, Theo de Raadt, Kevin Steves, Damien Miller, Darren Tucker, Jason McIntyre...
2018 Oct 04
0
vpopmail
...quot;describe domain_tld" | mysql -u root -p`cat vpoppasswd` vpopmail yeilds Field?? Type??? Null??? Key???? Default Extra pw_name char(32)??????? NO????? PRI???? NULL pw_passwd?????? char(40)??????? YES???????????? NULL pw_uid? int(11) YES???????????? NULL pw_gid? int(11) YES???????????? NULL pw_gecos??????? char(48)??????? YES???????????? NULL pw_dir? char(160)?????? YES???????????? NULL pw_shell??????? char(20)??????? YES???????????? NULL pw_clear_passwd char(16)??????? YES???????????? NULL As you can see there is no 'pw_domain' field from which to draw. Again we are limited to the p...
2013 Sep 13
0
Announce: OpenSSH 6.3 released
...orms that don't have them. bz#2085 * Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. bz#2085 * Add a null implementation of endgrent for platforms that don't have it (eg Android) bz#2087 * Support platforms, such as Android, that lack struct passwd.pw_gecos. bz#2086 Checksums: ========== - SHA1 (openssh-6.3.tar.gz) = 8a6ef99ffc80c19e9afe9fe1e857370f6adcf450 - SHA1 (openssh-6.3p1.tar.gz) = 70845ca79474258cab29dbefae13d93e41a83ccb Reporting Bugs: =============== - Please read http://www.openssh.com/report.html Security bugs should be report...