how to assign full access rights to guest

Doug Stewart dstewart at atl.lmco.com
Thu Jun 23 14:01:03 UTC 2005


harshavardhanreddy mandeepala wrote:
> hi
> I am using Linux fedora core 3.
> I want to shutdown the system from  .bash_profile  file
> using
> cd /sbin
> ./shutdown -g o
> but when I run the file otherthan a superuser it is giving error message as
>           " to run "shutdown" u must be a root"
>  but i want to execute shutdown command  as  a non root user (Ex: guest)
> Even i have used  command for changing the ownership as
> chown "guest" /root -R      Still it is giving error.
> 

This will not accomplish what you're looking to do and is a Patently Bad 
Idea(tm).

> Is there any other way to shutdown other than .bash_profile  from  user "guest".
> How can i give full permissions  to my user "guest"  as equal as
> "root" ,so that i can run "shutdown" command.
> 

Run `man sudo` from any command line and read up on this incredibly 
powerful and useful tool.


-- 
----------
Doug Stewart
Systems Administrator/Web Applications Developer
Lockheed Martin Advanced Technology Labs
dstewart at atl.lmco.com




More information about the fedora-list mailing list