You can copu all files related to user account in editable flash drive by creating a folder there as /etc and can create a symbolic link using below syntax
ln -sP pathToDirecroty /etc
Where: pathToDirectory is path to etc directory created in editable flash drive
another option is u can have .efs file system and can mount /etc drive with user account related files in editable flash drive.
I want to login Telnet using any other user apart from root. So i created a new user and deleted root from passwd file. But after this i am not able to telnet my device. If i recreate root user it works.
How i can remove root user ?
Ie you may need a home directory for your user and potentially a group (unless you want to put testUser in the super user group with root). If testUser can’t validly log in then telnet isn’t going to work.
I have a home directory for my testUser and also if there is a root entry in ‘passwd’ file i am able to login via telnet for my testUser but if i remove root from ‘passwd’ file it doesnt work.
I am able to disable root login successfully by replacing /bin/sh as /bin/nologin in ‘passwd’ file.
Removing root user was not allowing to login Telnet service. I tried multiple options but didn;t worked so i found this workaround to disable root login.