Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to configure lynx to always accept cookies, but without having to hack the OS level configuration in /etc/lynx.cfg.

How can I do this? Note: calling lynx with command line options is not an acceptable answer, but if you need to setup ENVIRONMENT variables, it's ok, I can put them in .bashrc.

share|improve this question
What OS are you using (Linux, I assume)? Why would command line options not be a slution? You could always add an alias to lynx in your .bashrc that includes the options. – terdon Dec 12 '12 at 18:02

3 Answers 3

As I said in my comment, the easiest way to do this (since according to its man page, lynx does not have a user configuration file) would be to add this line to your ~/.bashrc:

alias lynx='lynx -accept_all_cookies'

Then source ~/.bashrc or just open a new terminal and run lynx. SInce it is now an alias, you will get the same behavior as if you had explicitly ran lynx -accept_all_cookies but in a way that is completely transparent to the user.

share|improve this answer

You should be able to copy the system-wide lynx.cfg to your user's home directory and change your desired settings on a per-user level.

share|improve this answer
As per this answer you must edit the global config to allow this – Andy May 12 at 13:25

Okay this is old but I ended up here and there is no correct answer, I read the manual and found that you can add the following to your /etc/lynx.cfg to allow explicit options to be source from a dot file in your home dir.


The following description take straight from the config file explains it better that I could

# Starting with Lynx 2.8.2, the INCLUDE facility is yet more powerful.  You can
# suppress all but specific settings that will be read from included files.
# This allows sysadmins to provide users the ability to customize lynx with
# options that normally do not affect security, such as COLOR, VIEWER, KEYMAP.
# The syntax is
#   INCLUDE:filename for <space-separated-list-of-allowed-settings>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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