Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

0
votes
1answer
43 views

list users who are all created by current user in linux

I have set of users with root access.I want to know list of users who are all created by currently logged in user. From below structure if user1 login to system , how to list user's like ...
4
votes
3answers
76 views

How to restrict a user to one folder and not allow them to move out his folder

I have ubuntu server on digitalocean and I want to give someone a folder for their domain on my server, my problem is, I don't want that user to see my folders or files or to be able to move out their ...
1
vote
0answers
19 views

Is it allowed to assign one range of subordinate IDs to two different users?

Is it allowed to assign the same range of subordinate user and group IDs to different users on the system defining the subordinate IDs? Please provide sources for your answer. The idea here would ...
2
votes
2answers
65 views

Reverse X11 Forwarding without SSH on server

I want to run an X11 program on the SERVER and display the window on the CLIENT. I have a shell on the server to start with. (This is not an SSH shell, but some cluster computing software) The ...
2
votes
4answers
52 views

How can I get all `apt-get` commands that I've issued since I launched a Debian server?

I need to go back to basics on a VPS but I don't want to wipe it clean. I understand that Debian stores apt-get commands somewhere, but these are separated in to separate log files. Is it possible ...
0
votes
1answer
43 views

Delete duplicate entries in a text file [duplicate]

I created a txt file using two requests, one LDAP and one SQL. Results of the two requests are stored in the same txt file. The txt file looks like this : user1@domain.fr user2@domain.fr ...
0
votes
1answer
41 views

Switch to a text console in Fedora

I have switched recently to Fedora 22 from Ubuntu Gnome. In Ubuntu gnome, when my Kodi media center used to hang while in full-screen, I used to press Ctrl+Alt+F1 to switch to terminal. Then find ...
0
votes
0answers
33 views

X11 connection rejected because of wrong authentication for one display number

As stated in the title, I am having this error when I have ssh into a remote server with a certain display number assigned. There is not X11 forwarding problem since I can use GUI application as usual ...
2
votes
1answer
31 views

Mounting USB drives on command line in Ubuntu

In Ubuntu, I can click a drive in Nautilus to mount that drive and I do not need to use sudo. Is there a command line alternative to this action? I know about the mount command, but is there a direct ...
0
votes
2answers
34 views

how to change default root in apache web server?

I am trying to change the default root directory in Apache webserver but having trouble accessing it from webbrowser. Disabled SELinux Stopped IPTables Trying to make : "/var/www/test/" as default ...
1
vote
2answers
29 views

How do I migrate a RAID system to a larger set of HDDS?

All the posts I've found are about moving to new machines or migrating an entire OS from one HDD to another. I don't really know what the hell I'm doing, but I'm apparently the Linux expert. We ...
3
votes
1answer
42 views

How do I detect that my system has auto-rebooted after a kernel panic?

I'm using Linux in embedded systems, and want to configure the system to automatically reboot after a kernel panic. However, when the system comes back up, it's important for me to detect and log the ...
1
vote
0answers
18 views

Recover VG after Adding Disks and Rebooting

I had an old 1.5 TB NTFS formatted disk I wanted to use in by RHEL 7 box, so I put it in my desktop booted, and proceed to delete the partition table using fdisk. I created a physical volume on it ...
3
votes
0answers
38 views

Expanding root partition CentOS 6 With using fdisk

I am trying to expand the root partition on a VM which is not using LVM and I do not have (nor want to try and create then use) a disk to boot from. As such I followed what I felt was the logical ...
4
votes
2answers
81 views

how to execute a script everytime any USB get mounted

I use a script that writes all mountpoints of my devices to a textfile using df. How can I execute my script everytime any device (especially USB) is mounted? script to execute: #!/bin/bash # save ...
2
votes
2answers
33 views

Linux kernel parameter “net.ipv4.tcp_workaround_signed_windows”

I am seeing some intermittent network issues when sending large amounts of data over a network and it has been suggested to me that setting this option to a 1 may possibly resolve the issue. ...
0
votes
1answer
21 views

How to see the password in rhel6 [duplicate]

How to see the password what we are entering in RHEL6. If not how to see at least the entering password in some special characters.
0
votes
1answer
12 views

RPM to invoke browser post installation

