0
votes
0answers
5 views

How to restore the default signal processing behavior on Solaris?

I have found the signal processing behavior on my Solaris 10 is changed. For example, when I Ctrl+C, the program can't exit. Use psig to check the signal processing behavior: HUP default INT ...
0
votes
1answer
11 views

How do I switch from bash to zsh? [duplicate]

I can start zsh with zsh. How can I make it be the default for new terminal windows? Will it be ok to copy my .bashrc to .zshrc to get things like my customized PS1 prompt.
-2
votes
5answers
27 views

How to change to normal user in the command line?

I log into an system through root via ssh. How do I become the normal user or another user on the system?
1
vote
1answer
16 views

How to tell Firefox to skip connections going to a specific address?

Quite a number of Web sites use the same connection to some Ajax site, which I assume is used to provide some JavaScript to various sites. Where I live, the connection to this is extremely slow, so ...
0
votes
2answers
26 views

What is the difference between installing software as root versus user?

I just installed CentOS 7 with Gnome desktop. In doing so, I created a root password, and added a user. Now I am logged in as the user. I like to install MariaDB server, PHP, and other software. To ...
1
vote
1answer
21 views

scripting copy of remote root-owned files when 'PermitRootLogin no'

I'm setting up a cloud node (only ssh-accessible, GUIs deprecated, running Debian 7) with 'PermitRootLogin no' for security. For some applications I want to copy some root-owned config files from the ...
2
votes
1answer
15 views

read only symlink or something similar?

I created myself a NAT for home use (Ubuntu+Samba+Greyhole+Apache+MySQL+other web server related stuff). 90% of files I store there are pictures that i really don't wanna loose (that's why Greyhole). ...
1
vote
2answers
17 views

Password protect a single folder ( not a web folder )

I run debian and I'm looking to limit a folder to only be accessible by one user. How do I set the permissions up so only that one specific user can enter it, and no other user. The folder I'm talking ...
1
vote
1answer
8 views

how to keep the touchpad but want to deactivate the buttons

The right button on the a acer v5 is broken. It got wet with milk and now it suddenly appears to keep pressed. How cab I deactva the buttons at all to only work with the touchpad? I have opensuse ...
1
vote
1answer
6 views

Create FQDN in LAN for Windows systems without samba

I just set up my raspberry pi. It is working great and I can easily access it from my local Windows machine using SSH. I gave it a custom hostname. I can acces the pi with this hostname only when the ...
0
votes
0answers
19 views

How does bash pass user groups to a child?

It is well-known that if I add myself to a new group, that change will not be reflected until I log out and back in: $ sudo adduser me newgroup $ groups me sudo $ groups me me sudo newgroup $ This ...
1
vote
2answers
31 views

How to find md5sum of files on remote machines by doing ssh?

I am running my below shell script on machineC which gets the md5sum of my files in my PRIMARY directory in machineC itself. #!/bin/bash export PRIMARY=/data01/primary for entry in "$PRIMARY"/* do ...
0
votes
0answers
7 views

Is there a version of script that plays nicely with vim?

man script says: Certain interactive commands, such as vi(1), create garbage in the type‐ script file. Script works best with commands that do not manipulate the screen, the results ...
0
votes
1answer
13 views

Why does Docker need root privileges?

I am learning Docker, and I quite like it. However, I don't understand, why does docker need root privileges for making containers, reading logs, and so on. I have read some articles like this one ...
0
votes
0answers
7 views

Telnet no echo output from xinetd script

I have have installed xinetd, and I wrote a script: #!/bin/bash echo "Some text" touch /home/somefile I made a service configuration under /etc/xinetd.d/ and basically it works when I connect to ...
0
votes
1answer
20 views

Permission denied while getting the md5sum of a file using shell script?

I am running my below shell script which gets the md5sum of a files in my PRIMARY directory #!/bin/bash export PRIMARY=/data01/primary for entry in "$PRIMARY"/* do local_md5sum=/usr/bin/md5sum ...
-2
votes
0answers
28 views

Trying to connect with Ubuntu. Ping possible, navigating not

Why does ping work (see below). But no internet... ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=37 time=82.7 ms 64 bytes from 8.8.8.8: icmp_seq=2 ...
0
votes
0answers
8 views

