| bio | website | |
|---|---|---|
| location | Cairo, Egypt | |
| age | ||
| visits | member for | 1 year, 9 months |
| seen | May 2 at 18:58 | |
| stats | profile views | 7 |
|
May 27 |
awarded | Popular Question |
|
Mar 3 |
awarded | Notable Question |
|
Sep 13 |
awarded | Popular Question |
|
Sep 6 |
awarded | Supporter |
|
Sep 28 |
awarded | Commentator |
|
Sep 28 |
accepted | How to restrict internet access for a particular user on the lan using iptables in Linux |
|
Sep 28 |
comment |
How to restrict internet access for a particular user on the lan using iptables in Linux Thank you very much. And yes your assumptions are true. Based on your answer and the mentioned ubuntu guide, is that the right way of doing things if I wanted to also grant the restricted user ssh access (sometimes I want to login using his account over ssh): iptables -t mangle -A OUTPUT -o eth0 -m owner --uid-owner 1234 -p tcp --dport ssh -j ACCEPT iptables -t mangle -A OUTPUT -o eth0 -m owner --uid-owner 1234 -j DROP I put those rules as is in the mentioned file and things seem to work fine. |
|
Sep 28 |
asked | How to restrict internet access for a particular user on the lan using iptables in Linux |
|
Sep 17 |
comment |
Is there a way to set the size of the history list in bash to more than 5000 lines? Yup, thank you. |
|
Sep 17 |
awarded | Scholar |
|
Sep 17 |
accepted | Is there a way to set the size of the history list in bash to more than 5000 lines? |
|
Sep 17 |
comment |
Is there a way to set the size of the history list in bash to more than 5000 lines? Reading the GNU readline library documentatin, it turned out that you are right. there is a variable called history-size that can be read from the inputrc file. that variable sets the maximum number of history entries saved in the history list. I checked it's value in my local inputrc file to found it equal 5000. Setting it to a larger value solved the problem. Thanks for the insights :-) |
|
Sep 17 |
comment |
Is there a way to set the size of the history list in bash to more than 5000 lines? if it doesn't place a ceiling, then why setting HISTSIZE to any value greater than 5000 has no effect on the size of the history list after restarting the shell ? If you have a history file of size greater than 5000 lines try setting HISTSIZE in .bashrc to a value greater than 5000, then restart the shell and execute history | wc -l. You would see that the history list is less than or equal to 5000 regardless of HISTSIZE. However, setting HISTSIZE to any value less than 5000 would produce a visible effect using the same experiment. |
|
Sep 17 |
comment |
Is there a way to set the size of the history list in bash to more than 5000 lines? cat ~/.bash_history | wc -l gives 7480 |
|
Sep 17 |
comment |
Is there a way to set the size of the history list in bash to more than 5000 lines? history | wc -l gives 5000 |
|
Sep 17 |
awarded | Editor |
|
Sep 17 |
revised |
Is there a way to set the size of the history list in bash to more than 5000 lines? added 3963 characters in body |
|
Sep 17 |
comment |
Is there a way to set the size of the history list in bash to more than 5000 lines? shopt -s histappend HISTSIZE=50000 HISTFILESIZE=500000 |
|
Sep 17 |
comment |
Is there a way to set the size of the history list in bash to more than 5000 lines? thanks for the reply, but how your .bash_history is 6000-line and meanwhile HISTFILESIZE=999 ? I use GNU bassh version 4.1 |
|
Sep 17 |
comment |
Is there a way to set the size of the history list in bash to more than 5000 lines? It produces: "50000 500000" |