getusershell.c (60c80770) getusershell.c (da2e3ebd)
1/*
1/*
2 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6#pragma ident "%Z%%M% %I% %E% SMI"
7
8/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
9/* All Rights Reserved */
10

--- 15 unchanged lines hidden (view full) ---

26#include <sys/file.h>
27#include "libc.h"
28#include <unistd.h>
29
30#define SHELLS "/etc/shells"
31
32/*
33 * Do not add local shells here. They should be added in /etc/shells
3 * Use is subject to license terms.
4 */
5
6#pragma ident "%Z%%M% %I% %E% SMI"
7
8/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
9/* All Rights Reserved */
10

--- 15 unchanged lines hidden (view full) ---

26#include <sys/file.h>
27#include "libc.h"
28#include <unistd.h>
29
30#define SHELLS "/etc/shells"
31
32/*
33 * Do not add local shells here. They should be added in /etc/shells
34 *
35 * Do not add restricted shells:
36 * Shells returned by getusershell traditionally allow:
37 * - users to change away from (i.e., if you have an rksh in
38 * getusershell(), then users can change their shell to ksh)
39 * - by default, ftp in is allowed only for shells returned by
40 * getusershell(); since FTP has no restrictions on directory
41 * movement, adding rksh to getusershell() would defeat that
42 * protection.
34 */
35const char *okshells[] = {
36 "/usr/bin/sh",
37 "/usr/bin/csh",
38 "/usr/bin/ksh",
43 */
44const char *okshells[] = {
45 "/usr/bin/sh",
46 "/usr/bin/csh",
47 "/usr/bin/ksh",
48 "/usr/bin/ksh93",
39 "/usr/bin/jsh",
40 "/bin/sh",
41 "/bin/csh",
42 "/bin/ksh",
49 "/usr/bin/jsh",
50 "/bin/sh",
51 "/bin/csh",
52 "/bin/ksh",
53 "/bin/ksh93",
43 "/bin/jsh",
44 "/sbin/sh",
45 "/sbin/jsh",
46 "/usr/bin/pfsh",
47 "/usr/bin/pfcsh",
48 "/usr/bin/pfksh",
49 "/usr/bin/bash",
50 "/usr/bin/tcsh",

--- 108 unchanged lines hidden ---
54 "/bin/jsh",
55 "/sbin/sh",
56 "/sbin/jsh",
57 "/usr/bin/pfsh",
58 "/usr/bin/pfcsh",
59 "/usr/bin/pfksh",
60 "/usr/bin/bash",
61 "/usr/bin/tcsh",

--- 108 unchanged lines hidden ---