SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: melp57 on November 14, 2018, 11:50:19 PM

Title: Edit system filles
Post by: melp57 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
Title: Re: Edit system filles
Post by: pavroo on November 15, 2018, 12:04:06 AM
Use sudo instead of root account:
sudo nano /path/to/file
Title: Re: Edit system filles
Post by: melp57 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. 
Title: Re: Edit system filles
Post by: pavroo 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):
sudo thunar
Title: Re: Edit system filles
Post by: melp57 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.