vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Bartosz Oudekerk <tyranas@Lappie.bartosz.xs4all.nl> wrote: > no security-problem? What if I would ssh to your machine, and use that > account, while you are doing something important? Well, at the very least, you would only allow that user to log on locally. I still don't trust it, but I have seen similar methods used on large networks. - Kurt |
| |||
| On Wed, 25 Jun 2003 01:50:03 GMT, Faux_Pseudo <Faux_Pseudo@yahoo.comERCIAL> wrote: > _.--- Simon spoke in alt.os.linux.slackware --------._ >> That tells me that shutdown/halt need to have uid 0, > > If that where the case then sudo halt/shutdown would not work. Sorry, I meant the users shutdown or halt. Anything run using sudo (assuming sudo is configured to run it as root) has a uid & euid of 0, so the program will think root is running it anyway. -- Simon <simon@no-dns-yet.org.uk> **** GPG: F4A23C69 "We demand rigidly defined areas of doubt and uncertainty." - Douglas Adams |
| |||
| chello wrote: >"Daniel J. Smale - RSG" <dasm@pml.ac.uk> schreef in bericht >news:3ef80be2$1@news.nwl.ac.uk... > > >>Guys & Gals, >> >>How do I enable a non-root user to execute: >> >>shutdown -h 0 >> >>The only message I get is that only root can do this. >> >>I've checked the permissions on the shutdown binary, and it is >>executable by all (obviously, else it would display the message!) >> >>I am missing a step... could someone please fill me in? >> >>TIA, >> >>Dan. >> >> >> > >You can configure /etc/inittab to shut down the system on pressing >CTRL-ALT-DEL; >this is IMO the cleanest way. > >It's true that normal users can run shutdown but they don't have the root >permissions to >make the system calls, so you have to do chmod +s /sbin/shutdown or >/sbin/halt (not >sure whether they live in /sbin) so that the executables are run as root. > >But /sbin is not in the $PATH for normal users so you could place a symlink >from >/usr/local/bin/halt to /sbin/halt so that it's found when somebody wants to >run it. > >There, that should be enough info for you > >JOoSt > > > > chmod +s /sbin/shutdown (as root) worked perfectly. Thank you. Dan |
| |||
| On Tue, 24 Jun 2003, Daniel J. Smale - RSG wrote: > How do I enable a non-root user to execute: > > shutdown -h 0 > > The only message I get is that only root can do this. What about # chmod 4740 /sbin/shutdown and adding 'user' to the group which should be able to shutdown the box? I think this should work.. -- plepist |
| ||||
| In article <slrnbfhgrs.a1.usenet@dustpuppy.no-dns-yet.org.uk>, Simon wrote: > I've just tried it and it doesn't seem to be. I changed the password > to '' & tried to ssh to localhost using halt as the username and no > password (result: password rejected). I tried to su to halt & got > '-su: must be superuser.'. Doesn't a default sshd setup deny users with a blanco password? Perhaps the same is true for su? -- Modern man is the missing link between apes and human beings. |