How to I open this file with write permissions?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
freshtamatic
Level 3
Level 3
Posts: 196
Joined: Tue Sep 04, 2018 2:13 pm

How to I open this file with write permissions?

Post by freshtamatic »

I need to open and edit this file, but it wont let me save.
/etc/modprobe.d/blacklist.conf
in properties, it's not letting me change permissions. I'm running LM MATE
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: How to I open this file with write permissions?

Post by catweazel »

freshtamatic wrote: Fri Sep 21, 2018 9:08 am I need to open and edit this file, but it wont let me save.
/etc/modprobe.d/blacklist.conf
in properties, it's not letting me change permissions. I'm running LM MATE
Do it in the command line: sudo nano /etc/modprobe.d/blacklist.conf

ctrl-s to save (Mint 19) and ctl-x to exit.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
freshtamatic
Level 3
Level 3
Posts: 196
Joined: Tue Sep 04, 2018 2:13 pm

Re: How to I open this file with write permissions?

Post by freshtamatic »

Thank you, that worked perfectly!
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: How to I open this file with write permissions?

Post by catweazel »

freshtamatic wrote: Fri Sep 21, 2018 9:26 am Thank you, that worked perfectly!
You're most welcome.

PS: xed admin:///etc/modprobe.d/blacklist.conf

That may be easier in Mint 19 :)
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
karlchen
Level 23
Level 23
Posts: 18225
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: How to I open this file with write permissions?

Post by karlchen »

sudoedit /etc/modprobe.d/blacklist.conf
will work on any Linux Mint release, 19 and earlier.
Caveat: The editor which will be used is nano. So in case nano is not your friend, because you cannot get used to ctrl-commands, well, get used to it nonetheless. :lol:
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
User avatar
Schultz
Level 9
Level 9
Posts: 2959
Joined: Thu Feb 25, 2016 8:57 pm

Re: How to I open this file with write permissions?

Post by Schultz »

For future reference: since you're running Mate, you can simply right click the file and select "Open as administrator."
Locked

Return to “Beginner Questions”