Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Role not executing command

Solaris


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-04-2013
cjashu cjashu is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 7 May 2014, 4:43 PM EDT
Posts: 114
Thanks: 51
Thanked 4 Times in 4 Posts
Role not executing command

Hello Guys,
I am studying RBAC. So I create a role called sysadm and gave it the "shutdown" profile.

Now when I switch to that role, and execute the shutdown command


Code:
$ shutdown -y -g0 -i5

The system responds with :

shutdown: not found


Can anyone help me with this please?

Thanks
Sponsored Links
    #2  
Old Unix and Linux 03-04-2013
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 1 July 2015, 6:02 AM EDT
Location: Paris
Posts: 4,587
Thanks: 17
Thanked 511 Times in 458 Posts
Try
Code:
/usr/sbin/shutdown

Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
executing a command using ssh anilreddy103 UNIX for Dummies Questions & Answers 5 11-28-2011 06:56 AM
Command executing to be in the background ! Mr.AIX AIX 3 12-21-2010 08:33 AM
executing command from subdirectories NoobProgrammer Shell Programming and Scripting 3 10-03-2009 02:57 PM
Executing a command at startup NathanWarden Shell Programming and Scripting 2 12-10-2008 09:52 PM
executing the su command from a script. shailendrat Shell Programming and Scripting 6 04-11-2005 01:44 AM



All times are GMT -4. The time now is 03:15 PM.