Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: change_user_group: can't find the user telegramd to switch to #349

Closed
Piuser1981 opened this issue Dec 1, 2014 · 8 comments
Closed

Comments

@Piuser1981
Copy link

Hello all,

I installed telegram-cli on a Raspberry Pi B+. After registration, I keep getting this error:

sudo /home/pi/tg/bin/telegram-cli -k /home/pi/tg/tg-server.pub

change_user_group: can't find the user telegramd to switch to
Telegram-cli version 1.1.1, Copyright (C) 2013-2014 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.
I: config dir=[/root/.telegram-cli]

Can anyone please help me with this?

@vysheng
Copy link
Owner

vysheng commented Dec 1, 2014

You are running it as root. use '-U root', if you really want it.

@Piuser1981
Copy link
Author

/home/pi/tg/bin/telegram-cli -k /home/pi/tg/tg-server.pub -W

Telegram-cli version 1.1.1, Copyright (C) 2013-2014 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.
I: config dir=[/home/pi/.telegram-cli]
User Telegram updated photo

Ok, so that seems to work.
Another question I have is, once i register can I register again as another user (with another telephone number)?

@vysheng
Copy link
Owner

vysheng commented Dec 1, 2014

You can use config file and profiles.

@Piuser1981
Copy link
Author

Which config file?

@vysheng
Copy link
Owner

vysheng commented Dec 1, 2014

see config.sample

@Piuser1981
Copy link
Author

I see in config.sample the following:

This is an empty config file

Feel free to put something here

default_profile = "binlog";

test_dc1 = {
config_directory = ".telegram/test_dc1";
test = true;
msg_num = true;
binlog_enabled = true;
};

binlog = {
config_directory = ".telegram/binlog";
test = false;
msg_num = true;
binlog_enabled = true;
log_level = 2;
};

binlog_mts = {
config_directory = ".telegram/binlog_mts";
test = false;
msg_num = true;
binlog_enabled = true;
log_level = 2;
};

mega = {
config_directory = ".telegram/mega";
test = false;
msg_num = true;
binlog_enabled = true;
log_level = 2;
};

new = {
config_directory = ".telegram/new";
test = false;
msg_num = true;
};

production = {
config_directory = ".telegram/production";
test = false;
msg_num = true;
};

test = {
config_directory = ".telegram/test";
test = true;
msg_num = true;
};

test1 = {
config_directory = ".telegram/test1";
msg_num = true;
binlog_enabled = true;
};

test2 = {
config_directory = ".telegram/test2";
msg_num = true;
binlog_enabled = true;
};

I'm sorry, I don't understand how to use this.
Maybe you can explain a bit more?
I just want to change to another phone number/account after I test telegram with my own..

@vysheng
Copy link
Owner

vysheng commented Dec 1, 2014

Oh, then just delete .telegram-cli/*

@Piuser1981
Copy link
Author

Solved, can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants