-2
votes
2answers
112 views

Misuse of go-r *

I am working on a test server. Was logged in as root and issued cd / chmod go-r * I certainly revoked the write permissions for the users that I had created. Did I revoke the permissions (r/w/x) ...
0
votes
1answer
492 views

merge unsorted file to sorted file using shell command

I want to merge/join or produce a new merged file . Both files contain common IDs in the first column . File 1 looks like this ID Tb927.4.4670 Tb927.8.3630 Tb09.160.4310 Tb927.8.3650 File 2 ...
0
votes
1answer
526 views

rkhunter warnings about a script and a hidden directory

When I run a scan with rkhunter I get 2 warnings. I checked the log file and warnings are as the following: Warning: The command '/usr/bin/unhide.rb' has been replaced by a script: /usr/bin/unhide.rb:...
6
votes
2answers
14k views

cronjob for automatic DB backup to date prefixed file

I am using the latest Linux Mint. I was wondering if it's possible to create a special cronjob for a database backup. In my /etc/cronjob file I have the following code: # Minute Hour Day of ...
-2
votes
2answers
93 views

How to delete a directory from terminal?

I'm trying to delete a directory after a series of events take place. That being said, I need to be able to place this in a file to execute once said events take place.
1
vote
0answers
212 views

xrdp: Super_L not working

My virtual machine runs xrdp and when I connect with rdesktop, the "windows" key (i.e. Super_L) is not assigned properly. Using xev I see that when the windows key is pressed, instead of showing ...
0
votes
2answers
149 views

clone create date [duplicate]

I would like to clone only the create date and the filenames in source and destination are different. The name part of it is the same, it's the extension that isn't. AVI videos in one directory, MP4 ...
3
votes
1answer
5k views

Why is swap used when a lot of memory is still free? [duplicate]

In the below 2.6.18 Linux Kernel (Red Hat) server, there is a lot of free memory, but I see some swap is used. I always thought of swap as an overflow when memory has been depleted. Why would it ...
3
votes
3answers
596 views

Source files with `*.in` extension

When poking around in some source code trees, sometimes I encounter files with extension "*.in", typically for non-compiled files that belong somewhere under /etc or /usr/share. For example, in ...
2
votes
2answers
141 views

How do I emulate su's behavior with sudo?

I'm trying to make sudo ask for target password, except when run by root. Here's what I do: Defaults:!root targetpw This way it asks for my password, and if I make it like this: Defaults:yuri ...
2
votes
2answers
154 views

Limiting number of processes by name

is it possible to limit number of processes for a given group or user using the process name? Eg. I'd like to groups remotes have only 5 simultaneous ssh processes that are run on my server. I don't ...
1
vote
2answers
1k views

start qemu by giving it a path to a linux root

Good evening, I installed ArchLinux on a USB stick, and I would like to boot it in qemu. Unfortunately, most examples I found boot an image (iso..). The stick is definitely bootable as if I restart ...
1
vote
2answers
669 views

Show two desktop pagers with different settings in KDE

I'm trying to set up a CentOS 6 system with KDE. I have an older system that use gnome that I'm happy with, and I'm trying to make the KDE system behave as much like the gnome one as possible. The ...
4
votes
3answers
789 views

How do I read the output of commands in a script

I'm learning Linux scripting at the moment, and one thing I can get working is assigning a command output to a variable. The command service httpd configtest returns Syntax is OK, so I wrote this. #!/...
9
votes
2answers
586 views

Which is the most portable of sed, awk, perl and sh?

Can someone put these tools in order of portability? Which of these is certain to be found on even the most minimal *nix systems? Is any of them 100% sure to be present? My guess is that the order is ...
2
votes
0answers
36 views

How to find what thing make a cycle in systemd [duplicate]

when boot with systemd, my system display this message: systemd[1]: Found ordering cycle on basic.target/start systemd[1]: Walked on cycle path to sysinit.target/start systemd[1]: Walked on cycle ...
1
vote
2answers
865 views

How to validate X.509 certificate?

I have a following expired X.509 certificate: $ openssl x509 -in openvpn.net -text -noout Certificate: Data: Version: 3 (0x2) Serial Number: 03:fa:55:a7:80:b5:b5 ...
5
votes
3answers
705 views

