1 '\" te
2 .\" Copyright (c) 2013 Gary Mills
3 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
4 .\" Copyright 1989 AT&T
5 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
7 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
8 .TH PASSWD 4 "Apr 16, 2013"
9 .SH NAME
10 passwd \- password file
11 .SH SYNOPSIS
12 .LP
13 .nf
14 \fB/etc/passwd\fR
15 .fi
16
17 .SH DESCRIPTION
18 .sp
19 .LP
20 The file \fB/etc/passwd\fR is a local source of information about users'
21 accounts. The password file can be used in conjunction with other naming
22 sources, such as the \fBNIS\fR maps \fBpasswd.byname\fR and \fBpasswd.bygid\fR,
23 data from the \fBNIS+\fR \fBpasswd\fR table, or password data stored on an LDAP
24 server. Programs use the \fBgetpwnam\fR(3C) routines to access this
25 information.
26 .sp
27 .LP
28 Each \fBpasswd\fR entry is a single line of the form:
29 .sp
30 .in +2
31 .nf
32 \fIusername\fR\fB:\fR\fIpassword\fR\fB:\fR\fIuid\fR\fB:\fR
33 \fIgid\fR\fB:\fR\fIgcos-field\fR\fB:\fR\fIhome-dir\fR\fB:\fR
34 \fIlogin-shell\fR
35 .fi
36 .in -2
37 .sp
38
289 root:##root:0:1:Super-User:/:/sbin/sh
290 fred:##fred:508:10:& Fredericks:/usr2/fred:/bin/csh
291 +john:
292 +@documentation:no-login:
293 +::::Guest
294 .fi
295 .in -2
296 .sp
297
298 .sp
299 .LP
300 In this example, there are specific entries for users \fBroot\fR and
301 \fBfred\fR, to assure that they can log in even when the system is running
302 standalone. The user \fBjohn\fR will have his password entry in the naming
303 service source incorporated without change, anyone in the netgroup
304 \fBdocumentation\fR will have their password field disabled, and anyone else
305 will be able to log in with their usual password, shell, and home directory,
306 but with a \fIgcos\fR field of \fBGuest\fR
307
308 .SH FILES
309 .sp
310 .ne 2
311 .na
312 \fB\fB/etc/nsswitch.conf\fR\fR
313 .ad
314 .RS 22n
315
316 .RE
317
318 .sp
319 .ne 2
320 .na
321 \fB\fB/etc/passwd\fR\fR
322 .ad
323 .RS 22n
324
325 .RE
326
327 .sp
328 .ne 2
329 .na
330 \fB\fB/etc/shadow\fR\fR
331 .ad
332 .RS 22n
333
334 .RE
335
336 .SH SEE ALSO
337 .sp
338 .LP
339 \fBchgrp\fR(1), \fBchown\fR(1), \fBfinger\fR(1), \fBgroups\fR(1),
340 \fBlogin\fR(1), \fBnewgrp\fR(1), \fBnispasswd\fR(1), \fBpasswd\fR(1),
341 \fBsh\fR(1), \fBsort\fR(1), \fBdomainname\fR(1M), \fBgetent\fR(1M),
342 \fBin.ftpd\fR(1M), \fBpassmgmt\fR(1M), \fBpwck\fR(1M), \fBpwconv\fR(1M),
343 \fBsu\fR(1M), \fBuseradd\fR(1M), \fBuserdel\fR(1M), \fBusermod\fR(1M),
344 \fBa64l\fR(3C), \fBcrypt\fR(3C), \fBgetpw\fR(3C), \fBgetpwnam\fR(3C),
345 \fBgetspnam\fR(3C), \fBputpwent\fR(3C), \fBgroup\fR(4), \fBhosts.equiv\fR(4),
346 \fBnsswitch.conf\fR(4), \fBshadow\fR(4), \fBenviron\fR(5),
347 \fBunistd.h\fR(3HEAD)
348 .sp
349 .LP
350 \fISystem Administration Guide: Basic Administration\fR
|
1 '\" te
2 .\" Copyright (c) 2013 Gary Mills
3 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
4 .\" Copyright 1989 AT&T
5 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
7 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
8 .TH PASSWD 4 "Apr 16, 2013"
9 .SH NAME
10 passwd \- password file
11 .SH SYNOPSIS
12 .LP
13 .nf
14 \fB/etc/passwd\fR
15 .fi
16
17 .SH DESCRIPTION
18 .LP
19 The file \fB/etc/passwd\fR is a local source of information about users'
20 accounts. The password file can be used in conjunction with other naming
21 sources, such as the \fBNIS\fR maps \fBpasswd.byname\fR and \fBpasswd.bygid\fR,
22 data from the \fBNIS+\fR \fBpasswd\fR table, or password data stored on an LDAP
23 server. Programs use the \fBgetpwnam\fR(3C) routines to access this
24 information.
25 .sp
26 .LP
27 Each \fBpasswd\fR entry is a single line of the form:
28 .sp
29 .in +2
30 .nf
31 \fIusername\fR\fB:\fR\fIpassword\fR\fB:\fR\fIuid\fR\fB:\fR
32 \fIgid\fR\fB:\fR\fIgcos-field\fR\fB:\fR\fIhome-dir\fR\fB:\fR
33 \fIlogin-shell\fR
34 .fi
35 .in -2
36 .sp
37
288 root:##root:0:1:Super-User:/:/sbin/sh
289 fred:##fred:508:10:& Fredericks:/usr2/fred:/bin/csh
290 +john:
291 +@documentation:no-login:
292 +::::Guest
293 .fi
294 .in -2
295 .sp
296
297 .sp
298 .LP
299 In this example, there are specific entries for users \fBroot\fR and
300 \fBfred\fR, to assure that they can log in even when the system is running
301 standalone. The user \fBjohn\fR will have his password entry in the naming
302 service source incorporated without change, anyone in the netgroup
303 \fBdocumentation\fR will have their password field disabled, and anyone else
304 will be able to log in with their usual password, shell, and home directory,
305 but with a \fIgcos\fR field of \fBGuest\fR
306
307 .SH FILES
308 .ne 2
309 .na
310 \fB\fB/etc/nsswitch.conf\fR\fR
311 .ad
312 .RS 22n
313
314 .RE
315
316 .sp
317 .ne 2
318 .na
319 \fB\fB/etc/passwd\fR\fR
320 .ad
321 .RS 22n
322
323 .RE
324
325 .sp
326 .ne 2
327 .na
328 \fB\fB/etc/shadow\fR\fR
329 .ad
330 .RS 22n
331
332 .RE
333
334 .SH SEE ALSO
335 .LP
336 \fBchgrp\fR(1), \fBchown\fR(1), \fBfinger\fR(1), \fBgroups\fR(1),
337 \fBlogin\fR(1), \fBnewgrp\fR(1), \fBnispasswd\fR(1), \fBpasswd\fR(1),
338 \fBsh\fR(1), \fBsort\fR(1), \fBdomainname\fR(1M), \fBgetent\fR(1M),
339 \fBpassmgmt\fR(1M), \fBpwck\fR(1M), \fBpwconv\fR(1M),
340 \fBsu\fR(1M), \fBuseradd\fR(1M), \fBuserdel\fR(1M), \fBusermod\fR(1M),
341 \fBa64l\fR(3C), \fBcrypt\fR(3C), \fBgetpw\fR(3C), \fBgetpwnam\fR(3C),
342 \fBgetspnam\fR(3C), \fBputpwent\fR(3C), \fBgroup\fR(4), \fBhosts.equiv\fR(4),
343 \fBnsswitch.conf\fR(4), \fBshadow\fR(4), \fBenviron\fR(5),
344 \fBunistd.h\fR(3HEAD)
345 .sp
346 .LP
347 \fISystem Administration Guide: Basic Administration\fR
|