I am creating an RPM installer for centos 6.5, After installation i want the RPM to invoke the browser and show the installation report. This installation report shows the details of how the ...
4
votes
1answer
71 views

How to detect special hidden files in Linux (e.g. .reiser_priv)?

I've recently found out that there are special hidden directories found on Linux that are not displayed with ls -a command. Namely the one I encountered is .reiserfs_priv directory located in the root ...
2
votes
1answer
28 views

Command line per-application volume (maybe amixer or pactl?)

I can change the master volume with these commands (from the command line), and it affects all applications, but how do I change the volume for just one application (XMMS for example)? amixer -q set ...
1
vote
2answers
62 views

Pipe ssh's output (stderr and stdout) to different commands

I'm a writing script for some kind of backup involving ssh and rsync. Every time that script runs I redirect all output to a log file. To standardize the log-entries I wrote a log-function that adds a ...
0
votes
0answers
44 views

how to rename the Linux OS name installed in USB stick (LIVE USB)

I am looking for the solution for modifying the query. The requirement is as follows Installing the Any Linux OS in USB stick, here i have installed Fedora 21. Now I need to rename Fedora OS to "Nik ...
0
votes
0answers
24 views

wireless device not getting PHY address

I have the TP Link tl-wn822n ver. C (realtek chipset) wireless adapter and I am running Kali Linux from a live cd. After many hours trying to get around these problematic drivers, I managed to get ...
2
votes
1answer
33 views

linux kernel module building prerequisites

