vysheng / tg

telegram-cli
GNU General Public License v2.0
6.5k stars 1.54k forks source link

I can`t login #1568

Open freecoder-kang opened 5 years ago

freecoder-kang commented 5 years ago

I followed the Installation and installed successfully. Then, I ran, but nothing happened:

bin]#./telegram-cli -k ../tg-server.pub change_user_group: can't find the user telegramd to switch to Telegram-cli version 1.4.1, Copyright (C) 2013-2015 Vitaly Valtman Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type show_license'. This is free software, and you are welcome to redistribute it under certain conditions; typeshow_license' for details. Telegram-cli uses libtgl version 2.1.0 Telegram-cli includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/) I: config dir=[/root/.telegram-cli] libconfig not enabled

even if i enterd the TAB, it was still with no reflection. Then, I used _getself , it gave me an error:

get_self FAIL: 22: id should be user id

help me, please~

SLKun commented 5 years ago

same here No login dialog prompted image

Paulchen232 commented 5 years ago

from @luckydonald: According to main.c:559, if you start the cli as unix user 0 (root user), it will try to use the telegramd user instead.

You can

start the client from a non-root user
provide a non-root user to switch to (-U someuser flag)
create the non-root user telegramd, like the debian install script would