Advertising

Author Topic: Edit system filles  (Read 132 times)

Offline melp57

  • Newbie
  • *
  • Posts: 11
Edit system filles
« on: November 14, 2018, 11:50:19 pm »
How can I get get permission to edit smb.conf? When I try to save, it says permission denied. Other distros I've used will let me open file as root.
How can I get that on sparkylinux?
Thanks

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
    • SparkyLinux
Re: Edit system filles
« Reply #1 on: November 15, 2018, 12:04:06 am »
Use sudo instead of root account:
Code: [Select]
sudo nano /path/to/file
Nothing is easy as it looks.
Danielle Steel

Offline melp57

  • Newbie
  • *
  • Posts: 11
Re: Edit system filles
« Reply #2 on: November 15, 2018, 12:38:58 am »
Thanks for the reply, it did the trick. How can I gain access (ownership) of files, so I can edit in file manager, such as Thunar. 

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
    • SparkyLinux
Re: Edit system filles
« Reply #3 on: November 15, 2018, 01:05:31 am »
You can edit all files running them in Thunar (for example) in your home dir.
If you would like to edit files via Thunar, which belongs to root, you can run Thunar with sudo, and then do what you need (on your own risk):
Code: [Select]
sudo thunar
Nothing is easy as it looks.
Danielle Steel

Offline melp57

  • Newbie
  • *
  • Posts: 11
Re: Edit system filles
« Reply #4 on: November 15, 2018, 01:17:13 am »
Thank you for the information, and I understand the risk involved. I'm not going to do much with it.