[solved]Cant find Boot folder, I dont have permission to modify sshd_config, Permision denied!!how to make a new system

Having trouble with your GBZ build? Ask your questions here!
Mario.Semiglia
Posts: 81
Joined: Tue Sep 27, 2016 4:38 am
Has thanked: 23 times
Been thanked: 5 times

[solved]Cant find Boot folder, I dont have permission to modify sshd_config, Permision denied!!how to make a new system

Post by Mario.Semiglia » Fri Nov 10, 2017 5:02 am

Hallo people, I need some help, this thing is driving me crazy!!

I was triying to make a new system on my GBZ to split my snes games from my super famicom games:

https://github.com/RetroPie/RetroPie-Se ... ionStation

for that i needed to find the es_systems.cfg (which i can not find) and to buckup my files first, but, I could not find the etc folder either conected via wifi trough my computer (the folder is not there, i only can see bios, configs, roms, splashscreens and themes folders, so where the heck is the Boot folder?)

So I tryed modifing the SSH of my gameboy to see if I can see it then:

https://github.com/RetroPie/RetroPie-Se ... ot-anymore

After following the steps ive got this "ERROR writing /etc/ssh/sshd_config: Permision denied"

I don know how to get this permiton... I just wanna see my boot folder again :cry: what should i do

...by the way i am really newbie in all off this, so please be patient...
thanks in advance
Last edited by Mario.Semiglia on Sat Nov 11, 2017 8:15 am, edited 2 times in total.

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Cant find Boot folder, I dont have permission to modify the sshd_config!!

Post by YaYa » Fri Nov 10, 2017 5:54 am

To gain access to the whole system, you need to bypass your current user account (pi) and use the super user account.
This is done by prefixing sudo before any command...
Like

Code: Select all

sudo reboot
whithout this, you do not have permission to reboot.

BUT !!!!!!! Be careful as you can do whatever you want so if don’t know what you are doing, then Don’t do it ! You will break your system.

For the root filesystem, just type cd / and you will leave the user account folder (/home/pi or ~ in short)

Type pwd to see where your are (Print Working Directory)
Follow me on instagram Image

Mario.Semiglia
Posts: 81
Joined: Tue Sep 27, 2016 4:38 am
Has thanked: 23 times
Been thanked: 5 times

Re: Cant find Boot folder, I dont have permission to modify the sshd_config!!

Post by Mario.Semiglia » Fri Nov 10, 2017 7:56 am

Thanks for the quick reply!! I will tell you a little what I have done: I activated the SSH from the configurations so I can do everything from my pc using Winscp. I done de cd / command and then I pressed ls to se which folders I can see and I ccan see the boot file, non the less when I tried to download a folder to buckup my configs (i dont wanna try anything before bucking up) I still do not have permition... is there something that i need to do from my computer to get acces?

Mario.Semiglia
Posts: 81
Joined: Tue Sep 27, 2016 4:38 am
Has thanked: 23 times
Been thanked: 5 times

Re: Cant find Boot folder, I dont have permission to modify the sshd_config!!

Post by Mario.Semiglia » Fri Nov 10, 2017 8:16 am

I would like to do it from my computer, cause I dont have a tv and I cannot read in this small screen but I need the acces to be able to buckup... kow i can see the folders, i can open the .cfg files... it still tellls me error permission denyed :cry: :cry: :cry:
Last edited by Mario.Semiglia on Fri Nov 10, 2017 8:34 am, edited 1 time in total.

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Cant find Boot folder, I dont have permission to modify the sshd_config!!

Post by YaYa » Fri Nov 10, 2017 8:31 am

You cannot make a backup by just copying the files... you need to use win32disk and read the SD card to your pc to make a backup.

Here is a tutorial

https://www.raspberrypi.org/forums/view ... hp?t=26463

Are you french Mario ?
Follow me on instagram Image

Mario.Semiglia
Posts: 81
Joined: Tue Sep 27, 2016 4:38 am
Has thanked: 23 times
Been thanked: 5 times

Re: Cant find Boot folder, I dont have permission to modify the sshd_config!!

Post by Mario.Semiglia » Fri Nov 10, 2017 8:36 am

no I come from Uruguay, :D I will read the tutorial thanks. By the way, I still do not have the permition even for writing a "." on any document... I wanna modify the es_systems.cfg to be able to spleat my snes from my Super Famicom games... doesnt let me :cry:


Sorry for annoying that much

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Cant find Boot folder, I dont have permission to modify the sshd_config, Permision denied!!

Post by YaYa » Fri Nov 10, 2017 8:49 am

You need to edit them by using the sudo command from the command line.

Si tu intentas cambiar el archivo en winscp, eso no se puede !
Follow me on instagram Image

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Cant find Boot folder, I dont have permission to modify the sshd_config, Permision denied!!

Post by YaYa » Fri Nov 10, 2017 8:53 am

Instead of winscp (which tou may use for rom transfer only) use Putty to ssh i to your Pi to edit files.

Read this tutorial i have written

http://sudomod.com/forum/viewtopic.php?f=45&t=3567

To edit a file, you use the nano program.
You need super user rights so you type

Code: Select all

sudo nano your_file
Cambia your_file por el archivo que tu quieres cambiar !
Follow me on instagram Image

Mario.Semiglia
Posts: 81
Joined: Tue Sep 27, 2016 4:38 am
Has thanked: 23 times
Been thanked: 5 times

Re: Cant find Boot folder, I dont have permission to modify the sshd_config, Permision denied!!

Post by Mario.Semiglia » Fri Nov 10, 2017 12:00 pm

Hey Man, thank you very very much!!
the sudo works great (besides that I fucked up my system :P) and the shh via putty works grat as well

pitty trying to add a system to my GBZ i fucked it up

I added this to my es_system.cfg file (on etc/emulationstation)
<system>
<name>SFM</name>
<fullname>Super Famicom</fullname>
<path>/home/pi/RetroPie/roms/SFM</path>
<extension>.bin .smc .sfc .fig .swc .mgd .zip . BIN .SMC .SFC .FIG .SWC .MGD .ZIP</extension>
<command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ SFM %ROM%</command>
<Platform>snes</platform>
<theme>SFM</theme>
</system>

and the system doesnt work any more: do you see some mistake? when I delete it GBZ works again

THANKS A LOT FOR YOUR TIME, you are deffenetly very cool

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Cant find Boot folder, I dont have permission to modify the sshd_config, Permision denied!!

Post by YaYa » Fri Nov 10, 2017 12:19 pm

Please use the code tag to display code !
And please don’t use bad words lol, this is a public forum with young children reading through these lines...

You shpuld take care of the text formatting, everything is case sensitive also.

Code: Select all

<system>
	<name>hacks</name>
	<path>~/RetroPie/roms/hacks</path>
	<extension>.bin .gen .int .nes .rom .smc .BIN .GEN .INT .NES .ROM .SMC</extension>
	<command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ hacks %ROM%</command>
	<theme>hacks</theme>
</system> 
This is just an example.

Read here https://github.com/RetroPie/RetroPie-Se ... ionStation

The tags are all low caps.
Follow me on instagram Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest