GETUSERSHELL(3) Library Functions Manual GETUSERSHELL(3)NAME
getusershell, setusershell, endusershell - get legal user shells
SYNOPSIS
char *getusershell()
setusershell()
endusershell()
DESCRIPTION
Getusershell returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If /etc/shells is unread-
able or does not exist, getusershell behaves as if /bin/sh and /bin/csh were listed in the file.
Getusershell reads the next line (opening the file if necessary); setusershell rewinds the file; endusershell closes it.
FILES
/etc/shells
SEE ALSO shells(5)DIAGNOSTICS
The routine getusershell returns a null pointer (0) on EOF.
BUGS
All information is contained in a static area so it must be copied if it is to be saved.
4.3 Berkeley Distribution November 30, 1988 GETUSERSHELL(3)
Check Out this Related Man Page
GETUSERSHELL(3) BSD Library Functions Manual GETUSERSHELL(3)NAME
getusershell, setusershell, endusershell -- get valid user shells
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
char *
getusershell(void);
void
setusershell(void);
void
endusershell(void);
DESCRIPTION
The getusershell() function returns a pointer to a valid user shell as defined by the system manager in the shells database as described in
shells(5). If the shells database is not available, getusershell() behaves as if /bin/sh and /bin/csh were listed.
The getusershell() function reads the next line (opening the file if necessary); setusershell() rewinds the file; endusershell() closes it.
FILES
/etc/shells
DIAGNOSTICS
The routine getusershell() returns a null pointer (0) on EOF.
SEE ALSO nsswitch.conf(5), shells(5)HISTORY
The getusershell() function appeared in 4.3BSD.
BUGS
The getusershell() function leaves its result in an internal static object and returns a pointer to that object. Subsequent calls to
getusershell() will modify the same object.
BSD January 16, 1999 BSD
Hi,
Im trying to setup a anonymous FTP server. I am using Solaris 9 and I am trying to use the ftpconfig command.
According to the man page on this command it will copy and set up all the components needed to operate an anonymous ftp server, including creating the ftp user accounts, etc... (5 Replies)
Hi all,
I am trying to tweak my ksh , i am running V: Version M-11/16/88i
I have my Backspace and up/down arrows working using the following code in my ~/.profile file.
set -o emacs
alias __A=$(print '\020' )
alias __B=$(print '\016' )
alias __C=$(print '\006' )
alias __D=$(print... (4 Replies)
I have created a ksh shell script and used it as a login shell for a user.
</etc/passwd>
lramirev:x:111:200:Luis:/export/home/menush:/usr/local/menush/menush
My shell script is like this:
</usr/local/menush/menush>
#!/bin/ksh
#
if ]
then
. $HOME/.profile
fi
... (8 Replies)
Hello,I must share file from Linux machine to Solaris.I've enabled ftp with svcadm enable ftp,when I connect from Linux box I have this
"Name (192.168.1.4:root): anonymous
331 Guest login ok,send your complete e-mail address as password
Password : (I give my e-mail address)
530 Login incorrect... (3 Replies)
I am not able to get ftp working for Solaris 10 for root user. I am getting login failed error.
331 Password required for root.
Password:
530 Login incorrect.
Login failed.
Tried following things already.
1. SFTP works ok, still would like to know why FTP is not working (curious).
2.... (5 Replies)
Hi the /etc/shells file is missing on some of development boxes. Is this ok? Where can I find this file?
---------- Post updated at 07:07 AM ---------- Previous update was at 07:07 AM ----------
I have solaris, linux, aix and hpux machines and on all of these machines the /etc/shells file is... (8 Replies)
for example, if we specify,#!/usr/bin/ksh then the script will be executed in korn shell.
If we don't specify that line, the script will be executed using the default shell.
So, how we can identify the default shell for the current user?
Will it be in .profile file ?
Thanks (13 Replies)