Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Gondar on January 24, 2004, 02:10:32 PM
-
I would like to set up an IRC bot on my SME server.
I read about Eggdrop but i'm (as you imagine) a really newbie and i do not want to compromise the server integrity ;)
Any useful link 2 dox & HowTos or RPMs?
The only one i found & read was in french and i can't understand the whole doc :(
tia
-
Can't of course say which way to do it for ur specific purpose but I did it like this:
1) Installed all the rpm's so I could compile stuff
2) Had to install ssl-development files as I had to compile the bot with ssl libs
There is prob. a better and easier way than this without having to resort to install all the development utils, but it's the way I did it.. :)
-
I have managed to install eggdrop to my SME Server as well i followed the link
http://www.frenchcancan.net/v3/bot_howto.htm
Provided by contribs.org and was able to sucesfully install it. The issue i run into though is i cannot ssh into my server under any other user other than root. The problem is at this point that eggdrop will not run as root. So how do i ssh into the server as a different user? I use Putty to ssh into the server with but when i try it with another accnt, it will ask me for my Login and i will give that but when it asks for the password and i type this in the putty window will close out on me. Any suggestions would be helpful.
Thanx,
EJ
-
How about logging in as root and using su to start eggdrop?
For example: You added user eggdrop and eggdrop starts with /usr/bin/eggdrop
su - eggdrop -c "/usr/bin/eggdrop"
edit: bit more text :hammer:
-
ok i tried su eggdrop (eggdrop is the user accnt i need to run this from) and i recived an error.
-------------------------
Mitel Networks SME Server
-------------------------
Standard user login services have been disabled.
Terminating connection.
I am assuming i need to enable "standard login services".
I am not quite sure how to do this. If there is any documentation about this plz give me direction :lol:
any help would be greatly appriciated.
Thanx,
EJ
-
su mimics a user login, which appears to be disallowed with eggdrop...
Offcourse, this user should be allowed to run a process, so you might try this:
exec setuidgid eggdrop /usr/bin/eggdrop
You wouldn't want to break security on a system user (like eggdrop) by giving it more privileges.
-
youll need to enable the standard user login
http://www.dungog.net/sme/help/SMEhelp/Server%20Shell%20Access.html
will show you how to enable it. good luck.
-
My previous idea isn't going to work...
Not unless you drop exec from that line anyway.
Are you absolutely sure standard user login is needed for eggdrop? I mean, is it supposed to run in the background, like most daemons, or does it do/need more?
The line above came from a startup script,
I should have known better I guess :hammer:
However, I can imagine that's the way you will want to go at some point, instead of keeping a putty window open al the time or something like that.
-
I found the command
chsh -s /bin/bash eggdrop
This lets me ssh into the server under any user i set this up with. What i need to know now is after i get the eggdrop up and running how do i go back and disbal this.
I have been reading that this may have security risks.
-
Ok the command to undo this is
chsh -s /bin/sshell <username>
Just in case anyone wants to know.
Soon as i get a sucessfull install of the eggdrop i will write up a doc in english so peeps can have an easire time at this. :-D