The "How to Build External Modules" section of the kernel.org kbuild documentation ( https://www.kernel.org/doc/Documentation/kbuild/modules.txt ) says: To build external modules, you must have a ...
1
vote
1answer
12 views

Is there a way to have logcheck send a daily digest as well as the hourly mails?

I'm looking for a way to get logcheck to send the hourly notifications but also send me daily digest at the end of the day. Is there a way to achieve that at all? It'd be fine to invoke logcheck ...
0
votes
0answers
19 views

cat /proc/cpuinfo does not show 'physical id' in output, not even with #0 [duplicate]

I need to get the number of physical processors of a PHYSICAL machine which has OpenSUSE installed. But the 'physical id' is not showing in the output at all. What could be the reason here? And is ...
0
votes
2answers
33 views

Removing files based on date given in filename

In a directory, I have some zip files as given below: DBSOURCE20150601.gz WINDOWS20150504.gz NETWORK20150609.gz PATCHTEST20150512.gz ................. ................ I want to delete zip files ...
1
vote
1answer
35 views

Linux kernel: meaning of source-tree, in-tree and out-of-tree

What do the terms "in-tree" and "out-of-tree" exactly mean? Also, does "source tree" specifically refer to the official kernel released from / maintained at kernel.org or is it a more general term ...
1
vote
1answer
42 views

How to free a serial port owned by Getty

I have machines in pairs. They're connected to each other by a null modem serial cable. These machines sometimes go down, and the only way to diagnose them is through that cable, using the other node ...
2
votes
1answer
26 views

kexec crashing when booting a kernel without initramfs (ARM)

First, a few details about the setup: Linux-3.14.1 ARM am335x chip U-Boot bootloader What I am trying to achieve: U-Boot loads a kernel that contains an initramfs (call this kernel 1). U-Boot ...
3
votes
2answers
42 views

How to determine the maximum number to pass to make -j option?

I want to compile as fast as possible. Go figure. And would like to automate the choice of the number following the -j option. How can I programmatically choose that value, e.g. in a shell script? ...
2
votes
1answer
56 views

How to Mark Traffic using IPtables?

I'm trying to mark traffic, How shall I write following code in terms of IPtables? /ip firewall mangle> add chain=prerouting src-address=10.1.1.1/32 action=mark-connection \ ...
3
votes
3answers
778 views

How can I tell whether my system is Unix or Linux?

The question is in the title: How can I tell whether my system is Unix or Linux? I am using a Macbook Pro of 2010 vintage.
0
votes
1answer
24 views

DHCP server does not appear on nmap, no errors

I have tried to get into Ubuntu thing recently (newest edition), but I've got a problem with DHCP server. I configured the files /etc/network/interfaces and /etc/dhcp/dhcpd.conf according to my ...
0
votes
0answers
49 views

python install on linux RHEL5 - GCC 4.1.2-52

I used the following guide from the Beyond Linux From Scratch SVN Book, not knowing that my distribution was actually RPM Based (see comments), and now I am getting the following error during python ...
0
votes
0answers
54 views

Openvpn client and server cannot ping each other(Connection established)

I have setup OpenVPN client and server between two VPS. I have a client and server setup, server using 10.8.0.1 and 10.8.0.2 IPs in tun interface, and client using 10.8.0.6 and 10.8.0.5 in tun ...
0
votes
0answers
10 views

XtreemOs for rendering

I am searching for a single system solution because i want to use such a system for rendering. I already found kerrighed but I did not get it working. Now i found the XtreemOS. On wikipedia, it says ...
3
votes
1answer
40 views

Difference in execution of init with embedded vs. external initramfs?

I'm building a very minimal linux system that just consists of the kernel (v4.1-rc5) and an initramfs populated with busybox (v1.23.2). It works fine for the most part, but I observe a difference in ...
0
votes
1answer
52 views

Get a CSV file containing names of files within a directory?

I am trying to figure out how to export the names of the files I have in a directory to be saved in a CSV file that I can edit in Excel. The directory looks like this: $ ls Sample_38_41_1_A01 ...
0
votes
1answer
79 views

CentOS: How is it possible to reset all your network configuration?

I'm not really sure the best question to ask in my situation, so let's go with "How is it possible to delete all your network commands?". Here's the situation: I have a CentOS 7 minimalist CLI ...
0
votes
0answers
11 views

Create Snapshot an store it on a other server

Is it possible to take a complete Snapshot of my (VPS - CENTOS) server? with a script? And that it will stored on a other server? With snapshot i mean everything ( configurations, websites etc ) And ...
4
votes
1answer
48 views

How to configure QoS per IP basis?

We have say 4 users in a private network connected to the Internet trough a Linux router with a public IP address that is doing network address translation (NAT). I gotta configure QoS to give access ...
0
votes
0answers
71 views

Ubuntu 15.04 wired connection keeps dropping and restarting

I've finally switched to Linux (Ubuntu 15.04) 2 weeks ago and everything went well. But unfortunately after turning on my PC today and doing the usual (sudo apt-get update, sudo apt-get dist-upgrade) ...
3
votes
1answer
99 views

How do you deliberately trigger a “text file busy” error?

Very occasionally I encounter "text file busy" error while using my Linux 4.0.4 computer. I read that when the error happens, kernel is preventing modification to a file that is being "used". So I ...
2
votes
1answer
29 views

data recovery after partial shred

well i issued the following command: shred -v /dev/sdb. However I wanted to shred /dev/sda. I realized my mistake after about 2gb had been shredded (out of 2.7tb raid volume). what is the ...
0
votes
1answer
28 views

How can I loggin from VM1 to VM2 using script?

I am using script to loggin my VM2 from VM1 (Password of the VM2: fifa): for i in {a..z}{a..z}{a..z}{a..z} do # $i as a password ssh root@ipaddress read i echo $i done bit it doesn't work. ...
5
votes
4answers
436 views

How to create loop sequence?

I am trying to create a script that will be getting one variable from user and should print a pyramid as below: * ** *** **** ***** I used this script but it shows me numbers: for i in {1..5} do ...
2
votes
2answers
45 views

Trying to transplant bash to /mnt for chroot, what does bash want in order to work?

I have a stage 3 gentoo tarball.. extracted it to /mnt which is hosting /dev/sda3. Though there was no bin and no sign of bash after unpacking. Far as I'm aware, the rest of the configuration involves ...
0
votes
0answers
20 views

Route dies on Ubuntu 14.04.2

So I have this routing setup in EC2 on a Ubuntu machine: 10.50.0.0/24 dev eth0 proto kernel scope link src 10.50.0.163 x.x.x.x via 10.50.0.80 dev eth0 proto static y.y.y.y via 10.50.0.80 dev ...
3
votes
0answers
9 views

Is posix_fadvice / POSIX_FADV_DONTNEED functional in Linux?

If I am doing once only scanning across big files then do I need to worry about impact on the page cache or does the OS take care to avoid my scan causing pointless churn in the page cache. I want to ...