ls --color: how to color executable hard links?

I created some hardlinks on an NTFS drive, but because of that, they are all executable and colored as executable instead of as hardlinks (regular file with more than one link). I did a test on my ...
1
vote
1answer
46 views

Text pre-processing How to run many scripts at once

I have many scripts for text cleaning, is there a way to execute all of them at once instead of doing that one by one, for example I have : sed -i -r "s/[’'–]/ /g" *.txt sed -i 's/Aβ/ ABeta /g' ./*...
8
votes
2answers
634 views

How do I elevate privileges in the middle of pipeline?

My guess was as follows: echo "Generating some text" | su - -c cat >/output/file But su says: su: must be run from a terminal What would you do?
4
votes
3answers
2k views

How to commit a modified file if it wasn't locked by RCS beforehand (and I'm using Emacs VC mode)?

Sometimes, a file under the control of RCS gets modified while it is not locked (= checked out for modification by me). (In these cases, it was actually set read-only by RCS to prevent such ...
1
vote
1answer
56 views

Will having dozens of inactive logins hurt performance

I work on a cluster shared with ~20 users, many of them operating remotely. It's quite common to open the login node, type users and see ~100 users listed, mostly the same user logged in multiple ...
1
vote
1answer
1k views

Where can I find openbox logs?

I have a multi head openbox setup with fglrx as my drive. I chosen openbox from the gnome login screen of 12.10. My openbox crashes when I click to desktop left or right, but this does not happens ...
4
votes
1answer
138 views

Linux: How to calculate/find the slackspace of a file?

How would I go about finding the slackspace of a file, for instance. fls -o 63 /images/diskimg.dd istat -o 63 /images/diskimg.dd 31 icat -o 63 /images/diskimg.dd | xxd | less In which of these ...
1
vote
1answer
1k views

E: python-setuptools upgrade fails, apt-get broken

I wanted to install gnome-maps with apt-get, and then I got this error: Preparing to unpack .../python-setuptools_3.4.1-1_all.deb ... Unpacking python-setuptools (3.4.1-1) over (3.3-1) ... dpkg: ...
8
votes
6answers
8k views

How to keep Bash running after command execution?

I would like to run something like this: bash -c "some_program with its arguments" but to have an interactive bash keep running after some_program ends. I'm sure -c is not a good way as man bash ...
1
vote
1answer
75 views

AWK - every thing in one line? [closed]

Hello can I make several changes in a file using just on line with awk? For example, transform this: awk < towhee_input5 -v k="$nstep" 'NR==18 {$0=k}{print}'> towhee_input6 awk < ...
0
votes
1answer
291 views

Can continually assigning a variable in a shell script cause a memory leak?

I've written a short script to copy Apache's server status to a log: #Save date and time to a variable dt=$(date) #Echo date and time to the log file as it's not included in server-status echo "Time ...
1
vote
1answer
2k views

Understand debug messages from sshd [closed]

I'm using OpenSSH_5.8p1 in my machine,I'm connecting my machine using putty client but its slower so I have ran sshd in debug mode and found following messages can any one explain me in detail about ...
0
votes
1answer
91 views

Does NetBSD supports ppc64?

Searching for ppc64 on NetBSD's website: site:www.netbsd.org "ppc64" didn't returned any good hits.. https://en.wikipedia.org/wiki/Ppc64 My question: Does NetBSD supports the ppc64 ...
23
votes
3answers
2k views

When is a reboot required?

Apart from upgrading the kernel, are there any changes to a Linux system that require a reboot? I know there are situations where a reboot makes things easier, but are there any that cannot be ...
0
votes
0answers
105 views

gnome-screensaver or xscreensaver is better regarding security?

I'm using Ubuntu 12.04. I used to use gnome-screensaver.. but.. it happened too many times that when I closed the lid of my notebook, it suspended itself, OK, but after I wanted to turn it on again.. ...
2
votes
1answer
675 views

inotifywait not working when folder is deleted and re-created

I am trying to use inotifywait to monitor a folder: inotifywait -m -r /home/oshiro/Desktop/work_folder The command works and if I create files in that folder, all seems to work correctly. While ...
6
votes
2answers
4k views

What is the interface scope (global vs. link) used for?

Routing table entries have an attribute scope. I would like to know how the change from global to link (or the other way round) affects the network system.
5
votes
2answers
8k views

Does changing of the swappiness need a reboot?

If I configure the swappiness value to another, from ex.: 60 to 0, then I always need to reboot the machine to the changes to take effect? Even when modifying with: sysctl -w vm.swappiness=0
1
vote
1answer
197 views

How to use one nic for storage traffic & other for network traffic in Linux(Slackware)?

Problem I have a Linux machine (Slackware) with two network interface cards and i want to use one interface for network traffic and other for storage traffic . As this is Slackware i dont know this ...
0
votes
2answers
534 views

Centralized logs for tomcat logs

We have 20 centos server and on each server we have 5 tomcats running. All time developer comes for logs so we are planning to keep all tomcat logs one URL so that Developer comes to that URL and ...
1
vote
1answer
35 views

rsync from Mac ext hd to VPS works but not VPS to Mac

There are no errors with either rsync -a /Volumes/hd/dir_foo foo@foo.com:~/ or rsync -a foo@foo.com:~/dir_foo /Volumes/hd/dir_foo in the first instance the synced folder on remote system CentOs ...
4
votes
1answer
1k views

Possible issues with SSD SATA3 drive

While investigating the issue with my SATA3 SSD drive being recognized as SATA2 (for some reason had to change SATA ports to fix it) I noticed the following messages when I run: $ dmesg | grep ata3....
2
votes
1answer
3k views

Difference between “eval” and “source /dev/stdin”

What is the difference between eval and source /dev/stdin? For example, we can run a list of commands in various ways like this. with eval. comd="ls" eval "$comd" with source /dev/stdin printf "...
21
votes
1answer
6k views

User permissions inside and outside of LXC containers?

I'm running some services inside of Docker LXC containers on my server and I'm beginning to actually do serious things with them. One thing I'm not clear on is how user permissions work inside and ...
0
votes
0answers
35 views

Is it possible to edit the '$' or '#' symbols for users? [duplicate]

What file needs to receive edits in order to make such adjustments?
2
votes
1answer
2k views

How do I determine where DNS requests fail in the TCP stack?

I have the networking setup described here: Why is this static route not taking effect? Currently, I can ping my DNS server but all DNS requests fail: ~$ ping 130.35.249.52 PING 130.35.249.52 (130....
2
votes
1answer
12k views

How can I copy a file from a usb drive to a directory on the hard drive in Centos 6?

I would like to copy some files from a usb to a ssd hard drive running CentOS 6.5 How do I do this?
1
vote
0answers
168 views

Transparent encryption of bash history?

I'm not sure if anyone has done such things before. I want bash history to be fully encrypted, prompt for password when in interactive session. Is that possible?
0
votes
1answer
528 views

Switching from Xorg to console does not work

I am running Debian testing with Xfce. When I boot the machine I can see some usual booting messages, the last message is this: Waiting for /dev to be fully populated ... After a short time (1-2 ...
1
vote
0answers
70 views

OpenVPN not connecting on one network?

I've been using my VPN (privateinternetaccess) for almost a year. I've been connecting through the same gateway, using the same username and password, with the same settings. Yesterday, it randomly ...
1
vote
0answers
112 views

Disable a monitor from multi head

I have a multi head config. I wish do disable one of the screen from cli. My multi head is configure as a one virtual monitor and the monitors shows the segments of it. Xrandr --off messes up the ...
3
votes
1answer
74 views

Grsecurity subject mode x

I am conducting some research on Grsecurity on Hardened Gentoo, see http://en.wikibooks.org/wiki/Grsecurity. To be more specific, I am trying to find an example where subject mode x makes a difference....
0
votes
2answers
43 views

ssh to a new user in ubuntu

I created an user in ubuntu and now I want to do ssh with that user. I'm able to do ssh but I'm not getting in the shell: myUserName@myMachineName:path$ I just get: $ And I don't see the path ...

15 30 50 per page