1
vote
0answers
4 views

sudo - impersonating a user

I am trying to use the sudo command and sudoers file correctly so that I can run a command as another user. I have my sudoers file set up as follows: beans ALL = (root,apache) NOPASSWD: ...
0
votes
2answers
13 views

bash: regular expressions in if expression

In my script on my ubuntu machine I declare a string like this: DEBUG_PACKAGE_LIST=$(apt-cache search dbg | awk '{ print $1 }' | grep -e "-dbg") For you to help you understand my problem here is ...
0
votes
1answer
17 views

How do I delete a file in a read-only directory?

I've got a directory and a file in it, with the directory marked as read-only: $ mkdir directoryname $ touch directoryname/filename $ chmod a-w directoryname I cannot delete the file, even if pass ...
0
votes
0answers
5 views

similar content Project access from a single file

I create three different project which are access different three different database. Except that all project files are same. so, I want that in a project folder all project files and in other two ...
2
votes
2answers
20 views

Command substitution declaration syntax in bash - which of these two is better practice?

This is part of a bash find loop, and I wondered which is more correct syntax and why? filename="$(echo "$i" | cut -c5-)"; filename=`echo "$i" | cut -c5-`; Both function for the purpose of getting ...
0
votes
1answer
10 views

Setting System Timezone based on a timestamp

I want to set the system date and timezone based on a string that looks like this (output of Javascript new Date().toString()): Fri Aug 01 2014 12:13:27 GMT+0200 (CEST) The standard way to set ...
0
votes
0answers
4 views

KMail: Search for messages with attachment

How can I search for messages with one or more attachments in KMail? The search filters don't show such an option, and when selecting "Message Status" there also isn't a criteria for attachments.
0
votes
0answers
4 views

How to capture INFORMIX DB errors in shell script?

I need to capture the informix DB errors like Update failed, Insert failed using the shell script. I am using ksh shell.
0
votes
0answers
9 views

The equivalent of start-stop-daemon for RedHat

I have an upstart script to create a service in RedHat: env PLAY_BINARY=/usr/bin/play env HOME=/opt/warda env USER=root env GROUP=root [...] script exec start-stop-daemon --start --exec ...
0
votes
0answers
19 views

Get number of installed RAM sticks on server and size

I found that into the directory /sys/block I can list the block devices [root@srv block]# ls loop0 loop3 loop6 ram1 ram12 ram15 ram4 ram7 sda loop1 loop4 loop7 ram10 ram13 ram2 ram5 ...
0
votes
0answers
14 views

LFS 7.5 - How to make GUI [on hold]

I just finished building LFS 7.5 now I'd like to add a GUI to it. But I do not want to add anything like xfce or anything like that. I'd like to make one on my own, but I don't know where to start. ...
0
votes
0answers
8 views

Changing the Java Runtime in NetBean 8 on Ubuntu 14.04

(Not sure if this is the right site for this question - if not please migrate.) I am using Netbeans for C++ on Ubuntu 14.04. Ubuntu comes with the Open JDK Runtime, which is what Netbeans is ...
0
votes
0answers
7 views

Grsecurity: best strategy sought

If a server is run with Linux hardened with Grsecurity (say, Gentoo Hardened), what is the best time to enable Grsecurity RBAC? Automatically by some boot script, or manually after booting?
0
votes
1answer
24 views

Unable to install yum and mysql,ssh

When I go to install mysql on CentOS 6,I get the following error: yum install mysql mysql-server Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile ...
1
vote
3answers
73 views

Transposing File contents

I am trying to transpose a content of a file into another. I am new to shell scripting any help would be really appreciated Input File Test.txt: HLRSN = 3 IMSI = 404212109727229 KIVALUE = ...
0
votes
0answers
10 views

kernel log in /var/log/messages: task xxx blocked blocked for more than 120 seconds . System frozen

Monit sent out emails in the morning that my java app on the server was not responding to HTTP calls made on the 127.0.0.1 interface. App log shows nothing out of the ordinary, nginx log shows no ...
1
vote
0answers
18 views

How to get correct scan codes for my laptop keyboard without pressing a key?

I have a problem with the keyboard of my laptop which doesn't work properly anymore. However I have full control of the laptop via ssh. The problem is that I use a self encrypting disk (Samsung 840 ...
1
vote
0answers
7 views

