2
votes
1answer
200 views

How do I limit local user file system access? What is the best method?

I have a Linux installation with a default user and an admin user (and root). On startup, the default user is automatically logged in and a particular application is launched. My intention is to ...
4
votes
1answer
2k views

Variable scope in while-read-loop on Solaris

Could someone please explain to me why my while loop seems to have an internal scope? I've seen multiple explanations online but they all have to do with pipes. My code has none. The code: #!/bin/...
2
votes
1answer
3k views

why are there 3 debian DVD isos + 2 update DVD isos in my local debian mirror?

I want to try Debian for the 1st time and I wanted to download the full DVD so I went to my local Debian mirror and what I see are 3 DVDs and 2 update DVDs. what is each? Do I need more than just the ...
2
votes
1answer
486 views

Is PAM a user authentication method?

If someone asks that PAM is a user authentication method? Then can we say yes? Or no?
1
vote
2answers
52 views

What does this regular expression do?

I have been provided a %post script inside a spec file to edit a config file (called foo). I have ben tasked with writing another, almost identical script to edit a file called 'bar'. While my ...
0
votes
1answer
221 views

The shell command “top” shows which processes from the /proc directory?

The manual page states, The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of processes or threads ...
3
votes
0answers
134 views

Figuring out physical cache layout in FreeBSD

I'm trying to figure out they physical cache layout of my CPU in FreeBSD 10. I see the following from sysctl kern.sched.topology_spec kern.sched.topology_spec: <groups> <group level="1" ...
24
votes
3answers
31k views

What is the basic difference between Arch and Gentoo Linux? [closed]

What is the difference between Arch Linux and Gentoo Linux? Their ideologies seem quite similar to me.
2
votes
3answers
420 views

File ID that doesn't change upon rename

I am trying to write a system utility script that will run as a cron job and capture file system statistics and environment settings in order to track as many changes as possible. Consider the ...
2
votes
1answer
918 views

Why is the 'foreign address' not IP address but something like this?

I never learned network programming and this kind of stuff properly. Only know very basic stuff like IP address and just a vague concept of what ports and TCP/IP are. Here, I connected to my lab's ...
1
vote
1answer
289 views

ICMP timestamp requests

