[00:18] how 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 blank [00:24] Dotted: use sudo with the ubuntu user and adduser [00:25] the user is already created [00:25] what shell does the user have in /etc/passwd? [00:32] /bin/bash [00:33] are you doing su from root? [00:33] yeah from an init script [00:33] http://www.minecraftwiki.net/wiki/Server_startup_script#Script [00:33] check logs to see what the issue is i guess [00:34] maybe it needs to be a system user or something [00:34] add -x to the init script to see how it bombs out too [00:35] someone needs to package that software [00:41] http://pastie.org/1637811 [00:44] [ root == ubuntu ] is incorrect bash syntax [00:44] causes [: 1: root: unexpected operator [00:44] also it does su to ubuntu user after that and not root user [00:45] thats intentional but yeah. this is not a good init script at all. [00:45] well ideally it would su to minecraft user, just used ubuntu here for testing [00:47] if [ "$ME" == "$USERNAME" ] ; then should be if [ "$ME" = "$USERNAME" ] ; then [00:50] http://pastie.org/1637831 [00:54] run 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 nogui [00:54] then check ps [00:54] at least one of the processes is dying thus why if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null fails [00:55] though this is all the wrong way to do this stuff but meh.. [01:04] Password: [01:04] su: Authentication failure [01:05] and thats the problem in a nutshell, despite blank password it still asks for it [01:05] happends on both ubuntu and minecraft user [01:06] that would be expected. its meant to be run under root. [01:07] minecraft_server.jar is meant to be run as root? [01:08] that seems highly unlikely [01:17] no the init script. as you can see there is a USERNAME variable and it uses su -c to run it under this username [01:17] you won't be able to su properly without root [01:17] su != sudo [01:20] well the init script is already run as root [01:21] sudo sh -x /etc/init.d/minecraft start [01:21] su to root. then see if you can su to the user you want to su to, if it succeeds well.. [01:23] if you are doing su as root, afaik, it should never ask for a password.. [01:23] i guess maybe need to check something like /etc/pamd.d/su though [01:24] you might like to also ask in #ubuntu and ##bash as this isn't really cloud related. [01:26] didnt get a response in #ubuntu, anyways getting too late for me, thanks for all your help === 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