09-09-2018
Take a look at what SELinux is doing for you.
Last edited by Aia; 09-09-2018 at 01:40 PM..
This User Gave Thanks to Aia For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Could someone tell me why I am getting a permission denied message when I attempt to run this on an out file? Thanks! (8 Replies)
Discussion started by: trouscaillon
8 Replies
2. UNIX for Dummies Questions & Answers
I would like to copy data from local mechine to cluster. Basically, I typed
scp -r DVD/ acount@cluster:/
it shows Permission denied.
Could anyone please give me a clue to write permission on cluster, please?
The poperty of where on cluster I'd like to put is drwxr-xr-x
Any idea would... (1 Reply)
Discussion started by: su_in99
1 Replies
3. UNIX for Advanced & Expert Users
guest@ulidtko:~$ id
uid=126(guest) gid=134(guest) groups=134(guest)
guest@ulidtko:~$ ls -ld /home
drwxr-xr-x 8 root root 4096 May 12 19:47 /home
guest@ulidtko:~$ ls -l /home
ls: cannot open directory /home: Permission denied
guest@ulidtko:~$ cat /proc/mounts
rootfs / rootfs rw 0 0... (4 Replies)
Discussion started by: ulidtko
4 Replies
4. HP-UX
Whenever I try to open xterm, below error loops in itself
adroit:/home/seo/hitendra/.dt 32> xterm &
open ttydev: Permission denied
open ttydev: Permission denied
open ttydev: Permission denied
open ttydev: Permission denied
....
....
....
This error sometime comes ,sometime not.... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies
5. Shell Programming and Scripting
I created a user so that when he logs in he will be directed to a menu
/etc/passwd
user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh
However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies
6. UNIX for Advanced & Expert Users
Hi all,
I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...).
I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message.
Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies
7. Linux
Hello
I have simple line of code here:
FILE *lockfp = fopen("/var/lock/subsys/processName", "w");
which is denied even running as root. The result is
locking failed for the following reason: Permission denied
How is this possible? Why is this happening?
Thanks for your... (4 Replies)
Discussion started by: flagman5
4 Replies
8. Linux
I am using korn shell
When I type in Telnet on cmd line, I get message
"cannot execute"
How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there
Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies
9. UNIX for Dummies Questions & Answers
when i run echo "User” > /dev/tty5 why do i get permission denied? :confused: (2 Replies)
Discussion started by: chinababy
2 Replies
10. Ubuntu
Trying to get date into the txt file.
It says
Permission denied.
echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt
exec 2>> /tmp/systemd_suspend_test_err.txt
if ; then
# Do the thing you want before suspend here
echo "we are suspending $(date +%I:%M:%S_%D)."
elif ;... (5 Replies)
Discussion started by: drew77
5 Replies
LEARN ABOUT DEBIAN
test::mock::redis
Test::Mock::Redis(3pm) User Contributed Perl Documentation Test::Mock::Redis(3pm)
NAME
Test::Mock::Redis - use in place of Redis for unit testing
VERSION
Version 0.08
SYNOPSIS
Test::Mock::Redis can be used in place of Redis for running tests without needing a running redis instance.
use Test::Mock::Redis;
my $redis = Test::Mock::Redis->new(server => 'whatever');
$redis->set($key, 'some value');
$redis->get($key);
...
This module is designed to function as a drop in replacement for Redis.pm for testing purposes.
See perldoc Redis and the redis documentation at <http://redis.io>
SUBROUTINES
/METHODS
new
Create a new Test::Mock::Redis object.
It can be used in place of a Redis object for unit testing.
It accepts the "server" argument, just like Redis.pm's new.
TODO
Lots!
Not all Redis functionality is implemented. The test files that output "TODO" are still to be done.
The top of all test files [except 01-basic.t] has the list of commands tested or to-be tested in the file.
Those marked with an "x" are pretty well-tested. Those marked with an "o" need help. Those that are unmarked have no tests, or are un-
implemented. For example:
x AUTH <--- has some tests
o KEYS <--- only partially tested and/or implemented
ZINTERSTORE <--- not tested (or maybe not implemented)
Beyond that, it would be neat to add methods to inspect how often keys were accessed and get other information that allows the module user
to confirm that their code interacted with redis (or Test::Mock::Redis) as they expected.
AUTHOR
Jeff Lavallee, "<jeff at zeroclue.com>"
SEE ALSO
The real Redis.pm client whose interface this module mimics: <http://search.cpan.org/dist/Redis>
BUGS
Please report any bugs or feature requests to "bug-mock-redis at rt.cpan.org", or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Mock-Redis <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Mock-Redis>. I will be
notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Test::Mock::Redis
You can also look for information at:
o RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Mock-Redis <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Mock-Redis>
o AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Test-Mock-Redis <http://annocpan.org/dist/Test-Mock-Redis>
o CPAN Ratings
http://cpanratings.perl.org/d/Test-Mock-Redis <http://cpanratings.perl.org/d/Test-Mock-Redis>
o Search CPAN
http://search.cpan.org/dist/Test-Mock-Redis/ <http://search.cpan.org/dist/Test-Mock-Redis/>
ACKNOWLEDGEMENTS
Salvatore Sanfilippo for redis, of course!
Dobrica Pavlinusic & Pedro Melo for Redis.pm
LICENSE AND COPYRIGHT
Copyright 2011 Jeff Lavallee.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as
published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
perl v5.14.2 2012-04-16 Test::Mock::Redis(3pm)