Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1665  / 3 Years ago, mon, october 18, 2021, 4:02:50

I'm doing a syslog server project for my summer training. I'm a novice but I'm sure the challenges the project will bring can give me a shot of becoming more proffessional and take up System Administration. I am using Ubuntu server 12.04 and I have installed syslog-ng. However, the command /etc/syslog-ng/syslog-ng.conf, is returning:



 -bash:/etc/syslog-ng/sylog-ng.conf: Permission denied 


What can I do to access the configuration file.


More From » server

 Answers
4

By typing just /etc/syslog-ng/syslog-ng.conf in the command prompt, you are telling your shell to run the file. However, since the file has not been marked as executable (and it should not be, as it's a configuration file!), you'll get an error message. You would get the same error message by trying to run any file that does not have the +x bit set.



The file should be opened in a text editor. Configuration files residing in /etc are system-wide and editing them is restricted to the superuser only. By typing in sudo gedit /etc/syslog-ng/syslog-ng.conf and entering your password when asked, you'll get a text editor to edit the file and save any changes you'll make.


[#30275] Tuesday, October 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
girdleas

Total Points: 1
Total Questions: 112
Total Answers: 114

Location: Lesotho
Member since Wed, Jun 2, 2021
3 Years ago
girdleas questions
;