Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Aug 02, 2012 8:36 am 
Offline
Junior Member

Joined: Thu Aug 02, 2012 8:22 am
Posts: 30
Hello,

I am new to the whole concept of setting up a web server, at least in practice, but have been a linux user for quite some time.

I have followed all the guides so far to setup my linode, with Debian squeeze. The Apache2 server is installed, so too postgresql and php5. Everything went well after some days installing and troubleshooting minor things.

Now came the time to setup my mail server. Chose Citadel to do the job. So far the installation was fine.

But I am up to this point:

"Configure SSL" in the http://library.linode.com/email/citadel ... -6-squeeze help file.

The problem is I cannot as my user (I am not using root) access the /etc/ssl/citadel folder. I can access etc and ssl but when I try to access citadel it says:

vanir@freja:~$ cd /etc/ssl/citadel
-bash: cd: /etc/ssl/citadel: Permission denied

The permission denied only comes up for the citadel folder.

I would appreciate some assistance so that I can continue with the installation of the Citadel server. I am sure it is something very easy that I am overlooking, so please excuse my noviceness.

Greetings and many thanks in advance,
Jasmin


Top
   
PostPosted: Thu Aug 02, 2012 9:46 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
try these commands to compare the directory permissions:

ls -l /etc
ls -l /etc/ssl
ls -l /etc/ssl/citadel


James


Top
   
PostPosted: Fri Aug 03, 2012 8:58 am 
Offline
Junior Member

Joined: Thu Aug 02, 2012 8:22 am
Posts: 30
Thank you James, I will try it.


Top
   
PostPosted: Wed Aug 08, 2012 2:16 am 
Offline
Junior Member

Joined: Thu Aug 02, 2012 8:22 am
Posts: 30
Hi James,

I tried what you suggested. I could see information inside the /etc and /ssl folders, but it did not list or show anything in the /citadel folder, it came up with the same error, that permission is denied.

Do you have another suggestion what I could do? Should I paste something here to view?

Greetings,
Jasmin


Top
   
PostPosted: Wed Aug 08, 2012 3:21 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
It's quite common for ssl certificates for applications to be only accessible by root (so no one else can read them), so prefix your commands with sudo.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Wed Aug 08, 2012 3:56 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
The problem is then the permissions for sure. Try using the commands as root, or prefix with sudo as obs suggests above, to see the existing permissions.

James


Top
   
PostPosted: Wed Aug 08, 2012 4:55 am 
Offline
Junior Member

Joined: Thu Aug 02, 2012 8:22 am
Posts: 30
Hi again,

About sudo and root, that is what I tried before I posted my problem to this forum. I have disabled root as per the security settings.

Sudo doesnt work in my case. The error that comes up is:

vanir@freja:~$ sudo cd /etc/ssl/citadel
[sudo] password for vanir:
sudo: cd: command not found

Shall I try as root and reenable root permissions in the settings?

Thank you again for your help.

Jasmin


Top
   
PostPosted: Wed Aug 08, 2012 5:25 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
sudo -i will bring you into a root shell without having to enable root, try that.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Wed Aug 08, 2012 6:19 am 
Offline
Junior Member

Joined: Thu Aug 02, 2012 8:22 am
Posts: 30
Thank you that was very helpful. :)

It worked, using sudo -i ...

I was able to do what was required in the citadel folder...

As per the installation instructions here:

http://library.linode.com/email/citadel ... figure-ssl

I tried the next step of:

"Commercial Certificate Instructions"

but came up with the following error:

root@freja:/etc/ssl/citadel# openssl req -new -nodes -newkey rsa:4096 -days 365 -keyout citadel.key -out citadel.csr chmod 600 citadel.key
unknown option chmod
req [options] <infile >outfile
where options are

... followed by a long list of info ...

I don't know why this problem is coming up and so searched for a solution in the Linode Library and came up with two possible help files:

http://library.linode.com/web-servers/a ... an-5-lenny

which is "Help to get get up and running quickly with SSL for Apache on your Linux VPS".

and

http://library.linode.com/security/ssl- ... commercial

which is "Obtaining a Commercial SSL Certificate"

I was hoping someone could tell me which help file could help me move forward?

Thank you again,
Jasmin


Top
   
PostPosted: Wed Aug 08, 2012 7:22 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Quote:
root@freja:/etc/ssl/citadel# openssl req -new -nodes -newkey rsa:4096 -days 365 -keyout citadel.key -out citadel.csr chmod 600 citadel.key
unknown option chmod


Those are two commands so run
Code:
 openssl req -new -nodes -newkey rsa:4096 -days 365 -keyout citadel.key -out citadel.csr

Followed by
Code:
chmod 600 citadel.key

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Thu Aug 09, 2012 2:56 am 
Offline
Junior Member

Joined: Thu Aug 02, 2012 8:22 am
Posts: 30
Thank you for pointing out the obvious :) Brain didn't register the two lines of code as being separate. Of course it worked. Many thanks again.


Top
   
PostPosted: Thu Dec 24, 2015 6:02 am 
Offline

Joined: Wed Dec 23, 2015 12:23 pm
Posts: 1
protect your server from cryptowall malware attacks http://nabzsoftware.com/types-of-threats/cryptowall-3-0


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group