Questions tagged [command]
186 questions
0
votes
1 answer
cisco commands to kickout users
I need a cisco router commands to end a user session at console port.
The commands will be issued to the router using another software periodically.
The purpose is to end a user session connected to the console port of the router.
Thank you in…

Syahmul Aziz
- 47
- 2
- 8
0
votes
3 answers
how to find out offending user using tty information
I have an script called wow.sh on a shared machine.
'ps -ef | grep wow' shows multiple runs of the same script.
How can I use the tty information to find the offending users ip?

AM01
- 113
- 5
0
votes
2 answers
Cisco command wont work on syxtax checker
I'm trying to validate the building of a tool for managing Cisco ACL commands.
Thing is i'm using the aclcheck sintax validator (i dont own cisco equipament) with the following command do check
access-list 101 permit udp host 192.10.05.233 EQ 80…

jaderanderson
- 3
- 4
0
votes
2 answers
Syntax checker working crazy with cisco
I'm trying to verify only two commands for cisco IOS ACL Extendend.
They are:
access-list 101 deny any 192.168.0.0/23 any
access-list 101 permit udp 192.168.1.1 any
For this i`m using a syntax checker avaliable on the internet located in…

jaderanderson
- 3
- 4
0
votes
2 answers
How do I do a nxdomain check?
my friend says this, but it doesn't work as it says "dig command not found"
dig ns

Alex
- 8,471
- 26
- 75
- 99
0
votes
0 answers
systemctl restart command fails
The server is a VPS running CentOS 7 64bit.
I'm trying to get the server to execute Perl scripts called by a browser (CGI). To this end I have a thread on the webmasters forum. But while trying to perform the recommended tasks to accomplish this I…

jMyk17
- 1
- 1
0
votes
0 answers
Borg-Backup failed with Command in authorized_keys behind a ssh-tunnel?
I setup a PoC for a pull backup with Borg Backup.
In this example a client can only reach the backup server behind a proxy server.
In this case the server where Borg Backup is running open a temporary ssh tunnel over a proxy server and start the…

Wiesel
- 13
- 2
0
votes
1 answer
Subcommand in dockerised app exits with `exit code 1`
I have an application. The application is working on Linux, but I plan to migrate it to the docker container.
I developed some modules that can use embedded PostgreSQL instead of a regular Postgres database. It is working perfectly on my Host, but…

Daniel Hornik
- 152
- 7
0
votes
1 answer
Retrieving Active Directory Users with no Email address from a certain group in powershell
I'm trying in powershell to output all AD users from a certain group with no data in the email address field.
I have the following command:
get-aduser -filter * -properties * | where {!$_.emailaddress} | select-object samaccountname | export-csv…

user970505
- 3
- 4
0
votes
1 answer
How to know in my network which computers have the local administrator account active
As the title says: How do I know in my network which computers have the local administrator account active? Because, as per security consultant request, we have to know, and if possible, disable, every local administrator account on every of the…

sataranights
- 3
- 1
0
votes
1 answer
Linux cli pipeline command tail and grep
I am using tail to monitor a log file and using grep to filer the keyword.
tail -F somefile.log | grep "keyword" is working
tail -F somefile.log | awk '{print $4}' is working
but if to put them together is not working, like tail -F somefile.log |…

olo
- 103
- 3
0
votes
1 answer
exec 2>&1 – execlude some command from being logged to file
I have the following in my bash script:
# catch input for log-data
exec > >(tee -i ${LOG})
exec 2>&1
I want to exclude one command from being written to this log file,
but the following doesn't work:
/sbin/runuser -l USER -c 'COMMAND' >/dev/null…

Omexlu
- 43
- 1
- 9
0
votes
1 answer
I need to rename a file and insert a date
I'm trying to set a daily process to locate a file, rename it and insert the previous date in the file name. I want the file to be named "Filename_MMddyyyy.csv" with MMddyyyy being the previous day. I managed to rename the file but I'm a total noob…

DemagusMiyan1980
- 3
- 3
0
votes
1 answer
How to restrict users switching from su command
How can I restrict users switching by su command?
Suppose there are 3 users (root,user1 and user2) only root and user1 can switch by using su command. root or user1 should not be able to switch to user2 by using su command.
root@instance# su - user1…
0
votes
2 answers
Best way to schedule a task that is be excuted years later
What is the best way to schedule a task that is be executed years later? Like execute a script after 4 years.
Is cron the best method for that?

nitins
- 2,579
- 15
- 44
- 68