Black Webmasters Forum

 


Reply
  #1  
Old 06-19-2011, 11:50 AM
2oh8's Avatar
Junior Member
 
Join Date: Sep 2010
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default Shell script help

I made a script but I keep getting permission denied. I chmod'ed the file to 666 and it still wont run.
Reply With Quote
  #2  
Old 06-19-2011, 04:04 PM
Administrator
 
Join Date: Aug 2010
Posts: 85
Thanks: 7
Thanked 21 Times in 20 Posts
Default

The correct permission setting is:

Code:
chmod u+rwx scriptname
^^ This will give you the permission to run it.

If you want everyone to be able to run it use:

Code:
chmod go+rx scriptname
__________________
Follow Me On Twitter
Reply With Quote
The Following User Says Thank You to Pockets For This Useful Post:
2oh8 (06-20-2011)
  #3  
Old 06-20-2011, 01:48 AM
2oh8's Avatar
Junior Member
 
Join Date: Sep 2010
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks that did the trick!
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Our Sponsor Links

Help Us Grow


Follow Black Webmasters on Twitter
Black Webmasters on Twitter



Link to us:
Black Webmasters Forum
Please link to: http://www.blackwebmasters.com



Premium Wordpress Themes
Premium Wordpress Themes



Content Relevant URLs by vBSEO 3.6.0