Page 1 of 1

Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 1:02 am
by Skelingaton
I think I'm finally narrowing down my display problem on my Pi 4b but I've run into another issue. I found the config.txt file in my Pi boot directory but it won't let me save changes to it. I've read that you need to use a sudo command to access programs as the superuser but I don't know how to make this work for the config.txt file.

I've typed just Sudo into the command box and then tried opening the config file editing it and then saving but it still won't let me. I've also tried typing sudo boot/config.txt but it says command not found. It does the same thing when just typing just boot/config.txt. Also, when a line says to uncomment in the config.txt file does it mean to delete it out of there or just set the value to 0?

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 1:11 am
by jahboater
Skelingaton wrote:
Fri Jan 17, 2020 1:02 am
I've typed just Sudo into the command box and then tried opening the config file editing it and then saving but it still won't let me. I've also tried typing sudo boot/config.txt but it says command not found. It does the same thing when just typing just boot/config.txt.
You need to use a text editor to alter a file. Examples are nano, vi, emacs etc. I suggest trying nano to start with.
Practice changing a local file in your home directory.

Code: Select all

nano file
To edit config.txt you will need:

Code: Select all

nano /boot/config.txt
This however will fail because you do not have permission to alter system configuration files.
The sudo command temporarily gives you that permission:

Code: Select all

sudo nano /boot/config.txt
Skelingaton wrote:
Fri Jan 17, 2020 1:02 am
Also, when a line says to uncomment in the config.txt file does it mean to delete it out of there or just set the value to 0?
It means remove the # character at the start of the line.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 1:43 am
by Skelingaton
Well I figured out how to edit the text. Unfortunately changing the settings did not solve my problem of the video not outputting to my main TV. Really not sure what to do now.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 2:16 am
by Botspot
You risk being banned for a week if you post duplicate topics. Here is the duplicate topic.
I suggest you delete one of them to avoid moderator action.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 2:22 am
by Skelingaton
Botspot wrote:
Fri Jan 17, 2020 2:16 am
You risk being banned for a week if you post duplicate topics. Here is the duplicate topic.
I suggest you delete one of them to avoid moderator action.
If I knew how I would.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 2:35 am
by Botspot
Skelingaton wrote:
Fri Jan 17, 2020 2:22 am
Botspot wrote:
Fri Jan 17, 2020 2:16 am
You risk being banned for a week if you post duplicate topics. Here is the duplicate topic.
I suggest you delete one of them to avoid moderator action.
If I knew how I would.
No problem. I was banned for a week once for dupli-posting, not fun!

Just push the report button on the top post, and say you want the topic deleted.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 7:32 am
by rpdom
Botspot wrote:
Fri Jan 17, 2020 2:16 am
You risk being banned for a week if you post duplicate topics. Here is the duplicate topic.
I suggest you delete one of them to avoid moderator action.
You won't get banned for a duplicate post, just told not to do it again. Banning is for something more serious.

You can't delete posts one made (and replied to), but you can report them and ask the moderators to do it for you. Sometimes the duplicate gets locked along with a warning that duplicates are not allowed. This is to inform future posters that it is not right to post duplicates.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 1:14 pm
by Botspot
rpdom wrote:
Fri Jan 17, 2020 7:32 am
You won't get banned for a duplicate post, just told not to do it again. Banning is for something more serious.
I posted a duplicate, and got banned for a week. Never saw a warning, never saw it coming. Just basing off what I have experienced, and trying to keep users from having to learn the hard way too.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 1:17 pm
by rpdom
Botspot wrote:
Fri Jan 17, 2020 1:14 pm
rpdom wrote:
Fri Jan 17, 2020 7:32 am
You won't get banned for a duplicate post, just told not to do it again. Banning is for something more serious.
I posted a duplicate, and got banned for a week. Never saw a warning, never saw it coming. Just basing off what I have experienced, and trying to keep users from having to learn the hard way too.
That is not the norm and I suspect you had done something else to justify a short ban. I have no idea what that might have been. The mods may like to comment.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 1:24 pm
by GlowInTheDark
Or he just caught one of the mods on a bad day.

Re: Getting Permission to Edit Config.txt

Posted: Fri Jan 17, 2020 3:15 pm
by jahboater
GlowInTheDark wrote:
Fri Jan 17, 2020 1:24 pm
Or he just caught one of the mods on a bad day.
The forum rules are simple:
https://www.raspberrypi.org/forums/view ... 63&t=15137
A simple, unintentional, mistake by a new user is not reason for a ban.
Must be something else.
Back to topic, or I'll get banned :)