DominusPi
Posts: 39
Joined: Mon Nov 18, 2013 5:31 pm

SSH doesn't allow me to modify file

Tue Dec 03, 2013 9:04 pm

Hey guys,
First of all, I've already used SSH, and have it enabled on my pi.
Now the thing is, I'd like to modify a file (more precisely /etc/network/interfaces) from the computer but it doesn't let me, it says "permission denied"

For the record I'm using cyberduck on windows to use ssh.

Thanks in advance !
Cheers !

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5191
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: SSH doesn't allow me to modify file

Tue Dec 03, 2013 9:12 pm

DominusPi wrote:Hey guys,
First of all, I've already used SSH, and have it enabled on my pi.
Now the thing is, I'd like to modify a file (more precisely /etc/network/interfaces) from the computer but it doesn't let me, it says "permission denied"
For the record I'm using cyberduck on windows to use ssh.
Thanks in advance !
I'm guessing you're logged in as the "pi" user but not using the "sudo" command to prefix your edit command** (this assumes that "cyberduck" opens a ssh "terminal" session - when on windows I use PuTTY)
("man sudo" for more info.)
Trev.
** eg. "sudo nano /etc/network/interfaces"
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, A+ and a B2) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

DominusPi
Posts: 39
Joined: Mon Nov 18, 2013 5:31 pm

Re: SSH doesn't allow me to modify file

Tue Dec 03, 2013 9:30 pm

So yeah, the problem was due to cyberduck, on which I do not know how to become the sudo (it's not a terminal, kind of a folder manager).

Tried Putty, worked just fine.

Thanks FTrevorGowen !
Cheers !

User avatar
DougieLawson
Posts: 36520
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: SSH doesn't allow me to modify file

Tue Dec 03, 2013 10:06 pm

DominusPi wrote:So yeah, the problem was due to cyberduck, on which I do not know how to become the sudo (it's not a terminal, kind of a folder manager).
Use PuTTY to set a strong password for root (do not use 12345, root, raspberry, pi, root or password).
sudo passwd
[follow the prompts]

Then use root & your new strong root password in cyberduck.

Beware: using it as root doesn't pull any punches. You can a) overwrite every file b) remove every file.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: SSH doesn't allow me to modify file

Tue Dec 03, 2013 10:12 pm

Alternatively you could simply run: sudo su to grant you root access without the need to change the password.

Richard S.

User avatar
DougieLawson
Posts: 36520
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: SSH doesn't allow me to modify file

Tue Dec 03, 2013 10:14 pm

redhawk wrote:Alternatively you could simply run: sudo su to grant you root access without the need to change the password.

Richard S.
Not from cyberduck he can't. Read the first half of this thread.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Return to “General discussion”