1834645 Members
2748 Online
110069 Solutions
New Discussion

Re: /etc/shells?

 
SOLVED
Go to solution
Hanry Zhou
Super Advisor

/etc/shells?

Can anybody please let me know where I can find the corresponding file of /etc/shells on Solaris servers?

Thanks,
none
7 REPLIES 7
James Murtagh
Honored Contributor
Solution

Re: /etc/shells?

Hi Hanry,

I think its the same file but it might not created by default. You can just create the file manually or run the getusershell(3C) system call to get the list of supported shells. See the following Sun URL :

http://access1.sun.com/technotes/01248.html

Regards,

James.
A. Clay Stephenson
Acclaimed Contributor

Re: /etc/shells?

Sun's convention is a little different. They have a library function called getusershell() that will list the standard shells. You can create your own /etc/shell and it will augment those listed by getusershell().
If it ain't broke, I can fix that.
Zeev Schultz
Honored Contributor

Re: /etc/shells?

http://devrsrc1.external.hp.com/STKLI/man/11iv1.5/shells_4.html - on hp.

as to solaris see here:http://docs.sun.com/db/doc/805-3480/6j3ahiigm?a=view

in particular:'This file is not included in the standard release, so it must be added if users are to be allowed to use .forward files to forward mail to a program or to a file. It is possible to create the file by hand by using grep to identify all of the shells listed in your password file, then entering them manually in the file, but it is easier to use the procedure below, which employes a script that can be downloaded'
Just remembered because once (in previous unix life :)) used to mess with .forward.

Zeev

So computers don't think yet. At least not chess computers. - Seymour Cray
Valkiria Santos
Frequent Advisor

Re: /etc/shells?

Hi Hanry,

The /etc/shells in Solaris is located in same directory of HPUX. If the file didn??t exist its necessary create...
Any problems with ftp???

Look at this link: http://docs.sun.com/?q=%2Fetc%2Fshells


Good Luck.

Valkiria

Hanry Zhou
Super Advisor

Re: /etc/shells?

Ok,

thanks for messages,
Now it comes to my stupid questions, why do I need /etc/shells? seems the system is working ok without it?
none
Vasikaran Venkatesan
Frequent Advisor

Re: /etc/shells?

With so many shells cropping up everywhere, this is a control a sysadmin has on the users shells, so you can define what are the shells that are authorized to be run in a server.
Paul Sperry
Honored Contributor

Re: /etc/shells?

man getusershell

DESCRIPTION
The getusershell() function returns a pointer to a legal
user shell as defined by the system manager in the file
/etc/shells. IF /etc/shells DOES NOT EXIST, the following <<<<<
Note
locations of the standard system shells are used in its
place:
/usr/bin/sh /usr/bin/csh
/usr/bin/ksh /usr/bin/jsh
/bin/sh /bin/csh
/bin/ksh /bin/jsh
/sbin/sh

The idea is to give a greater degree of control over who can use ftp -
for example it's possible to turn off access completely just by creating
an empty /etc/shells