No volume groups found after restoring CentOS image to VirtualBox VM

I used Clonezilla to backup an HP Proliant server running CentOS 5.10. I restored the image to a VirtualBox VM but when I try to boot I get an error of "No volume groups found" "Volume Group ...
1
vote
1answer
8 views

What prevents RHEL7 default PAM config's “nullok” option from allowing empty passwords?

The config /etc/pam.d/password-auth is included by several PAM services including sshd. This is its auth stanza: auth required pam_env.so auth sufficient pam_unix.so nullok ...
0
votes
2answers
27 views

splitting a column using awk

I have a file like shown below. The 9th column has values joined by **. chrXV 234346 234546 snR81 + SNR81 chrXV 234357 0.0003015891774815342**0.131826816475 + chrXV 234346 ...
0
votes
2answers
19 views

When executing a script via ssh, how can I transfer variables back to the PC issuing the cmd?

I'm writing a pretty simple script that will SSH into the machine of my choice, run a script to obtain things like the number of users logged in, CPU averages, etc, and write it to a file on the PC ...
0
votes
3answers
27 views

Run linux process at very very low priority?

I have regular process that not so important but will consume so much CPU power, and I have another process which is really important, but it spend most of the time idle, but when it got a job it ...
1
vote
1answer
40 views

ssh as super user

I did the following mistake on a remote server : # sudo chmod 700 / Now no user but root can do anything. I can't even ssh as a normal user anymore, since I don't have permission to access bash. ...
0
votes
0answers
4 views

Xampp GUI panel was working in GNOME desktop but now wont in KDE (Kali)

Installed Kali with a gnome dektop (or gnome fallback). Added KDE Desktop and left Gnome in place XAMPP control panel would show under this command (Before KDE change) user@Hades:/opt/lampp$ sudo ...
0
votes
1answer
22 views

Intermittent 'ssh_exchange_identification: Connection closed by remote host' error

While there are many questions on this site and others addressing this very issue, I haven't yet found one that seems to address what I'm experiencing. When trying to ssh a linux box from a MBpro ...
-4
votes
0answers
22 views

shell script to read a log file and display in a readable / good format [on hold]

I need to read a log file which contains date,time,error_name, pid,program crash details and others content. log file is supplied as input file to the script and output should display in following ...
0
votes
2answers
27 views

Bash script: test command -o option

I have a piece of code like this: count=0 until [ -f $filename -o $count -ge 60 ] do count=$((count+1)) sleep 1 done I know [ -f $filename -o $count -ge 60 ] is a test command, "-f $filename" ...
0
votes
0answers
8 views

DNSSEC: how are DS records supposed to be transferred and end up in parent zone?

My notes say that the hash is supposed to securely sent and stored in parent zone so what do I do after: dnssec-keygen -a RSASHA256 -b 1024 -n ZONE mydomain.net dnssec-keygen -a RSASHA256 -b 2048 -n ...
0
votes
0answers
6 views

Can't FTP into Google Compute Engine instance using Debian

After trying to setup vsftpd on my google compute engine instance, I was unable to completely connect to the FTP server. After attempting to login with FileZilla, I got this response: Status: ...
3
votes
2answers
34 views

Why does du and quota results not match?

I have exceeded my disk quota on a system which I do not have root access. I tried removing old files but am still over. I tried runing du to find where I am using up all my space but it reports I am ...
0
votes
1answer
11 views

How to validate/verify .desktop files?

I have a couple of .desktop files that aren't working as expected or not at all. I can't see any error anywhere and asking for help on each one seems unproductive. Is there a way I can verify that I'm ...
0
votes
0answers
7 views

Graphics Expose Event handler issues (X Server)

I have a 2D graphical application (a SCADA system) that needs to redraw regions when the graphics are panned or zoomed. The redraw works fine on one head, but not on multiple heads. The ExposeEvent ...
0
votes
0answers
8 views

No error in lpr but printer doesn't print

I'm having a problem with printing pdf files. When I try to print them in the default mint's document viewer everything seems to work but my printer is stuck with the "Processing please wait" message. ...
0
votes
0answers
10 views

