|
Post by gideon007 on Jan 23, 2008 17:42:13 GMT 7
ok, that did something, though not the correct thing, not at first at least Did Omega's steps from above, just for quick testing i did not change the passwords right away. Logged in with user/pass shutdown and then the client got disconnected, so so far it worked correctly. But it didn't shutdown. I wasn't able to ssh into it again, neither with the sys or shutdown/reboot user, had to log into the web admin page and reboot via that. I checked the /etc/passwd and it was correct this time with shutdown:x:0:0::/tmp:/raid/data/module/SHUTDOWN/system/doshutdown reboot:x:0:0::/tmp:/raid/data/module/SHUTDOWN/system/doreboot Then I changed the passwords for shutdown/reboot from the shutdown module page. After that /etc/passwd was wrong again shutdown:x:0:0::/root:/bin/sh reboot:x:0:0::/root:/bin/sh (I really did nothing else, except for being logged in with a scp client as user sys). Trying the user shutdown now resulted again with a prompt in the ssh client After restoring this file to the correct one, I tried again with user shutdown and my new password and *hooray*, my machine shut down So something is wrong with the password setting on the module page and when /etc/passwd is wrong the module doesn't work correctly (at least for me). Just correcting the passwd file on my second machine made it work for that one as well. And many thanks to both of you for troubleshooting this issue with me!
|
|
|
Post by peterfu on Jan 23, 2008 18:54:09 GMT 7
Good, so we have found the root cause. omega : Andreas, I think I've found the problem - in avusertool.php you don't pass the special shell (the shutdown or reboot) to the usertool script - if the shell is not given as parameter, then the default one (/bin/sh) is taken from usertool as usershell (parameter 5). So on every password change the shell is set to /bin/sh. br Peter
|
|
|
Post by omega on Jan 23, 2008 18:59:53 GMT 7
Thanks Peter, found it myself this morning, but there are some more minor issues. Already corrected, I'm about testing the new version.... Andreas
|
|