Is there a way to disable ICMP timestamp requests without using iptables on our RedHat 5 and 6 servers? We are not using iptables because we use a hardware-based firewall. Is there any setting (say,...
4
votes
3answers
3k views

Editing INI-like files with a script

I'm writing a script to automate setting up Puppet agent configuration files in Docker. Basically, I need to ensure that the following section is in /etc/puppet/puppet.conf: [agent] server=$...
-1
votes
3answers
505 views

What user-friendly distro uses same commands used in Kali Linux? [closed]

I want to use a distro that uses same terminal commands as Kali. I see that Kali is based on Debian, Debian is generally a base and not an end-user OS, so I want some distribution that I can run as my ...
5
votes
1answer
223 views

What else can break if I remove export from a variable?

My problem is that when I started coding my script I encountered several variable scope issues which resulted in the bad habit of exporting almost all my variables. Now that my code has got quite ...
1
vote
0answers
33 views

“including” files in fstab [duplicate]

It would be nice on some systems to break up one big fstab file and replace it with an fstab file "including" other files. Also it would be nice to mount things from a secondary "fstab" file relative ...
1
vote
1answer
61 views

How can I search for a user account in various sudo related config files?

I'm a scripting newbie...and I would like to search multiple servers for user ss7459 in the following files /etc/sudoers, /etc/sudoers.d/itse, /etc/sudoers.d/dbas and /etc/group. NOTE: The numbers ...
0
votes
1answer
3k views

How to reactivate remote desktop service “No Machine” using command line?

I wanted to connect to a Red Hat host with GUI. I have installed "No Machine" on that server. It worked perfectly. I got back to work a week later and the software is still installed but it no longer ...
1
vote
0answers
32 views

Downloading distro source

I'm using LDME, a Debian based distro. Is there someway, preferably automatic, where one could download the source to everything that might be executed and everything needed by those executables? I'd ...
1
vote
0answers
83 views

Min max buttons not displayed

What can be the cause for min max buttons not getting displayed for some windows in a jave ui application. I have runned command gsettings set org.gnome.desktop.wm.preferences button-layout :...
2
votes
1answer
4k views

NVM cannot find installed Node binary, PATH problem on Linux Mint 17?

I've successfully installed NVM and Node using official instructions. My .bashrc file contains [ -s "/home/user/.nvm/nvm.sh" ] && . "/home/user/.nvm/nvm.sh" After some time, maybe a day, I ...
1
vote
0answers
389 views

How to debug a semop failure?

Using a 2.6.30-gentoo-r4 Linux a very complex system of php code is executed (with 4.4.9-pl0-gentoo and 5.2.10-pl0-gentoo), which occasionally runs into a semaphore blocking problem. The call to the ...
6
votes
2answers
2k views

How to get mouse click position?

I know I can get the position of the mouse pointer by executing xdotool getmouselocation. What I need is program that will run and let me know the position where the mouse pointer clicks.
1
vote
1answer
121 views

Why do these two find-commands give different results?

I wanted to see all files modified within the last 10 days and who owned them, so I entered the following to give me an idea how many results would be returned; find . -maxdepth 1 -mtime -10 I then ...
1
vote
1answer
1k views

Randomize external port when doing NAT with iptables

I want to configure a NAT behavior different from the default one implemented by iptables. In this example: iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 193.49.142.107:2000-400 The ...
1
vote
1answer
526 views

Installing RHEL6.5 by swapping RPMs

BACKGROUND So I've been tasked with updating a system from RHEL6.0 to RHEL6.5 via a bootable USB. Due to size limitation, I've stripped (using the rpm -e command to prevent dependency errors) ...
-6
votes
2answers
2k views

String pattern searching [closed]

I'm new to linux. I want to be placed as a System Admin. I attended an interview at Amazon. They asked me to write a cmd to find the string that starts with 's' and ends with 'a' in a file. I jz know ...
2
votes
0answers
26 views

Password dialogs block keybindings

I am using XMonad 0.11, but this might be unrelated. I am using evolution 3.12.2 and this is related but the problem might be more general. After research it appears that the window in question is ...
4
votes
1answer
6k views

Minimum file permissions to delete a file [duplicate]

To delete a file in Linux: What minimal permissions do we need to set on it? What minimal permissions do we need to set on its parent directory?
2
votes
1answer
167 views

Credential in PPD file: Is there a way to hide it?

We have a copying machine that can be used as a printer. In order to do that, I have to provide a credential in plain in the Xerox.ppd file. Problem: Any user on the system can grep credential /etc/...
2
votes
0answers
107 views

rlwrap-like tool with command autocompletion

I am often using rlwrap sqlite database.sqlite to browse an SQLite table. It works great but I would like to have a tool that would create an index tables (and possible its columns as well) and let me ...
3
votes
3answers
6k views

virsh, how to list autostart domains?

In virsh how do I see which domains are marked as autostart? virsh list does not show which domains are marked as autostart.
1
vote
2answers
926 views

6.7 Linux headers `make mrproper` fails in lfs 7.5

I'm building lfs-7.5. When I run make mrproper in chapter 6.7, it says: make: gcc: command not found and on running bash /tools/bin/gcc, it says: bash: /tools/bin/gcc: no such file or ...
2
votes
1answer
63 views

How to preserve .d files after kernel compilation?

I'm compiling third-party kernel modules. Their build system goes to /usr/src/linux-headers-[version] (of a custom kernel chroot) and runs make from there. I want to find out, which files - sources ...
2
votes
2answers
367 views

Debian: get package name for installed file

I'm connected via SSH to a PC running Linux kernel 3.11.1: root@alix:~# uname -r 3.11.1 how can I find out which package installed this specific file or kernel version respectively? I tried root@...
5
votes
1answer
2k views

Rename files with spaces in a BusyBox shell

I'm trying to rename some files on my Synology Diskstation via SSH. The available shell is the BusyBox built-in shell: BusyBox v1.16.1 (2013-04-16 20:13:10 CST) built-in shell (ash) The move ...
-1
votes
2answers
2k views

How to recover NTFS drive formatted in ext4?

I just installed Linux Mint 17 and when it asked me where to install it I selected the option to overwrite the old Mint 14. Previously I had also windows with NTFS partition of 900GB. Not it is all ...
2
votes
1answer
910 views

Boot resolution change in initramfs on laptop monitor and HDMI monitor

I have Linux Mint 17 on my laptop. Also I have 22'' monitor connected to laptop using HDMI cable. My disk if fully encrypted with LUKS and LVM. On boot I get graphical prompt to enter password for ...
7
votes
8answers
4k views

Grep rest of line…after match

I have a file containing only two lines, with the following structure: $ cat /tmp/pwpower.log 000D6F0000D34227, -114.10 000D6F0001A405C4, -130.09 The values are power values of my solar plant. ...
1
vote
0answers
2k views

Cannot start xserver - “Failed to assign any connected display devices to X screen 0”

I'm using RHEL 6.3 (2.6.32-279.el6.x86_64) VideoCard: NVIDIA Quadro 410 Installed Graphic Driver: NVIDIA-Linux-x86_64-331.79 I try to run Xserver, but it won't start. Here is a log file: cat /var/...
1
vote
2answers
922 views

Find bootloader

Out of curiosity, Is it possible to find out which bootloader was used to start a given system? Was the system booted by GRUB, Lilo or any other boot loader? I'm guessing there must exist some /sys ...
3
votes
3answers
3k views

disable YUM mirrorlist checking

I have a machine which is not connected to the internet. I still want to execute some yum commands from time to time. YUM does like to update the mirrorlist every so often, resulting in errors like: ...
10
votes
2answers
4k views

GLX extension not working properly with xvfb

I have an Ubuntu 14.04 system with the following packages installed: libegl1-mesa:amd64 libegl1-mesa-drivers:amd64 libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-glx:...
18
votes
4answers
15k views

Arrays in Unix Bourne Shell

I am trying to use arrays in Bourne shell (/bin/sh). I found that the way to initialize array elements is: arr=(1 2 3) But it is encountering an error: syntax error at line 8: `arr=' unexpected ...
2
votes
2answers
1k views

How to create an environment for libraries and binaries?

I have a tool that cannot be run under my Desktop Linux. So I'd like to make a folder that contains all its requirements, and run it in the folder. Virtual machine or container is not a solution here ...
1
vote
0answers
1k views

X11 connection rejected because of wrong authentication — on CentOS, for all users (including root)

I'm configuring a small computing cluster with CentOS. The last step is setting up X11 forwarding, and here I find problems that I cannot solve. On all compute nodes except one, I can set up ...
0
votes
0answers
835 views

Where is the GPU?

Installed Debian 7.5.0 on Asus X550LD-XX028 (http://www.flipkart.com/asus-x550ld-xx082d-notebook-4th-gen-ci7-8gb-1tb-free-dos/p/itmdvyg4krwqgaes), with Nvidia GeForce 820M. The nvidia-detect (https://...
2
votes
3answers
1k views

User permissions problem Linux

Every time I create a new file from "eclipse", I need to run these two lines of code to get the r/w permission: chmod -R 775 /var/www/folder/filename.extension And/Or sudo chown -R www-data:www-...
4
votes
1answer
599 views

Installing linux-3.14.8 un Arch Linux while 3.15 is already in testing

I'm currently running kernel 3.14.6 on Arch Linux from Core repo. I would like to install 3.14.8 (which is the latest of 3.14 series) because it contains a fix that is suitable for me. However linux ...
1
vote
0answers
196 views

DVR software for Linux

I think the DVR/CCTV follow some convention, but most of them use activeX for online access. I'm curious if some documentation/specification exist so I could make my own client (Linux), standalone (C, ...
3
votes
2answers
308 views

how to set and use multiple parameters in single environmental variable in fish shell

I want to use following in fish shell: $ export arm='ARCH=arm CROSS_COMPILE=arm-eabi-' $ make $arm This works fine in bash/zsh but not on fish shell. But if I execute the following in fish shell: ...

15 30 50 per page