1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I create new users in TomatoUSB (shibby)

Discussion in 'Tomato Firmware' started by velis, Apr 25, 2012.

  1. velis

    velis Network Newbie Member

    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?
  2. shibby20

    shibby20 LI Guru Member

    tomato has READ-ONLY file system. After reboot new user will disapeer.
  3. velis

    velis Network Newbie Member

    I know that. It can be solved using either nvram or USB storage.
    I would still like an answer to the question though.
  4. lancethepants

    lancethepants Addicted to LI Member

  5. velis

    velis Network Newbie Member

    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?

Share This Page