Installing the ddclient Perl script

Asked by massimo

Hi
How do i change permissions. I need to copy a file and it is telling me that i am not the owner.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
massimo (massimog) said :
#1

I need to copy the file to sbin, and it wont let me change the permissions in the folder sbin

Revision history for this message
massimo (massimog) said :
#2

If i try to do it in a terminal i get the following error.

cp: cannot stat `ddclient': No such file or directory

Revision history for this message
Maurizio Moriconi (bugman) said :
#3

type in a terminal

chown owner filename

to change the owner of a file.

Use sudo if there is a permission problem.

Byez

Revision history for this message
massimo (massimog) said :
#4

will this work for the sbin file as well

thanks

Revision history for this message
massimo (massimog) said :
#5

how do i know who the owner of sbin is.

Revision history for this message
massimo (massimog) said :
#6

even using sudo i get the error above

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#7

Hello Massimo,

the file you wish to copy to sbin is that a file you have created before or an existing file?

br
Mathias

Revision history for this message
massimo (massimog) said :
#8

Hi

It is an existing file, part of the files that I need to copy to finish the
installation of ddclient.

Best Regards

Massimo Gatta

          IT Manager
Full Signal (pty) Ltd
Unit 18b, 5 Galaxy Ave
Linbro Bussiness Park
Tel : +2711 6084618
Fax : +2711 6084619
Cell : +2782 3733749
Mail : <email address hidden>

The information transmitted in this e-mail is intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer. All rights reserved by Full Signal (Pty) Ltd.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Mathias Uebelacker
Sent: 13 July 2007 01:07 PM
To: <email address hidden>
Subject: Re: [Question #9653]: not owner

Your question #9653 on nautilus in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/nautilus/+question/9653

    Status: Open => Answered

Mathias Uebelacker proposed the following answer:
Hello Massimo,

the file you wish to copy to sbin is that a file you have created before
or an existing file?

br
Mathias

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/nautilus/+question/9653/+confir
m?answer_id=6

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/+source/nautilus/+question/9653

You received this question notification because you are a direct
subscriber of the question.

__________ NOD32 2396 (20070712) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

Revision history for this message
Cesare Tirabassi (norsetto) said :
#9

Massimo,

use this command:

sudo cp ddclient /usr/sbin/

Make sure you are in the directory where you downloaded the script.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#10

Also, if you are asked to create and/or edit your configuration file, do it prefixing the command with sudo.
For instance:

sudo gedit /etc/ddclient/ddclient.conf

Revision history for this message
massimo (massimog) said :
#11

thank you

Revision history for this message
massimo (massimog) said :
#12

Hi

I have installed all the required things,i think. I am now getting this error when i try to start the ddclient.

bash: service: command not found

Revision history for this message
Cesare Tirabassi (norsetto) said :
#13

Most probably a missing dependancy. It would be better to install the package from our repositories:

sudo apt-get install ddclient

You should remove whatever file you have manually installed though.
For instance:

sudo rm -iv /usr/sbin/ddclient
sudo rm -iv /etc/ddclient/ddclient.conf
etc. etc.

be careful with rm, a simple typing mistake can wipe out a good chunk of your hard dsik.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#14

I should also add that apparently in ubuntu the configuration file is in /etc not in /etc/ddclient and to start the daemon you can use:

sudo /etc/init.d/ddclient start

or simply reboot (it is automatically started at boot).

Revision history for this message
massimo (massimog) said :
#15

Hi

i try running from the repositories but i get the following error.

E: could'nt find package ddclient

Revision history for this message
Anders (andersja+launchpad-net) said :
#16
Revision history for this message
Cesare Tirabassi (norsetto) said :
#17

Do you have the universe repository enabled?

You can check this manually (its in /etc/apt/sources.list) or via System->Administration->Software Sources or in Synaptics:

System->Administration->Synaptic Package Manager->Settings->Repositories

You can than use Synaptic to install the package too.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#18

@Anders,

no, I think his problem is the universe repository, but you are right that there is an update in the backport one:

feisty: 3.7.0-3ubuntu1
feisty-backports: 3.7.1-0ubuntu1~feisty1

Revision history for this message
massimo (massimog) said :
#19

Hi

Thanks, that worked.

It is now asking for a couple of things which I am not to sure of.

DynDns fully qualified domain names
Username for dynamic dns service
Password
Interface used.

Were do I get these from.

Kind regards

Massimo Gatta

          IT Manager
Full Signal (pty) Ltd
Unit 18b, 5 Galaxy Ave
Linbro Bussiness Park
Tel : +2711 6084618
Fax : +2711 6084619
Cell : +2782 3733749
Mail : <email address hidden>

The information transmitted in this e-mail is intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer. All rights reserved by Full Signal (Pty) Ltd.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Cesare Tirabassi
Sent: 13 July 2007 03:21 PM
To: <email address hidden>
Subject: RE: [Question #9653]: not owner

Your question #9653 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/9653

Cesare Tirabassi proposed the following answer:
@Anders,

no, I think his problem is the universe repository, but you are right
that there is an update in the backport one:

feisty: 3.7.0-3ubuntu1
feisty-backports: 3.7.1-0ubuntu1~feisty1

--
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/9653/+confirm?answer_id=17

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/9653

You received this question notification because you are a direct
subscriber of the question.

__________ NOD32 2396 (20070712) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

Revision history for this message
Cesare Tirabassi (norsetto) said :
#20

I guess you have already registered with a dynamic DNS server?
If so:

DynDns -> the dynamic dns server you registered with (eg. members.dyndns.org)
Username -> the username you used to register with the dynamic dns service
Password -> the password you used to register with the dynamic dns service
Interface -> Your network interface (ppp0, eth0, etc.)

Have also a look here for some options and configuration examples:

http://ddclient.wiki.sourceforge.net/Usage?token=c7f6a59a33565762294c419247f8d1fb

You can also type "man ddclient".
There is also an example made for Ubuntu in /usr/share/doc/ddclient/examples/:

sample-etc_rc.d_init.d_ddclient.ubuntu

Revision history for this message
massimo (massimog) said :
#21

Hi

Thanks for that. It seems to be all setup. It seems to be configured as
well.
Unfortunately it is not working. I get the following error when I try to
start the ddclient.

* dynamic dns service update utility not in use.

I have looked in the services menu but cant find it in there

Thanks

Massimo Gatta

          IT Manager
Full Signal (pty) Ltd
Unit 18b, 5 Galaxy Ave
Linbro Bussiness Park
Tel : +2711 6084618
Fax : +2711 6084619
Cell : +2782 3733749
Mail : <email address hidden>

The information transmitted in this e-mail is intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer. All rights reserved by Full Signal (Pty) Ltd.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Cesare Tirabassi
Sent: 13 July 2007 05:54 PM
To: <email address hidden>
Subject: RE: [Question #9653]: not owner

Your question #9653 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/9653

    Status: Open => Answered

Cesare Tirabassi proposed the following answer:
I guess you have already registered with a dynamic DNS server?
If so:

DynDns -> the dynamic dns server you registered with (eg.
members.dyndns.org)
Username -> the username you used to register with the dynamic dns service
Password -> the password you used to register with the dynamic dns service
Interface -> Your network interface (ppp0, eth0, etc.)

Have also a look here for some options and configuration examples:

http://ddclient.wiki.sourceforge.net/Usage?token=c7f6a59a33565762294c419247f
8d1fb

You can also type "man ddclient".
There is also an example made for Ubuntu in
/usr/share/doc/ddclient/examples/:

sample-etc_rc.d_init.d_ddclient.ubuntu

--
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/9653/+confirm?answer_id=19

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/9653

You received this question notification because you are a direct
subscriber of the question.

__________ NOD32 2399 (20070714) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

Revision history for this message
Cesare Tirabassi (norsetto) said :
#22

Did you set run_daemon to 'true' in /etc/default/ddclient?

If you do not want to use it as a daemon, you have to follow the instructions in:

/usr/share/doc/ddclient/README.gz

Revision history for this message
massimo (massimog) said :
#23

Hi

My conf files do not have that command in it so I added it right at the top,
is this correct.

Another thing I look up my host name that I setup in dyndns and when I try
to find the server I just seem to get the netgear router, I have setup the
router to use the dns I setup but still no luck.

Thanks

Massimo Gatta

          IT Manager
Full Signal (pty) Ltd
Unit 18b, 5 Galaxy Ave
Linbro Bussiness Park
Tel : +2711 6084618
Fax : +2711 6084619
Cell : +2782 3733749
Mail : <email address hidden>

The information transmitted in this e-mail is intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer. All rights reserved by Full Signal (Pty) Ltd.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Cesare Tirabassi
Sent: 16 July 2007 01:17 PM
To: <email address hidden>
Subject: RE: [Question #9653]: not owner

Your question #9653 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/9653

    Status: Open => Answered

Cesare Tirabassi proposed the following answer:
Did you set run_daemon to 'true' in /etc/default/ddclient?

If you do not want to use it as a daemon, you have to follow the
instructions in:

/usr/share/doc/ddclient/README.gz

--
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/9653/+confirm?answer_id=21

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/9653

You received this question notification because you are a direct
subscriber of the question.

__________ NOD32 2399 (20070714) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

Revision history for this message
massimo (massimog) said :
#24

Hi

new at this so lots of questions. I think i have sorted out the ddclient. Now when i try to ftp the server it tells me.

ftp: connect: connection refused

I also need to know if this is because i turned the anonomous user of, i need to have the people that log in the system be able to upload and download files but i nedd them to log in to do this, for security.

Thanks for the help so far.

Revision history for this message
massimo (massimog) said :
#25

Hi

From the terminal window i can now ftp the server but it asks me for a log in and password, were do i setup these as i have not set it up anywere.

Also if i try to log in from a windows system i get an error, something about no permission

Help please.

Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#26

Massimo,

if the problem with ddclient has been solved please mark this as solved and open a new question about setting up a server and enabling ftp connection.
Its a totally new question and there are people here that can help you with that much better than me.

Revision history for this message
massimo (massimog) said :
#27

Thank you. will do.

All your help is much appreciated.