Triggering a server to shutdown in receiving a signal via serial port (RS232)

I'm a fresh graduate (Electronics & Commn) and want to start my career in linux administration. I'm using a Ubunutu 14.04 server machine for R&D (with ups). Now my scenario is whenever main ...
4
votes
1answer
72 views

Multi-Threading/Forking in a bash script

I have written a bash script which is in following format: #!/bin/bash start=$(date +%s) inFile="input.txt" outFile="output.csv" rm -f $inFile $outFile while read line do -- Block of Commands ...
2
votes
0answers
23 views

How does the kernel store the virtual memory area?

I am trying to understand do_page_fault in fault.c (x86 architecture). I came across the method access_error where we compare the error code to the vm flags. As per my understanding, we are checking ...
0
votes
0answers
5 views

Group Already Exist [migrated]

#!/usr/bin/perl use strict; use warnings; my $group_name = <STDIN>; my $group_id = <STDIN>; my $choice = <STDIN>; print "* My menu *\n"; print "* *\n"; print "* 1. Create a ...
0
votes
3answers
35 views

Bash: Remove all Capital Letters from a particular column

I am having a CSV file containing 3000+ lines in the following format: R1C1, ABC123abc, R1C3 R2C1, DEFG456defg, R2C3 R3C1, HIJKL789hijkl, R3C3 I need to remove all the capital letters from the ...
0
votes
1answer
10 views

Blackscreen and cursor only after booting up KDE in an ArchLinux system

