Unix and Linux Discussions Tagged with shells |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
4,279 |
Shell Programming and Scripting |
|
|
|
6 |
2,985 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,462 |
Cybersecurity |
|
|
|
2 |
4,453 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
2,341 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,404 |
Shell Programming and Scripting |
|
|
|
3 |
9,987 |
Shell Programming and Scripting |
|
|
|
6 |
7,080 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,364 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
2,343 |
Shell Programming and Scripting |
|
|
|
5 |
9,254 |
Shell Programming and Scripting |
|
|
|
5 |
10,588 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
9,425 |
Cybersecurity |
|
|
|
1 |
2,325 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,981 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
8,534 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,956 |
Programming |
|
|
|
4 |
3,178 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,696 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
168,056 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,815 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,342 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,039 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
18,484 |
Programming |
|
|
|
1 |
2,223 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,967 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
82,634 |
New to Unix. Which books should I read? |
|
|
|
1 |
1,711 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
19,074 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,685 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,194 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,627 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,224 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
39,896 |
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)