0
votes
1answer
11 views

cat /proc/PID/maps permission denied

i try to use this line in the terminal in order to done my homework and i dont understand why it's doesn't work here is my code: #include <stdio.h> #include <stdlib.h> #include <sys/...
-1
votes
0answers
10 views

script to copy backup files from linux server to local machine

hello everyone, need your help as new to scripting. i have a windows machine and every day i have to copy backup file from Linux server to my windows machine. can anybody help to write an ...
0
votes
0answers
9 views

System protection against low memory crashes when not using swap

What would be a good alternative crash prevention method? Preferably not based on maximum (per-terminal) memory allocation limits but the other way around: some way to reserve enough memory for system ...
0
votes
0answers
11 views

To disabled the `PrintLastLog` on the SSH server

I can connect by ssh, and preform commands normally. I can only login successfully connecting by WCP. But after the login it gives this error: Error detecting variable containing return code of last ...
0
votes
1answer
19 views

linux + write syntax in visudo

Nplt user not have the permission to run the command crontab -l so I add this lines in visudo Nplt ALL=(root) NOPASSWD: crontab -l but I get this error isudo: >>> /etc/sudoers: syntax ...
0
votes
0answers
4 views

proxychain unable to resolve ip address

I have my proxychains configured as strict_chain proxy_dns http 172.16.20.2 3128 because I can access internet through 172.16.20.2:3128. But running the proxychains gives me the following error ...
0
votes
1answer
16 views

ubuntu + add root permission for new user account

I have ubuntu version - 12.04 and this is the sudoers file # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # ...
0
votes
2answers
29 views

How to access environment variables from UNIX services dynamically?

I have a command-line program that is periodically run by services (either as a cronjob or by systemd) and it heavily depends on environment variables which are not static (that is, they might change) ...
0
votes
1answer
7 views

Nvidia video card on centos, can not set resolution

I have a dell T3620 workstation with nvidia NVS 315 video card. I installed the video card driver with following commands: yum remove xorg-x11-drv-nouveau* yum install nvidia-x11-drv.x86_64 nvidia-...
0
votes
1answer
11 views

“xfs_copy” equivalent for ext4?

I love xfs_copy's ability to clone an xfs file system from disk to disk. Is there an equivalent tool to clone an ext4 file system? I've tried dump/restore, but it requires the destination file ...
0
votes
0answers
16 views

How can my Linux machine eavesdrop a specific port on another machine using WLAN?

Im using a specific method to transfer data between two computers running linux through port 555 on the WLAN while they are connected to the same wifi. Using a 3rd linux computer I am trying to "...
0
votes
0answers
18 views

Wifi on Ubuntu on Acer Aspire Switch

I have an Acer Aspire Switch 10E, which I have installed Ubuntu 16.04 LTS and Windows 10 Home, as a standard dual installation. I can't connect to my home WiFi network on Ubuntu, it isn't even ...
0
votes
1answer
8 views

Rewrite doesn't work expectedly in NGINX

I'm using the following syntax for my rewrite in NGINX, and as far as I see it's working right! : location / { if (!-e $request_filename){ rewrite ^(.+)$ /index.php?url=$1 ...
0
votes
1answer
22 views

How to indent the whole heredoc (including declaration) and why an hyphen is needed?

If one want to indent an hereodc, it should add and hyphen after the heredoc operator. For example, it should now be <<- instead of the regular <<. But even if you do it, it only gives ...
0
votes
4answers
25 views

Bash - assign array into variable as string

I have this code, it prints the correct result, but I can't figure out how to get the echo from the last line into a variable. # hostname is 'tech-news-blog-324344' . Setting it into array ...

15 30 50 per page