Configuring James server

Asked by prasad.ram

Hi sir
I am very much interested in using ubuntu
I am a student and now i want to install james server(mail-server) but this server access port 25 and 110 for smtp and pop but in ubuntu if want to access the well known ports you must have root privileges so how can give root permissions to janes server please help me.....

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Just use sudo when you need root access and you will get it. You use your login password and you will get no feedback in the terminal as you type, but just keep typing and hit ENTER.

Revision history for this message
prasad.ram (prasad-ram126) said :
#2

if i use sudo it gives the following error

prasad@prasad-OptiPlex-755:~/Software/james/james-2.3.2/bin$ sudo sh run.sh
[sudo] password for prasad:
ERROR: JAVA_HOME not found in your environment.

Please, set the JAVA_HOME variable in your environment to match the
location of the Java Virtual Machine you want to use.

but if run it with out sudo it finds the JAVA_HOME variable and it gives
error like permissions denied for pop and smtp the error is more lines so i
didn't include it so how can give root access to the james server(email
server)

On 18 August 2012 00:11, actionparsnip <<email address hidden>
> wrote:

> Your question #206146 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/206146
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> Just use sudo when you need root access and you will get it. You use
> your login password and you will get no feedback in the terminal as you
> type, but just keep typing and hit ENTER.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/206146/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/206146
>
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Do you have Java installed?

Revision history for this message
prasad.ram (prasad-ram126) said :
#4

yes
if i run it with out sudo it identifies the JAVA_HOME
but with sudo it can't identify it

On 18 August 2012 11:35, actionparsnip <<email address hidden>
> wrote:

> Your question #206146 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/206146
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Do you have Java installed?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/206146
>
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

What is the output of:

echo $JAVA_HOME; lsb_release -a

Thanks

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#6

try

sudo -E ...

Revision history for this message
prasad.ram (prasad-ram126) said :
#7

Yes
sudo -E it works Thank you
and can you explain what happened i already read man sudo but still i
confused
On 19 August 2012 09:10, marcobra (Marco Braida) <
<email address hidden>> wrote:

> Your question #206146 on sudo in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/sudo/+question/206146
>
> Project: Ubuntu => sudo in Ubuntu
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
prasad.ram (prasad-ram126) said :
#8

Thanks and it is very help to me