Today I updated my system and answered yes to all doing so. After a reboot I only see the programs that are configured to start on startup and no windows frames are available (however I can interact ...
0
votes
2answers
37 views

How can I specify a long path easily with ln?

I am now under a directory with very long path. For future visiting it quicker, I would like to create a link to it. I tried ln -s . ~/mylink ~/mylink actually links to ~. So can I expand ~ into ...
2
votes
2answers
28 views

How to put the output of the trailing lines of grep in on-line?

Assuming that I have this file: Thu May 8 15:32:07 2014 User-Name = "Mark" Framed-IP-Address = 0.0.0.0 Acct-Status-Type = Interim-Update Acct-Input-Octets = 95684 ...
-3
votes
1answer
36 views

Learning linux at the lower level [on hold]

How do I learn about linux at a low level? I was trying to customize grub and utterly failed and suddenly realized I don't know anything about grub, or anything that low level. Where do I learn?
0
votes
0answers
17 views

Running MySQL in a Docker container

So my ultimate end goal is to run a MySQL Docker container (say tutum/mysql from the public registry) and then link a Gitlab Docker container (say sameersbn/gitlab) to it, where both containers use ...
0
votes
0answers
18 views

Immediately kill MySQL

I have a shared server that someone has compromised Wordpress. Is there an easy way to kill MySQL. I am stopping the service but it is just sitting and waiting.... to stop Shutting down MySQL ...
1
vote
0answers
4 views

How can I find out what's seeding in Vuze if it's not listed anywhere in the application?

I use Vuze (formally known as Azuereus) for downloading torrents. But for some time now it's been seeding something that I can't see or find anywhere. It's not listed in any of the lists that are ...
0
votes
2answers
36 views

Installed Linux, now Windows doesn't boot anymore

I had a working Windows 8.1 which I used regularly. Today I needed Linux, so I chose Ubuntu and installed it from a bootable flash drive alongside Windows. Everything worked well, I could choose which ...
1
vote
1answer
18 views

Fastest and Safest way to increase Swap Space on Scientific Linux

Memory Swap Ratio Company System Today, a monitoring system indicated that one of the systems in the company has run out of memory. Executing htop on this system indicated that the Memory was nearly ...
2
votes
1answer
23 views

Is it possible to force a group member to run something allowed by sudoers as himself only?

The sudoers line is %game_servers ALL= NOPASSWD:/usr/bin/renice which allows group members renice any process run by any user without pw, but I'd like to allow group members renice their own ...
0
votes
0answers
6 views

Flash Debugger on Slackware 64

Given a fresh install of Slackware64, how can I install the 32-bit Flash Plugin content debugger in Firefox and Chrome? Reading through this question, I've got pretty close, but I'm stuck with with ...
0
votes
0answers
8 views

Samba 3 file sharing access permission problem onWindows

I'm trying to set permissions on a server RHEL v5 whith Samba v3. The configuration of /etc/samba/smb.conf is [project] valid users = proyecto, admin writeable = yes ...
2
votes
0answers
18 views

Stopped a process - but unable to continue it - the state is not changed back to “S”

I stopped a processid using the command kill -s STOP $pid, it changed the status of the process id to "T" using a script. Now in the other script I am trying to run the command kill -s CONT $pid, the ...
0
votes
2answers
34 views

Big rsync — push or pull?

I'm about to start a big rsync between two servers on my LAN. Is it better for me to push the files from one server to the other or pull them (backwards)? There is not anything that would make one ...
0
votes
1answer
25 views

Installing CentOS to a flashdrive trouble

I have been using GParted and UNetBootin to install CentOS-6.5-x86_64-minimal.iso onto a flashdrive. I have partitioned the flashdrive as I have a seperate ISO installed on there. The other partition ...
0
votes
0answers
22 views

Detach a process from Sh (not Bash) or “disown” for Sh (not Bash)

Consider a shell script executed by Sh, not Bash (and I can't change it, and can't use a shebang, it's ignored). The & operator works, but disown $! does not and makes Sh complains “disown: not ...
0
votes
0answers
9 views

Create WiFi AP with LXDE

Using the network manager that comes with LXDE, is it possible to create a Wireless Access Point/Hotspot? That is, instead of the laptop connecting to an AP, it creates the AP so other devices can ...
3
votes
3answers
42 views

The most *robust* remote file copy?

How would I go about to copy files over a very unstable internet connection? Sometimes, the connection is lost, other times the IP of one machine or the other machine is changed, sometimes both, ...
0
votes
1answer
12 views

How to add a progress bar to cryptsetup luksFormat?

Example command. cryptsetup --hash sha512 -c aes-xts-plain64 --key-size 512 luksFormat /dev/loop0 This can take quite a while for big files / on slow disks. How to add a progress bar?
-1
votes
2answers
27 views

How to use grep to find all instances of one .txt file in another?

How would I use grep to compare if any line from one .txt document occurred in another? Further how would I use grep to find out the opposite? Would it be grep -v?
3
votes
1answer
22 views

How do I parse a string in bash into variables using a tab as the delimiter and preserve spaces?

I am in the process of writing a bash script to display various statistics, some of which come from a MySQL database. The pertinant code I'm having difficulty with is: read min max rows <<< ...
2
votes
1answer
9 views

Run SSH SOCKS5 proxy on system startup

I want to setup a linux server (Ubuntu Server 14.04 in this case) to be used as a SOCKS5 proxy by software on another client. Now this is pretty easy by running ssh -f -N -D 0.0.0.0:1080 localhost as ...
0
votes
1answer
11 views

Configuring setcifsacl to use local posix user instead of SID for CIFS share on Linux

I have a CIFS filesystem (from a NetAPP) mounted on a Red Hat 6 server using cifs_utils, and am sharing some directories from the CIFS filesystem out over HTTPS via WebDAV. I need to set some ACLs on ...
0
votes
0answers
8 views

Running PFsense X86 on the Arm Chromebook with qemu-kvm [on hold]

I need to run the PFSense on the google-samsung arm chromebook using qemu-kvm. Thanks.
2
votes
1answer
10 views

PCI header in my laptop looks different from free-electrons' PCI header

I'm trying to develope a pci driver but I can not compile it because my pci header is quite different from books and references. My distribution is 3.15.7-1-ARCH. ...
1
vote
4answers
55 views

Delete all but largest file in multiple directories

I have multiple subdirectories in /home/usr/ProjZ/programs/ that each contain multiple (or one) .js files. What I need to do is delete all but the largest .js file, if the subdirectory contains ...
5
votes
1answer
38 views

Why are there so many loopback addresses?

From my understanding, all IP addresses of the form 127.x.y.z are loopback addresses. Now that seems to be quite a waste to me; indeed, already more than one address seems like a waste. Is there any ...
7
votes
3answers
244 views

What is the difference of -a and -e in bash's conditional expressions?

From man bash: CONDITIONAL EXPRESSIONS [...] -a file True if file exists. [...] -e file True if file exists. So what is the difference between [ -a $FILE ...

15 30 50 per page