rtadduser acting up.
So I have this thing set up for one user no problem, now I want to add users & it's giving me headaches. I start the script & it asks for the username. On a side note: it can't contain numbers, special characters nor capitals or it give me this error:
adduser: Please enter a username matching the regular expression configured via the NAME_REGEX[_SYSTEM] configuration variable. Use the `--force-badname' option to relax this check or reconfigure NAME_REGEX.
But OK, I choose the name to be "rwcijfersab" without the quotes & with only lowercase letters & then the script asks me if I want to grant SSH access. I don't, because it's not a remote machine. I also tried granting SSH access but that makes no difference. And then it appears stuck in a loop spitting out errors like:
grep: /var/www/rutorrent/conf/users/~RW-/config.php: File or Folder does not exist grep: /var/www/rutorrent/conf/users/~RW-/config.php: File or Folder does not exist grep: /var/www/rutorrent/conf/users/~RW-/config.php: File or Folder does not exist grep: /var/www/rutorrent/conf/users/~RW-/config.php: File or Folder does not exist grep: ~~RW-/.rtorrent.rc: File or Folder does not exist grep: ~~RW-/.rtorrent.rc: File or Folder does not exist grep: ~~RW-/.rtorrent.rc: File or Folder does not exist grep: ~~RW-/.rtorrent.rc: File or Folder does not exist etc...
I notice that the username I choose "rwcijfersab" without the quotes apparently got changed & the script is now trying to do something with a file in a folder "--RW-" without the quotes...( apparently there were 2 folders '~RW-' (with the quotes) & RW-
I checked that the script has added the users folder to the /home directory & it also added these RW folder to /var/www/rutorrent/conf/users, but then... something went wrong...
Any ideas would be appreciated, but I assume adding users manually is a valid alternative for now...
Why not try to do SSH rights? If openssh-server is not installed, this should not allow connection.
I'm not a professional, only my idea.
#269