Re: shutdown prompt question



"Sean Middleditch" <sean.middleditch@Iname.com> writes:

> > chmod 4777 is a fairly bad idea, I would say, if your machine so much
> > as looks sideways at the internet. :-)
> 
> No one can telnet into my machine from the internet except for my machine at
> school, so if someone can actually get in and run the commands, I have more
> problems than the fact my machine has been halted/rebooted.  I seem to
> forget most other people at their homes aren't set up like that.  Forgive
> me.  :)

Well, I think it was just that give-all-users-of-your-system-full-root-access
thing called `chmod 4777' (which means suid root + world writable) ..... but
I'd also call setting /sbin/halt and /sbin/reboot mode 4755 a bad idea since
they take -f and -n parameters to do the shutdown/reboot without syncing.

You should better use something like sudo or ctrl-alt-del on the console.

> > Anyway everyone can already execute the commands, but you need to be
> > root for that execution to do anything. That is what PAM does for you.
> > You could also use sudo or the like.
> 
> Sean Middleditch
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 
> 

-- 
Martin Baulig - martin@home-of-linux.org - http://www.home-of-linux.org



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]