PATH telnetd and busybox?

Good day!

I admit frankly — I don't selenium in Linux (only run basic commands in the console).

Have a router running Linux and starts the telnetd service (through it and connect).

At the moment telnet is not picks up the way of the PATH which are set in etc/profile + written in that loads when you start the router.

the service starts so
telnetd -l /bin/ash
October 8th 19 at 00:38
2 answers
October 8th 19 at 00:40
To find out under what user you are logged in, you can use the team id. /etc/profile (and .profile) is read only for login shell (hallmark: argv[0][0] == '-'). I suspect that when you explicitly pass loginpath through the key -l, then telnetd, designing argv for execvp(), not puts at the beginning of minus. I think that's the reason.

And what you do not like the default behavior of telnetd, no parameters? (In this case, you must run the standard /bin/login, which will spawned the login shell is correct.)
October 8th 19 at 00:42
try it in your home folder to create the file .profile and commands to write in it...
"Home" is root? - Josiane_Shanahan commented on October 8th 19 at 00:45
the home folder is the home folder, I don't know under what user you enter. In home is where you go if you enter the cd command without any parameters. - Velva_Wym commented on October 8th 19 at 00:48
If you are using busybox, like no user... - Josiane_Shanahan commented on October 8th 19 at 00:51

Find more questions by tags Linux* nix-like systemsbashTelnet