Why will plymouth not update?

I admit I don't update my kernel very often. I used to everytime a stable release of sys-kernel/gentoo-sources came out so I'm very adept at doing it. This last weekend I attempted to update from ...
2
votes
1answer
35 views

Bash - how to make explicit operator precedence without creating a subshell

I'm sure this is posted somewhere, but I haven't been able to find it. In Bash, how does one specify operator precedence (aka command grouping) without creating a subshell? In most other languages ...
1
vote
1answer
56 views

HISTSIZE HISTFILESIZE not working

I have set these global variables in my .bashrc file Running echo $HISTSIZE echo $HISTFILESIZE both return 10000 My History contents are overding, currently from 254 - 432 If I type another two ...
0
votes
2answers
52 views

linux - top command + use top command in bash script

I want to execute the top command from my bash script the problem is that usually when I type the top command on the console , I exit by Ctrl+C. but how to exit from top when I run the top command ...
-1
votes
1answer
13 views

search for a character in one column and replace value in another column of matched records

I have a requirement to find value 2 in column 4 and wherever it matches replace 6th column with '-'sign in the beginning suppose if i have csv file - file1 like this abc,0,def,1234,ijk ...
0
votes
0answers
24 views

Equivalent of Windows nslookup > ls -d for dig in Linux

What is equivalent of Windows nslookup> ls -d in dig because nslookup shows all subdomains but dig doesn't.
0
votes
3answers
14 views

How to write a pattern to a device to use it with badblocks with -t test_pattern option

I recently bought a 4TB hard disk and I want to do a read-write badblocks test on this before I start using it. Since running badblocks with -w option would take ages for 4TB, I've thought to first ...
1
vote
1answer
29 views

What are security implications of shell pipes?

I read the following question (Shell Script mktemp, what's the best method to create temporary named pipe?) but I'm wondering whether it is preferable to use a temporary named pipe to transfer ...
1
vote
4answers
87 views

how to match the number with % from df -k command

in my bash script I want to print the use capacity of /var partition from df -k command I do the following df -k | grep var | awk '{print $5}' the problem is that sometimes "use%" number ...
1
vote
1answer
32 views

How does Linux generate ssh keys after reboot?

I installed CentOS 7, and noticed that I have rsa and ecdsa keys generated. I deleted all of them and rebooted the machine. I got a new pair of rsa and ecdsa keys. How does Linux generate the keys? ...
0
votes
1answer
7 views

Alternatives to xsounds.org for haskell-core on arch linux

Every time I attempt to update my arch system using sudo pacman -Syu it fails because it failed to retrieve some files. The culprit is my ISP. It doesn't give me a reliable connection to the mirror of ...
2
votes
1answer
25 views

Is there a way to express fixed size loops as loop-less expansion statement in bash?

I was wondering whether expansion of {} in bash shell, e.g. of command /path/to/file{1,2,3} works "horizontally", i.e. command /path/to/file1 /path/to/file2 /path/to/file3 or "vertically", i.e. ...
1
vote
1answer
15 views

Why can I not source a file with the default cron installed on a debian wheezy server?

I use cron for years now. In order to load all my environment variables at once (often but not always .bashrc), I define them in a dedicated file that I source in the crontab: * * * * * (. ...
0
votes
1answer
18 views

linux namespace, How to connect internet in network namespace?

I want to test linux network namespace. The current problem is I cannot connect internet in the namespace here is my commands: 1 Create network namespace netns1, create a pair of veths (A and B) ...
0
votes
0answers
13 views

Is it possible to chain GRUBs? [duplicate]

SO I have a weird idea of a setup, and want to get an idea on a best possible way to do it I have a thumb drive I want to put Ubuntu and Kali on as a dual boot, at work I use windows and want to be ...
1
vote
2answers
28 views

List folders that contain more than X images

Is there a way to return a list of all folders on a given disk containing more than X images ? The search should be recursive but X should not. Example for X=100 : Folder A |_ folder A1 ...
0
votes
0answers
31 views

Using grep to locate string from a text file [on hold]

I need to use it to so the program asks the user for the text file and then the string located in that file. Then the program will tell the user whether the string exists in the file.

15 30 50 per page