Dottedhow do you create a new user on ubuntu 10.10 with a blank password? all my attempts using passwd, editing /etc/passwd and /etc/shadow has "su" still asking for a password even if its blank00:18
flaccidDotted: use sudo with the ubuntu user and adduser00:24
Dottedthe user is already created00:25
flaccidwhat shell does the user have in /etc/passwd?00:25
flaccidare you doing su from root?00:33
Dottedyeah from an init script00:33
flaccidcheck logs to see what the issue is i guess00:33
flaccidmaybe it needs to be a system user or something00:34
flaccidadd -x to the init script to see how it bombs out too00:34
flaccidsomeone needs to package that software00:35
flaccid[ root == ubuntu ] is incorrect bash syntax00:44
flaccidcauses [: 1: root: unexpected operator00:44
flaccidalso it does su to ubuntu user after that and not root user00:44
flaccidthats intentional but yeah. this is not a good init script at all.00:45
Dottedwell ideally it would su to minecraft user, just used ubuntu here for testing00:45
flaccid if [ "$ME" == "$USERNAME" ] ; then should be  if [ "$ME" = "$USERNAME" ] ; then00:47
flaccidrun su - ubuntu -c cd /home/ubuntu/minecraft and also screen -dmS minecraft java -Xmx1024M -Xms1024M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=1 -XX:+AggressiveOpts -jar minecraft_server.jar nogui00:54
flaccidthen check ps00:54
flaccidat least one of the processes is dying thus why if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null fails00:54
flaccidthough this is all the wrong way to do this stuff but meh..00:55
Dottedsu: Authentication failure01:04
Dottedand thats the problem in a nutshell, despite blank password it still asks for it01:05
Dottedhappends on both ubuntu and minecraft user01:05
flaccidthat would be expected. its meant to be run under root.01:06
Dottedminecraft_server.jar is meant to be run as root?01:07
Dottedthat seems highly unlikely01:08
flaccidno the init script. as you can see there is a USERNAME variable and it uses su -c to run it under this username01:17
flaccidyou won't be able to su properly without root01:17
flaccidsu != sudo01:17
Dottedwell the init script is already run as root01:20
Dottedsudo sh -x /etc/init.d/minecraft start01:21
flaccidsu to root. then see if you can su to the user you want to su to, if it succeeds well..01:21
flaccidif you are doing su as root, afaik, it should never ask for a password..01:23
flaccidi guess maybe need to check something like /etc/pamd.d/su though01:23
flaccidyou might like to also ask in #ubuntu and ##bash as this isn't really cloud related.01:24
Dotteddidnt get a response in #ubuntu, anyways getting too late for me, thanks for all your help01:26
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== daker__ is now known as daker_
=== Kiall_ is now known as Kiall

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!