Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2012 00:13:05 +0300
From:      Sami Halabi <sodynet1@gmail.com>
To:        Andrey Zonov <andrey@zonov.org>
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: su problem
Message-ID:  <CAEW%2BogarJuWO808=0L9NeU=o8Ft4PvxwLzqsJj451apT3Km0ug@mail.gmail.com>
In-Reply-To: <4FD3BBF6.5030909@zonov.org>
References:  <CAEW%2BogYrUso=nqx4dUx0rhr9XUFMmSSMP-fxNa03pgj8tNF%2B%2Bg@mail.gmail.com> <201206091035.q59AZWFB058742@lurza.secnetix.de> <CAOgwaMvp4AyLNdvENL9rXoP6D6w9JaTJr1ML5uxb28Tg9=W2uQ@mail.gmail.com> <CAEW%2BogZ3H%2BgP86zcme-nuucLyDHmUo05uZ3R7Jc1hBb_7FM4gg@mail.gmail.com> <20120609122457.GS13609@albert.catwhisker.org> <CAEW%2BogadUQzu6k1XMXyLkqjEuq-_6gShiG5mRKbBgKMyoviAEg@mail.gmail.com> <20120609123626.GT13609@albert.catwhisker.org> <CAEW%2BogY4zZLj=D9cKuoG58Ozn_UbXjx3GJCT_Gtd4f4zEp3D2A@mail.gmail.com> <4FD37CF3.109@rdtc.ru> <CAEW%2BogZ=nC6kGszy=krG8fbAno84AMxaPsrC5Fj1Z4zmtJMALg@mail.gmail.com> <4D5EE1C7-9297-415B-A5A0-45801B8A0182@longcount.org> <CAEW%2Bogbd7s_c1DqbQSwDGuvEFu=gCWcVWZun3hFADRVzw2dPbQ@mail.gmail.com> <4FD3BBF6.5030909@zonov.org>

next in thread | previous in thread | raw e-mail | index | archive | help
unfortunatlly its not installed by default and i didn't have the chance to
install it because i locked out quickly :(
Sami

On Sun, Jun 10, 2012 at 12:11 AM, Andrey Zonov <andrey@zonov.org> wrote:

> sudo is not installed?
>
>
> On 6/10/12 12:22 AM, Sami Halabi wrote:
>
>> I already posted that:
>>
>> %ls -l /usr/bin/su
>> -r-sr-xr-x  1 root  wheel  16944 Jun  7 19:47 /usr/bin/su
>> %
>>
>> Sami
>>
>> On Sat, Jun 9, 2012 at 10:57 PM, Mark Saad<nonesuch@longcount.org>
>>  wrote:
>>
>>
>>>
>>>
>>> On Jun 9, 2012, at 2:45 PM, Sami Halabi<sodynet1@gmail.com>  wrote:
>>>
>>>  Hi,
>>>>
>>>> %sysctl kern.console
>>>> kern.console: ttyv0,dcons,/dcons,ttyv0,uart,**ucom,
>>>>
>>>> %tail /var/log/messages
>>>> Jun  7 19:54:35 vps16 kernel: Trying to mount root from ufs:/dev/da0s1=
a
>>>> Jun  7 19:54:36 vps16 kernel: bge0: link state changed to UP
>>>> Jun  7 20:18:04 vps16 kernel: ugen0.2:<vendor 0x09da>  at usbus0
>>>> Jun  7 20:18:04 vps16 kernel: ukbd0:<vendor 0x09da USB Keyboard, class
>>>> 0/0, rev 1.10/2.50, addr 2>  on usbus0
>>>> Jun  7 20:18:04 vps16 kernel: kbd2 at ukbd0
>>>> Jun  7 20:18:05 vps16 kernel: uhid0:<vendor 0x09da USB Keyboard, class
>>>> 0/0, rev 1.10/2.50, addr 2>  on usbus0
>>>> Jun  7 20:19:37 vps16 login: ROOT LOGIN (root) ON ttyv1
>>>> Jun  7 20:21:19 vps16 kernel: ugen0.2:<vendor 0x09da>  at usbus0
>>>> (disconnected)
>>>> Jun  7 20:21:19 vps16 kernel: ukbd0: at uhub0, port 1, addr 2
>>>>
>>> (disconnected)
>>>
>>>> Jun  7 20:21:19 vps16 kernel: uhid0: at uhub0, port 1, addr 2
>>>>
>>> (disconnected)
>>>
>>>> %
>>>>
>>>> the system was loaded with keyboard and disconnected later if i
>>>>
>>> understand
>>>
>>>> the logs...
>>>>
>>>> New ideas are appreciated, and thanks in advance,
>>>> Sami
>>>>
>>>> On Sat, Jun 9, 2012 at 7:42 PM, Eugene Grosbein<egrosbein@rdtc.ru>
>>>>
>>> wrote:
>>>
>>>>
>>>>  09.06.2012 19:47, Sami Halabi =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
>>>>>
>>>>>> %su -
>>>>>> Password:
>>>>>> load: 0.00  cmd: su 30588 [ttydcd] 0.91r 0.00u 0.00s 0% 2092k
>>>>>>
>>>>>
>>>>> Perpaps, your system had no keyboard attached at boot time;
>>>>> or for some other reason it booted with /dev/console being serial
>>>>>
>>>> console
>>>
>>>> instead of vidconsole. su locks trying to access serial console
>>>>> that is /dev/ttyd0 by default and has Carrier Detect flag enabled.
>>>>> Hence, it waits for CD on the first serial port (miserably and
>>>>>
>>>> hopelessly).
>>>
>>>>
>>>>> You can check if it's true with "sysctl kern.console" command.
>>>>> You could ask someone to boot the system with keyboard attached -
>>>>> no need to type anything, though. The system should detect it
>>>>> and assingn /dev/ttyv0 as /dev/console instead of /dev/ttyd0.
>>>>> And "su" won't lock.
>>>>>
>>>>> Eugene Grosbein
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sami Halabi
>>>> Information Systems Engineer
>>>> NMS Projects Expert
>>>> FreeBSD SysAdmin Expert
>>>> ______________________________**_________________
>>>> freebsd-stable@freebsd.org mailing list
>>>> http://lists.freebsd.org/**mailman/listinfo/freebsd-**stable<http://li=
sts.freebsd.org/mailman/listinfo/freebsd-stable>
>>>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@**
>>>> freebsd.org <freebsd-stable-unsubscribe@freebsd.org>
>>>>
>>> "
>>>
>>> Check the permissions on the su binary it could be missing the suid but=
.
>>>
>>> ---
>>> Mark saad | mark.saad@longcount.org
>>>
>>> ______________________________**_________________
>>> freebsd-stable@freebsd.org mailing list
>>> http://lists.freebsd.org/**mailman/listinfo/freebsd-**stable<http://lis=
ts.freebsd.org/mailman/listinfo/freebsd-stable>
>>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@**
>>> freebsd.org <freebsd-stable-unsubscribe@freebsd.org>"
>>>
>>>
>>
>>
>>
>
> --
> Andrey Zonov
>



--=20
Sami Halabi
Information Systems Engineer
NMS Projects Expert
FreeBSD SysAdmin Expert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEW%2BogarJuWO808=0L9NeU=o8Ft4PvxwLzqsJj451apT3Km0ug>