Forum Discussion
Altera_Forum
Honored Contributor
16 years agoTelnet password assignation
Hi all,
I want simply to add a password for telnet users. Until now, my "etc/passwd" file looked like : root::0:0:root:/:/bin/sh ftp:x:14:50:FTP User:/home/ftp: --> no password was needed to enter telnet console ! For what I know about Linux systems, I must add a "x" after root to indicate that I want to assign a password : root:x:0:0:root:/:/bin/sh But where and how must the encrypted password be set ?? Can I simply create a shadow file and put the pass directly in ?? I was thinking about something like "etc/shadow"... Thanks for your help !1 Reply
- Altera_Forum
Honored Contributor
I think I found the solution by myself on Nios Wiki --> Login HOWTO :
--------------------------------------------------------- Busybox --> Login/Password Management Utilities --> [*] Use internal DES and MD5 crypt functions [*] getty [*] login [*] passwd Core Applications ---> [*] init [ ] enable console shell <== unselect this [ ] execute firewall rules [ ] process init.conf (Sash) Shell Program --------------------------------------------------------- Then : --------------------------------------------------------- Method 2, for Fedora, and others that don't have mkpasswd to encrypt password. Change passwd file, remove the 'x' for root entry root::0:0:root:/:/bin/sh ftp:x:14:50:FTP User:/home/ftp Boot nios2 uClinux, login as root without password needed. Then run "passwd", enter your new password. Now you can save the content of /etc/passwd on your nios2 uClinux. ---------------------------------------------------------