su -l discards the previous environment and loads a new environment.
It's as if you're "logging in" as root (-l)

running su without -l will elevate your priveledges without this same
problem, you keep the same shell.  Fix your shell problems via this
way (or single user as originally described), and be careful next
time.


--TJ

On 6/16/09, Unga <unga...@yahoo.com> wrote:
>
>
> --- On Tue, 6/16/09, Ruben de Groot <mai...@bzerk.org> wrote:
>
>> From: Ruben de Groot <mai...@bzerk.org>
>> Subject: Re: Cannot login as root, exited on signal 11
>> To: "Glen Barber" <glen.j.bar...@gmail.com>
>> Cc: "Unga" <unga...@yahoo.com>, freebsd-questions@freebsd.org
>> Date: Tuesday, June 16, 2009, 4:06 PM
>> On Mon, Jun 15, 2009 at 02:37:54PM
>> -0400, Glen Barber typed:
>> > On Mon, Jun 15, 2009 at 9:27 AM, Ruben de Groot<mai...@bzerk.org>
>> wrote:
>> > >> If so, reboot into single-user mode, and
>> change it back.
>> > >
>> > > Why reboot? You can "su -s /bin/tcsh"
>> > >
>> >
>> > How can you change the shell if you cannot log
>> in?  That's why I
>> > suggested single-user mode.
>>
>> He said he could log in as a normal user.
>>
>
> Yes, normal users can log in. Its only root cannot.
>
> Normal user, after log in, can su to root but "su -l" develops the same
> problem, the child process die.
>
> All users use bash shell.
>
> What is "su -l" requires that su doesn't?
>
> Best regards
> Unga
>
>
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to