0

I was searching for login screens like mac and I got this one

MAC OSX LOGIN SCREEN

I did everything correctly and suddenly I was told to edit

/etc/lightdm/lightdm.conf

I opened the file in gedit and I changed it but I couldn't save it - I got the error "you do not have permission to edit this file". I saw from the permissions that only root has permission to edit it, so I ran

sudo su 

which logged me in as root, but I was still not able to complete the edit.

How can I edit and save this file?

1

You can use gedit or nano (among others) as below

sudo nano /etc/lightdm/lightdm.conf
sudo -H gedit /etc/lightdm/lightdm.conf

Then Ctrl+S for gedit or Ctrl+O for name to save your edits.

Either will do fine, the only difference is that nano is a terminal-based editor while gedit has its own GUI.

| improve this answer | |
0

Try to open your lightdm.conf file with this command instead with your normal user (not root):

sudo -H gedit /etc/lightdm/lightdm.conf
| improve this answer | |
0

Open the terminal and enter this code:

sudo -H gedit /etc/lightdm/lightdm.conf

Enter your user password at the prompt.

Edit the file as needed and save it.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.