Mailinglist Archive: opensuse-security (757 mails)

< Previous Next >
Re: [suse-security] creating a normal user just for reboot
  • From: Huge Rademaker <cert-security@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 10 Jan 2002 23:53:02 +0100
  • Message-id: <200201102257.g0AMv4d20887@xxxxxxxxxxxxxxx>
Op donderdag 10 januari 2002 23:39, schreef u:
> Hi folks.
>
> I want to enable a user to login, and after succesful login the system
> reboots.

I shall not ask why you want that..... Is he a good friend of yours?

>
> I tried out the following:
> - creating an user
> - in ~/.profile I put "sudo /sbin/reboot"
> - with visudo I defined "<username> ALL: NOPASSWD: /sbin/reboot"
> but this won't work.
>
> Am I missing something or am I totally on the wrong way ?

I suggest you change the user's login shell to /sbin/reboot (in /etc/passwd).
But I've never tried that.

>
> thx.
> Stephan
>
>
> --
> To unsubscribe, e-mail: suse-security-unsubscribe@xxxxxxxx
> For additional commands, e-mail: suse-security-help@xxxxxxxx
>
>
regards,

Huge

< Previous Next >
Follow Ups