Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-19-2005, 10:42 PM   #1
Registered: Oct 2004
Posts: 76

Rep: Reputation: 15
/etc/init.d/cyrus Shell Script 'Permission denied'

Hi all,

I am unable to launch cyrus-imap daemon using a shell script that is located in /etc/init.d/. To be a little more specific I created the shell script based on a online how to:

The script is nothing fancy it is the following:

# Cyrus startup script

case "$1" in
        # Starting SASL saslauthdaemon
        /usr/local/sbin/saslauthd -c -a pam&

        # Starting Cyrus IMAP Server
        /usr/cyrus/bin/master &


        # Stopping SASL saslauthdaemon
        killall saslauthd

        # Stopping Cyrus IMAP Server
        killall /usr/cyrus/bin/master


        echo "Usage: $0 {start|stop}"
        exit 1

I created the above script in a file named 'cyrus' its' full path being '/etc/init.d/cyrus'. I first created this using vi and did not chown or chmod the file or the directory. It gave the following error:

foozle:/srv/www/htdocs/web-cyradm-0.5.4-1/config # /etc/init.d/cyrus start
bash: /etc/init.d/cyrus: Permission denied
I checked the owner = Root and group = Root. I then attempted to chown the cyrus script as 'chown 755 ...' . I attempted to issue the 'cyrus start' command (full path quoted above) and got the same permissions denied error. I again switched the user and group to chown cyrus:mail and again got the permissions denied error.

I then deleted the cyrus file and recreated it using kwrite. Still permissions denied, even after trying several different owners using chown.

I have googled and tried to match older posts in this forum but have yet to uncover a potential reason why this is failing and unfortunately no solution to the problem either.

I would appreciate your help. I know that it is something that is problem elementary; however it has been a long couple of days (You might think i'm an idiot because I have been attempting to get a full circle mail server running for almost one week - I have tried configurations for qmail and postfix; I have finally settled on postfix because Suse uses it natively. I would really like to get past this so if you have any ideas I welcome them.


Last edited by ServerStorm; 01-19-2005 at 10:44 PM.
Old 01-19-2005, 10:53 PM   #2
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
It will need to be
chmod +x
to be executable.
Old 01-19-2005, 11:01 PM   #3
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Hi scuzzman

Big thanks, this is what it needed!

I have just recently come from the windows world so unfortunately the paradigms are different enough that even very simple solutions like the one you have provided are in the bottom of the gaps created by lack of knowledge and experience in Linux The good news is with each passing day it seems to get a little easier

Thanks again,
ServeStorm (the forecast is calling for sunny skies)
Old 01-19-2005, 11:04 PM   #4
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Not a problem - glad to help.
Good luck on your trails with Linux and keep in mind we're available when you need us!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Denied for script accessing text file lobo1 Linux - General 2 06-28-2005 12:46 PM
User executing script: bad interpreter: Permission denied stefaandk Linux - Newbie 7 06-27-2005 09:53 AM
/bin/sh: /etc/init.d/xprint: Permission denied flyfastest Linux - Newbie 1 06-17-2005 04:24 AM
crontab failure: permission denied trying to run script hedpe Linux - Software 5 05-03-2005 07:07 PM
permission denied when executing my own script Red Squirrel Linux - Newbie 3 03-07-2004 08:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration