Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Telnet is unencrypted....... Not many people use it anymore :P This means that anyone sniffing traffic can see your full username and password. I used to see it and its almost trivial............. it takes one command "dsniff" to access all your data. I would recommend (as im sure many others will) to switching to secure shell or SSH.
Just for other members....
What type of info are you wanting to access that requires you to log in as root ?
What distro are you telneting from and what system are you telneting too ?
Thank you. However, this is a requirement I have to do in my school. I need to be able to Telnet as root using a password. Currently it doesn't ask for one..
Can you please help me?
I check "/etc/passwd" and saw:
root:x:0:0:root:/root:/bin/sh
I guess, this is my problem (am I right?).
However, when I type passwd I get the following error message:
passwd: /etc/passwd: Read-only file system
How can I change the premissions of /etc/passwd in order to update it?
This is just an exercise I got. I don't have plans do use it byond the scope of this exercise.
I tryed Google for hours. I guess i'm too newbie that even Google can't help me.
Hadar
I read it already. But it didn't answer my question. I have a problem only with setting the password and not with setting the telnet itself.
After more googling I understood that the password issue is not related to telnet but to passwd. This was the answer I looked for from this forum .
Now I have to understnad how to get passwd to work when \etc\passwd is a read-only file system.
Anyway, thank you for your time.
Hadar
You must be a root to set password for root. So login as root or use "su" or "sudo" commands. Or if you really have read only filesystem, then remount it as read/write.
Thanks
It seems I manage to pinpoint my last chalange. This is the issue:
the \etc is readonly because the OS run on an embedded machine and the \etc is mapped to a ROM section.
It means that I need to update the password on the compilation machine and not at run time.
The internet explain how to use the passwd app to update the \etc\passwd file on the machine I'm currently running. But how can I update the password field on a different machine (the compilation one)?
I can open the /etc/passwd file on the compilation machine with a vi editor, but I don't know how to write the password myself..
Can you please tell me what should I do?
I got it -
I found the answer here - http://www.digi.com/support/kbase/kb...tl.jsp?id=3174
1. Execte: openssl passwd -crypt NEW_PASSWORD
2. Copy the output to the second column of root in the /etc/passwd file
3. Recompile the embedded OS
I got it -
I found the answer here - http://www.digi.com/support/kbase/kb...tl.jsp?id=3174
1. Execte: openssl passwd -crypt NEW_PASSWORD
2. Copy the output to the second column of root in the /etc/passwd file
3. Recompile the embedded OS
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.