Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How do I get permissions to edit system configuration files?

OK so basically i log into Ubuntu sever 12.04 over ssh and i try to copy a file to /etc/init.d/ and it says permission denied i cant edit anything there is there a way to do it.

share|improve this question
^ It's the same as your local machine, you need to sudo when you connect to the machine. – Jorge Castro Jul 10 '12 at 23:55

marked as duplicate by Jorge Castro, mikewhatever, bodhi.zazen, izx, jokerdino Jul 11 '12 at 0:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

whenever you log into SSH, you are the user that you logged in with. like

ssh azaqiel@server

logs me in as azaqiel. azaqiel has to know the password for sudo usage, or be in /etc/sudoers before azaqiel can edit files that are not owned by azaqiel. files in /etc/init.d/ are almost always owned by root.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.