Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-08-2017, 04:06 PM
|
#1
|
LQ Newbie
Registered: Jan 2017
Posts: 4
Rep: 
|
dansguardian installation
I loaded dansguardian. When I tried to open I received the below error
:Error creating cache file. Do you have write access to this area: "/etc/dansguardian/lists/blacklists/ads/domains.processed"?
Any assistance would be greatly appreceiated
|
|
|
01-08-2017, 04:57 PM
|
#2
|
Member
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419
Rep: 
|
Have you checked the permissions? It is saying you don't have write permission to write that file. Did you install as a normal user or as root? I would guess you installed as root and are trying to run as a normal user.
|
|
1 members found this post helpful.
|
01-09-2017, 06:02 PM
|
#3
|
LQ Newbie
Registered: Jan 2017
Posts: 4
Original Poster
Rep: 
|
You are correct, I installed as a root, and then back to sudo user. With that said would I be able to log in as a root user and then it should open?
I guess I can answer my own question, but please correct me if I am wrong, This would just allow me to write to the file, probably this is just the first of many errors to be resolved.
I hope I am wrong.
|
|
|
01-09-2017, 06:47 PM
|
#4
|
Member
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419
Rep: 
|
I don't know, but that is my thinking. Rather than hunting around in the dark, why don't you just check the permissions?
Code:
ln -l /etc/dansguardian/lists/blacklists/ads/domains.processed
|
|
|
01-09-2017, 07:47 PM
|
#5
|
LQ Newbie
Registered: Jan 2017
Posts: 4
Original Poster
Rep: 
|
Thank you,
Error does not come up when logging in as as su. Can I add my sudo log in to the permissions?
|
|
|
01-09-2017, 08:37 PM
|
#6
|
Member
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419
Rep: 
|
Obviously the program must be run as root. Sudo is not a login. Sudo allows you to run a single command as if you were root. So, if you run the program with 'sudo program.name' then the program gives you root powers for it while it runs. It sounds very much to me that you need to learn more about Linux permissions. They are not complicated and learning them now will help you with all sorts of problems in the future and will let you avoid problems/questions like this. You might try https://www.linux.com/learn/understa...le-permissions for an explanation. Moving on without reviewing will cause you to have the same problems over and over and may lead you to make mistakes which could prove disastrous. The permission system is one of Linux's major security features.
|
|
1 members found this post helpful.
|
01-10-2017, 05:36 AM
|
#7
|
LQ Newbie
Registered: Jan 2017
Posts: 4
Original Poster
Rep: 
|
Thank you, for your assistance and I will
follow your advise on that. I'm thinking I better get a somewhat more comprehensive overview of the system and relative functions for my intended purposes.
|
|
|
All times are GMT -5. The time now is 09:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|