If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > How to make a script executable by all users?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-05, 14:57
chrs0302 chrs0302 is offline
Registered User
 
Join Date: Mar 2005
Posts: 12
How to make a script executable by all users?

I have a script in my home direcroty which upon execution gives the essential system information like memory,cpu etc and is currently owned by root:root. Now I want to see that every non root user will run this file and grab the reqired system info. I know this is some thing associated with chown command and linking the particular file to one of the directories in the PATH variable. Of course I have symbolically linked this file to /usr/lcoal/bin which is included in the PATH variable.In fact I have done this before and forgotten the procedure.

Thanks in advance for your help.
Reply With Quote
  #2 (permalink)  
Old 10-17-05, 17:26
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
Everyone execute permission

chmod +x script_name
Reply With Quote
  #3 (permalink)  
Old 10-19-05, 07:27
loopoo loopoo is offline
Registered User
 
Join Date: Aug 2005
Posts: 23
Or try:
chmod a+x script_name
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On