Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Edit system filles

Started by melp57, November 14, 2018, 11:50:19 PM

Previous topic - Next topic

melp57

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

pavroo

Use sudo instead of root account:
sudo nano /path/to/file
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

melp57

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. 

pavroo

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
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

melp57

Thank you for the information, and I understand the risk involved. I'm not going to do much with it.

View the most recent posts on the forum