- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- crontab permission denied
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 07:43 AM
тАО05-19-2009 07:43 AM
when i try to run a .sh as root i get the following error:
sh: /var/adm/mytest.sh: Execute permission denied.
any ideas?
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 07:45 AM
тАО05-19-2009 07:45 AM
Re: crontab permission denied
this should solve your problem
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 07:55 AM
тАО05-19-2009 07:55 AM
Re: crontab permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 06:45 PM
тАО05-19-2009 06:45 PM
Solutionif you want to run any script thorugh any txt file that file should have execute permission.
before execute that tax file (.sh) you should check it with ls -altr command
you can use chmod +x
below is one executable file example, thanks,
-rwxr-xr-x 1 root root 5 May 20 10:44 arv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2009 09:00 PM
тАО05-19-2009 09:00 PM
Re: crontab permission denied
>>sh: /var/adm/mytest.sh: Execute permission denied
As Mel said you need to set your file permission executable then only you can run the script.
there are 2 way to set file permission
1.symbolic_mode_list
2.numeric_mode
Make a file executable by everybody:
chmod a+x file
chmod 111 file
For more see man page of chmod
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 08:18 AM
тАО05-20-2009 08:18 AM
Re: crontab permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 04:57 PM
тАО05-20-2009 04:57 PM
Re: crontab permission denied
glad to hear that it works, appriciate if you can assign points who has contribute here, thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 09:02 PM
тАО05-20-2009 09:02 PM
Re: crontab permission denied
Nice to here that your problem got solved but make a habit to assign some points who give there valuable time for your problem.
To know how to assign points please go through the below link.
http://forums13.itrc.hp.com/service/forums/helptips.do?#33
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2009 02:56 AM
тАО05-21-2009 02:56 AM
Re: crontab permission denied
For execute any file u need to give that file the permision.
eg.
#chmod 777
It will give the full permision to that file.