[mythtv-users] Can I SU to root w/o typing a password?

Leo Laksmana beol at laksmana.net
Fri Jul 18 13:49:05 EDT 2003


I don't know what distribution you're using but I believe by there are
to rules for running halt. If you are logged in on the machine
physically, you are able to run halt/reboot no matter who you are. But it you
ssh into the box, you have to su to do both of the command.


-Leo

On Fri, Jul 18, 2003 at 12:10:21PM -0400, John Klimek wrote:
> Is there any semi-secure way to SU to root?
> 
> I'm running mythfrontend on my X-Box and when the frontend exits it runs
> "halt" to shut off the x-box.  However, halt must be run as root and my
> x-box logs in as a different user by default.
> 
> Now I think I could type "su -c halt" to switch to root, then run halt, but
> it will still prompt me for a password.
> 
> How could I have it automatically type in a password?
> 
> Also, is my syntax right for switching to root then running halt?  I want my
> xbox to shutdown when I exit mythtv (using the option in the mythfrontend
> settings).
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users

-- 
Leo Laksmana - BeOL
mailto:beol at laksmana.net
http://www.laksmana.net/


More information about the mythtv-users mailing list