Well, here in Mandrake 8.1, /sbin is not in my PATH (type env to see PATH) but /usr/bin is and there are both /sbin/halt and /usr/bin/halt on my machine. Each has user=root (r-w-x), group=root (r-x), and others (r-x). So, when, as unprivileged user, I call halt, I guess /usr/bin/halt is executed but this is a symbolic link, here, that points to consolehelper in /usr/bin, same permissions, and I can't read what it does.
If you are using the full path /sbin/halt -n and it still doesn't work, the only other thing I can think of doing, apart from figuring out why your install doesn't allow unprivileged users to invoke halt, would be to use sudo and set yourself up to execute halt without password with something like sudo halt -n. See man sudo for that project.
|