← Back to team overview

enterprise-support team mailing list archive

Re: [Question #250889]: Suddenly getting permission refused to save edits made using /etc command

 

Question #250889 on samba in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/samba/+question/250889

    Status: Open => Answered

actionparsnip proposed the following answer:
This is normal. The file un /etc you tried to edit is not writable by
users. This is a security feature and is how Ubuntu has worked since day
one.

If you want to edit files that are not writable by your user you must
first be in the sudo group which your first user is by default.  You can
then use the sudo command to get the extra access you need in order to
edit files.  So running :

gedit /etc/nsswitch.conf

Will allow you to save the changes to the original file. Sudo has
finally been updated in polkit so is ok with GUI applications. Older
releases need to use gksudo for GUI applications to avoid issues.

-- 
You received this question notification because you are a member of
Ubuntu Server/Client Support Team, which is an answer contact for samba
in Ubuntu.