I'd like to increase security in my router and run web server and mysql under another user, not root. I can ipkg install adduser, but that package does not contain chpass. So I can add a new user, but I can't set his password. It seems that user without a password doesn't work nicely (can't ssh or telnet to the router with the new user). I followed some tutorials on the net, but none of them helped me set up good working users. So, how do I create a new user that can be used to run web and mysql server? Also, is it enough to chown the www and SQL data folders to the new user or do I need more so that www and mysql daemons would work?
I know that. It can be solved using either nvram or USB storage. I would still like an answer to the question though.
This is exatly the guide I was using, but I find the password section a bit lacking in explanation. After re-reading again today, it finally occurred to me what he meant by changing the router admin password: the sed shadow line simply copies the root password to the new user. GUI is just used to generate the password. I also don't understand the "YbqekX1wqgKQs" string in the users line. It should be "x" IMHO. Sorry for being a linux noob, but can somebody please explain what that constant is doing in there?