endusershell(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():
       Since glibc 2.21:
           _DEFAULT_SOURCE
       In glibc 2.19 and 2.20:
           _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
       Up to and including glibc 2.19:
           _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 NULL on end-of-file.

FILES

   /etc/shells

ATTRIBUTES

   For   an   explanation   of   the  terms  used  in  this  section,  see
   attributes(7).

   
   Interface                        Attribute      Value     
   
   getusershell(), setusershell(),  Thread safety  MT-Unsafe 
   endusershell()                                            
   

CONFORMING TO

   4.3BSD.

SEE ALSO

   shells(5)

COLOPHON

   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at
   https://www.kernel.org/doc/man-pages/.


More Linux Commands

manpages/glLight.3gl.html
glLight(3gl) - set light source parameters - Linux man page
glLight sets the values of individual light source parameters. light names the light and is a symbolic name of the form GL_LIGHT$i$, where 0 &lt;= i &lt; GL_MAX_LIGHT

manpages/ldap_init.3.html
ldap_init(3) - Initialize the LDAP library and open a connec
ldap_open() opens a connection to an LDAP server and allocates an LDAP structure which is used to identify the connection and to maintain per-connection informa

manpages/sasl_verifyfile_t.3.html
sasl_verifyfile_t(3) - The SASL file verification (ManPage)
sasl_verifyfile_t is used to check whether a given file is okay for use by the SASL library. this is intended to allow applications to sanity check the environm

manpages/bzfgrep.1.html
bzfgrep(1) - search possibly bzip2 compressed files for a re
Bzgrep is used to invoke the grep on bzip2-compressed files. All options specified are passed directly to grep. If no file is specified, then the standard input

manpages/has_key_sp.3ncurses.html
has_key_sp(3ncurses) - curses screen-pointer extension......
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/groff_mm.7.html
groff_mm(7) - groff mm macros (Misc - Linux man page).......
The groff mm macros are intended to be compatible with the DWB mm macros with the following limitations: * No Bell Labs localisms are implemented. * The macros

manpages/geteuid32.2.html
geteuid32(2) - get user identity (System - Linux man page)
getuid() returns the real user ID of the calling process. geteuid() returns the effective user ID of the calling process. ERRORS These functions are always succ

manpages/glBitmap.3gl.html
glBitmap(3gl) - draw a bitmap (Library - Linux man page)....
A bitmap is a binary image. When drawn, the bitmap is positioned relative to the current raster position, and frame buffer pixels corresponding to 1s in the bit

manpages/opensource.html
301 Moved Permanently - open source

manpages/iso_8859_4.7.html
iso_8859_4(7) - ISO 8859-4 character set encoded in octal, d
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). ISO 8859-4 encodes the characters used in Scandi

manpages/setservent.3.html
setservent(3) - get service entry - Linux manual page.......
setservent.3 - The getservent() function reads the next entry from the services database (see services(5)) and returns a servent structure containing the broken

manpages/Tcl_NewBignumObj.3.html
Tcl_NewBignumObj(3) - manipulate Tcl objects as integer valu
These procedures are used to create, modify, and read Tcl objects that &amp;#9474; hold integral values. &amp;#9474; The different routines exist to accommodate differe





We can't live, work or learn in freedom unless the software we use is free.