Page 1 of 1
telnet
Posted: Thu Nov 09, 2006 12:53 pm
by alex.barylski
I want to use Windows XP default telnet client to connect to my desktop computer running Ubuntu...I've tried entering the IP of my desktop but connection fails...
I assume this is because my Ubuntu doesn't have a telnet server...
I dont want to install any SSH software clients on my XP laptop thuis the reason I want to know if my Ubuntu has a telnet server installed???
What command do I use to determine if I have one running or not?
Posted: Thu Nov 09, 2006 1:10 pm
by Chris Corbyn
apt-get install telnetd
/etc/init.d/telnetd start
EDIT | But whay not use PuTTY in Windows and connect via SSH ?
EDIT2 |
Hockey wrote:What command do I use to determine if I have one running or not?
ps aux | grep telnetd
Posted: Thu Nov 09, 2006 2:18 pm
by alex.barylski
cool thanks a million
off topic: I have an FTP server installed and by default Ubuntu uses user: nobody pass: lampp
I assume that FTPd runs as root, as I need to sudo inorder to start the mysql, apache, ftp daemons...
I login using my windows laptop...and ftp client...but I cannot make any changes it says 500: permission deinied
I assume because I installed the scripts locally as user: Hockey and FTP is running as root?
I can browse the the directories and read all files, but cannot save...and I can't CHMOD the directories???
Any ideas?
Posted: Thu Nov 09, 2006 2:31 pm
by Chris Corbyn
Hockey wrote:cool thanks a million
off topic: I have an FTP server installed and by default Ubuntu uses user: nobody pass: lampp
I assume that FTPd runs as root, as I need to sudo inorder to start the mysql, apache, ftp daemons...
I login using my windows laptop...and ftp client...but I cannot make any changes it says 500: permission deinied
I assume because I installed the scripts locally as user: Hockey and FTP is running as root?
I can browse the the directories and read all files, but cannot save...and I can't CHMOD the directories???
Any ideas?
I use proftpd and it's the only one I know anything about the configuration of. I imagine your config is denying certain types of command though.
The reason you need to start daemons as root is because they are usually very important services you would want any old tom, dick or harry sharing the server with you to tinker with. NO they DON'T run as root though. At least not if things are set up securely. Root starts the process, then it forks new processes with suexec under a username like ftp, www, mail etc.
For example, here's my list of apache processes:
Code: Select all
root 6013 0.0 0.1 20824 644 ? SNs Nov05 0:00 /usr/sbin/apache2 -k start -DSSL
www-data 6037 0.0 1.0 22472 5648 ? SN Nov05 0:00 /usr/sbin/apache2 -k start -DSSL
www-data 6038 0.0 1.0 22452 5212 ? SN Nov05 0:00 /usr/sbin/apache2 -k start -DSSL
www-data 6039 0.0 0.6 22472 3228 ? SN Nov05 0:00 /usr/sbin/apache2 -k start -DSSL
www-data 6040 0.0 0.6 22280 3520 ? SN Nov05 0:00 /usr/sbin/apache2 -k start -DSSL
www-data 6041 0.0 1.0 22272 5452 ? SN Nov05 0:00 /usr/sbin/apache2 -k start -DSSL
www-data 11706 0.0 1.0 22552 5480 ? SN Nov05 0:00 /usr/sbin/apache2 -k start -DSSL
www-data 18365 0.0 0.9 22276 4716 ? SN Nov05 0:00 /usr/sbin/apache2 -k start -DSSL
The top one is started as "root" because that's the first one we started, all the others (listening) are started with suexec under the username "www-data" and were forked from that first process. Do some playing around with the "ps" command

Think about it logically. Process ID 1 is always "init" because that's the kernel starting up and it will be run as root. All other processes if you branch through from parent to parent eventually hit the init command. The usernames the processes run at along the way change though.
Posted: Thu Nov 09, 2006 3:36 pm
by timvw
afaik only root is allowed to bind to a port < 1024. This is the reason why they start as root, do what they have to do, and immediately after that lower their privileges...