Unix and Linux Discussions Tagged with shells |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
5,165 |
Shell Programming and Scripting |
|
|
|
6 |
3,217 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,661 |
Cybersecurity |
|
|
|
2 |
4,767 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
2,493 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,620 |
Shell Programming and Scripting |
|
|
|
3 |
10,130 |
Shell Programming and Scripting |
|
|
|
6 |
7,339 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,612 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
2,503 |
Shell Programming and Scripting |
|
|
|
5 |
9,462 |
Shell Programming and Scripting |
|
|
|
5 |
11,332 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
10,258 |
Cybersecurity |
|
|
|
1 |
2,584 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
7,432 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
9,498 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,217 |
Programming |
|
|
|
4 |
3,633 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,349 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
168,372 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,162 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,682 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,430 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
19,091 |
Programming |
|
|
|
1 |
2,636 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,389 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
84,177 |
New to Unix. Which books should I read? |
|
|
|
1 |
2,047 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
19,473 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,132 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,728 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,042 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,824 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
41,372 |
UNIX for Dummies Questions & Answers |
GETUSERSHELL(3) Linux Programmer's Manual GETUSERSHELL(3)
NAME
getusershell, setusershell, endusershell - get permitted user shells
SYNOPSIS
#include <unistd.h>
char *getusershell(void);
void setusershell(void);
void endusershell(void);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
getusershell(), setusershell(), endusershell():
_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
DESCRIPTION
The getusershell() function returns the next line from the file /etc/shells, opening the file if necessary. The line should contain the
pathname of a valid user shell. If /etc/shells does not exist or is unreadable, getusershell() behaves as if /bin/sh and /bin/csh were
listed in the file.
The setusershell() function rewinds /etc/shells.
The endusershell() function closes /etc/shells.
RETURN VALUE
The getusershell() function returns a NULL pointer on end-of-file.
FILES
/etc/shells
CONFORMING TO
4.3BSD.
SEE ALSO
shells(5)
COLOPHON
This page is part of release 3.27 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
2007-07-26 GETUSERSHELL(3)