Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 2592  / 1 Year ago, tue, may 2, 2023, 4:14:41

I have lubuntu 12.04, and I installed emacs using:



sudo apt-get install emacs


Whenever I try to edit/make a file, however, nothing shows up unless I run it under sudo. So I need to type in



sudo emacs "filename" 


everytime. Can anyone help me out? This is really annoying.


More From » lubuntu

 Answers
6

This might be a permission issue on the current directory you were working on.
And the file you created is not your ownership since you send a sudo command on it.



Try to check your current directory's permission.



If you don't have permission to it you can have



$ sudo chmod -R 755 Your_Directory/


or



change the ownership of that directory.



$ sudo chown -R user Your_Directory/


Next time you create a file just type



$ emacs "Your File in Here"

[#38640] Tuesday, May 2, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imonove

Total Points: 82
Total Questions: 113
Total Answers: 106

Location: Saint Vincent and the Grenadines
Member since Wed, Nov 3, 2021
3 Years ago
;