[colug-432] Okay, I've got to be doing something stupid... any thoughts on what?
Jim Wildman
jim at rossberry.com
Fri Jul 10 18:18:08 EDT 2015
man shells will probably be enlightening...
On Fri, 10 Jul 2015, Rick Hornsby wrote:
>
>
>> On Jul 10, 2015, at 16:31, David Alden <dave at alden.name> wrote:
>>
>> Hi,
>>
>>> On 7/10/15 5:06 PM, William Yang wrote:
>>> I'm using a Centos 7 box -- noting that I'm usually an Ubuntu guy nowadays.
>>>
>>> To solve a specific problem, I've written a PERL script that I want to be
>>> the login shell of a user (the script manages several configuration
>>> functions and its expected use case is on one of the consoles). The script
>>> does all functions I expect it to. The first line of the script is '#!
>>> /usr/bin/perl' and it's chmod 0755.
>>>
>>> It works if I ssh onto the box as the user: ssh menu at host starts as
>>> expected. However, if I try to log in on tty1 or anything on the console,
>>> it displays stuff from login, then the console blanks and returns to a
>>> login prompt. There's some kind of error message that looks like it may
>>> say permission denied, but the screen refreshes and clears too quickly for
>>> me to really understand it. I tried for 90 minutes to get it to happen in
>>> a way I could capture it, without success.
>>
>> Do you have the full path name of the script in /etc/shells? I'm
>> pretty sure you need it there.
>>
>
> I may have been thinking of that - but now that you mention it I think that list is what shells a user is allowed to set for themselves?
>
>
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432
>
----------------------------------------------------------------------
Jim Wildman, CISSP, RHCE jim at rossberry.com http://www.rossberry.net
"Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one."
Thomas Paine
More information about the colug-432
mailing list