* non-shell login problems
@ 1998-10-09 4:00 Mr Mayes
1998-10-09 4:00 ` Barry Margolin
0 siblings, 1 reply; 2+ messages in thread
From: Mr Mayes @ 1998-10-09 4:00 UTC (permalink / raw)
I recently setup a user with a non-shell login program . All was well until
I added a parameter to it. With the parameter specified logins fail and the
error "no shell" is returned. Adding the login program to /etc/shells does
not help.
I have worked around the problem by calling the program from an exec
statement within .profile but I would prefer not to do this, and to call it
as the user's default login program.
For further info the system is a digital unix 4.0 system. I used vipw to
make the amendments to the password file.
SO the question is , how do I achieve my desired aim of giving a user a
non-shell startup program that has acommand line parameter specified.
Cheers
Rich
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: non-shell login problems
1998-10-09 4:00 non-shell login problems Mr Mayes
@ 1998-10-09 4:00 ` Barry Margolin
0 siblings, 0 replies; 2+ messages in thread
From: Barry Margolin @ 1998-10-09 4:00 UTC (permalink / raw)
In article <6vlmk4$43u$1@newsreader2.core.theplanet.net>,
Mr Mayes <dad@mayesie.freeserve.co.uk> wrote:
>I recently setup a user with a non-shell login program . All was well until
>I added a parameter to it. With the parameter specified logins fail and the
>error "no shell" is returned. Adding the login program to /etc/shells does
>not help.
The login program field of the passwd entry is the name of a file to
execute, it's not a command line to execute.
>I have worked around the problem by calling the program from an exec
>statement within .profile but I would prefer not to do this, and to call it
>as the user's default login program.
Write a script that executes the command line you want, and make this
script be his login program..
--
Barry Margolin, barmar@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-10-09 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-09 4:00 non-shell login problems Mr Mayes
1998-10-09 4:00 ` Barry Margolin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox