Unix and Linux Discussions Tagged with shells |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
4,705 |
Shell Programming and Scripting |
|
|
|
6 |
3,085 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,502 |
Cybersecurity |
|
|
|
2 |
4,534 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
2,370 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,454 |
Shell Programming and Scripting |
|
|
|
3 |
10,020 |
Shell Programming and Scripting |
|
|
|
6 |
7,122 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,445 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
2,387 |
Shell Programming and Scripting |
|
|
|
5 |
9,299 |
Shell Programming and Scripting |
|
|
|
5 |
10,804 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
9,718 |
Cybersecurity |
|
|
|
1 |
2,427 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
7,044 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
8,784 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,064 |
Programming |
|
|
|
4 |
3,351 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,889 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
168,144 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,895 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,440 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,112 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
18,705 |
Programming |
|
|
|
1 |
2,357 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,087 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
83,139 |
New to Unix. Which books should I read? |
|
|
|
1 |
1,750 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
19,148 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,786 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,326 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,710 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,382 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
40,269 |
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)