Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

1
vote
1answer
34 views

Linux Live CD crash after GRUB selection

I'm running on a fairly old HP Pavilion x360 - 13-a110dx (ENERGY STAR) with the newest BIOS firmware available. It has Intel HD 5500 graphics and 4 GB RAM. I'm currently trying to install ANY linux ...
0
votes
1answer
33 views

What character encoding is used for Linux configuration files?

A colleague was using Qt's built-in QTextStream class to rewrite the /etc/network/interfaces file on an Ubuntu system. Part of that code included a call to QTextStream's setCodec() method, where the ...
1
vote
0answers
40 views

Backup MTD partitions on NAND flash use 'nanddump'

Linux version 2.6.26.5 om embedded board, at boot time created 11 MTD partitions on "gen_nand": # cat /proc/mtd dev: size erasesize name mtd0: 00060000 00004000 "u-boot" mtd1: 00020000 00004000 "...
0
votes
1answer
26 views

Hiding Specific partition from a non-sudo user

Is there anyway to prevent a non-sudo user from seeing specific partition? lets say "/data" partition? I know that i can prevent the user from accessing the directory, but i preffer to hide it from ...
0
votes
0answers
39 views

Restrict certain command options [duplicate]

How can I restrict a user from executing sudo -su? I.e., disable this -su option for sudo allowed users.
1
vote
5answers
59 views

Question about text formatting using sed of awk

I want to format text using awk or sed. I have text looking like, H1 (dxfault) H337 (Unxr) H1106 (hast) H1129 (h1129) H1370 (hlan1370) I want to remove the letter H and everything after the first ...
0
votes
1answer
13 views

Is it possible to schedule an anacron single line command execution instead of sourcing a file?

Everywhere on the internet, in articles or tutorials (in the searching of "schedule an anacron command"), I find a format such as the following: @daily 15 rsync.daily /bin/bash /home/steven/...
-1
votes
1answer
26 views

How to check multiple list from IPSet in IPTables with a single rule?

How can I check multiple list of IPs from IPSet in IPTables with a single rule? I need to add check two list of IPs because it is too big. I know it is not healthy, but I need to do it that way. ...
0
votes
1answer
40 views

How to disable TCP checksum validation on Linux?

For some reason, I want to disable TCP checksum validation on my Linux host. Is that possible to disable it?
0
votes
0answers
24 views

Is there a way to find out which process is setting a Linux kernel parameter to an invalid value at runtime?

I have set the kernel parameter fs.inotify.max_user_instances to 100000000, but it is automatically getting set to 1256 after a while. Is there some way to figure out which process is setting it to ...
0
votes
1answer
50 views

What types of executable files exist on Linux?

For example, if I do [OP@localhost executable]$ cat garbage lalala trololol [OP@localhost executable]$ chmod +x garbage [OP@localhost executable]$ ./garbage ./garbage: line 1: lalala: command not ...
1
vote
1answer
19 views

How to prevent a command from ticks from being executed in Linux bash scripting

I want to save in variable $COMMAND the second tab delimited field from variable $i, however when I do that, the command cd ~ gets executed. There is a tab character between TEST_CASE_001 and cd ~ i='...
3
votes
1answer
37 views

How can my cpu frequency be above maximum MHz value in lscpu?

How can it be, that my current cpu frequency (CPU MHz) for my Intel Core2 Duo T9400M is above max MHz while being on high load? ➜ lscpu [...] Model name: Intel(R) Core(TM)2 Duo CPU ...
0
votes
2answers
30 views

Cron task won't run, although all is correctly set up

This cron tqsk doesn't work: [main_usr@localhost ~]$ sudo crontab -l -u root 0 * * * * /home/main_usr/cron_test1.sh > /home/main_usr/cron_test1_out.sh.out 2>&1 [main_usr@localhost ~]$ ...
1
vote
1answer
25 views

Designing Lock Screen

I use Ubuntu 18.04 LTS. I want to redesign my lock screen, change orientation and stuff. Where do I find the css files for that? Or if it is not in css format, where can I find the offending files?
0
votes
1answer
49 views

How to create files depending on operations of parameters

I have to take the $4 parameter, divide it equally by $2 parameter (If it cant be divided equally, add spaces to fill last part) and put every part at the end of randomized files we just created with ...
2
votes
0answers
26 views

Is linux mount propagation asynchronous to the mount call?

I have two processes in different mount namespaces. They have a shared directory bind mounted to /mnt/share. The "master" uses MS_SHARED propagation for the mount, while the "slave" uses MS_SLAVE. ...
0
votes
0answers
23 views

Output of last is missing “display” column

I have a script parsing the output of last on several OpenSuse Leap machines. Everything is right except on one, and the reason is that on that machine the output is missing the column where the ...
0
votes
1answer
16 views

How to mv file created from commands to a directory

I need to move file to a directory named after a parameter. So far im stuck on how to moving file to the directory. mkdir "$3" cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 255 > $(shuf -n 1 /usr/...
0
votes
0answers
13 views

How to make a fully bootable ISO from Alpine Linux Edge?

I would like to make an alpine installation iso which has the following attributes: During installation it has an answerfile so that the setup process (the setup script) takes those default inputs ...
0
votes
5answers
56 views

Getting values from comma seperated file

I have a file structured like this: [IP ADRESS], [ID-Number], [Name] [IP ADRESS], [ID-Number], [Name] [IP ADRESS], [ID-Number], [Name] ... (The actual values are not in brackets) How do I get (...
0
votes
0answers
25 views

Inserting column headings in awk command

I have a raw file (gx.txt) having below sample contents shown below. TIME;PCS/Main:GxCCAInitialSuccES;PCS/Main:GxCCAInitialSuccSILP;PCS/Main:GxCCATermSuccES;PCS/Main:GxCCATermSuccSILP;PCS/Main:...
1
vote
1answer
27 views

Allow non-root user to change group for it's own files

My server at home uses rsync to backup files to my VPS, but I have an issue with setting the group property for uploaded files. Because the rsync uploads the data to a folder which can also be ...
1
vote
1answer
21 views

Can I change LIO SCSI Disk Vendor name

I'm using LIO for SAN scsi. The shared disks shown as LIO-ORG at client side. Example; [root@testing ~]# lsblk -S NAME HCTL TYPE VENDOR MODEL REV TRAN sdc 4:0:0:0 disk LIO-...
0
votes
2answers
31 views

Wildcard Certificate & XCA

We bought a wildcard certificate (*.example.com). I got an .pem file (included Cert and Key), like "wildcard.example.pem". As Certification Tool, I choosed XCA. The plan is, to import the Wildcard ...
-1
votes
1answer
58 views

KVM-QEMU virtualization platform issue with creating guests of red-hat based distributions

I do use virtualization a lot , and of course my favorite tool is kvkm-qemu. However I am extremely frustrated with it lately, all my attempts to create a redhat based virtual machine with centos,...
1
vote
1answer
10 views

Execute command with LXC on remote host

I know I can use lxc exec remote:container -- command to execute commands on containers living on remote servers. But, is it possible to execute a command on the remote host instead: lxc exec remote -...
1
vote
0answers
31 views

What does the inode column in netstat signify?

Issuing the command, netstat -pulet, there is an inode column that appears, and so issuing a find command I found that it links to inodes in the /sys/kernel/slab/cgroup/<...> section. For ...
0
votes
0answers
18 views

How can we exclude results from users with tty=(none) in auditd?

Is there any way to exclude the event records having tty=(none) I have tried many ways of adding rule but nothing worked out. This is my current log file: > > type=SYSCALL msg=audit(...
1
vote
1answer
26 views

Blacklisted Broadcom drivers are still loaded

I have certain Broadcom drivers clearly blacklisted in 50-broadcom-wl-blacklist.conf file in /etc/modprobe.d/: # modules blacklisted for broadcom-wl blacklist bcm43xx blacklist ssb blacklist b43 ...
-1
votes
1answer
39 views

How to make secure backup in Ubuntu Linux

I tried to understand the code but I have some difficulties in it. crontab -e is crontab schedule formatpm 9pm at night every Sunday, but it seem to me it is encrypted.  Can any one explain it? ...
0
votes
1answer
16 views

Serve a subdirectory from home directory using nginx with different permissions

Here is the relevant snippet from nginx which at the moment returns a 403 error. location /specialoutput/ { limit_req zone=mylimit burst=20 nodelay; root /data/customUser/outputFiles/...
2
votes
0answers
34 views

name resolves doesn't work in chroot for users, but does for root

I've booted a live-cd in order to download, compile and install a few packages on a otherwise working system without actually booting said system. I've created a build user on the system by issuing ...
3
votes
1answer
39 views

What is Date_Spec in sudoers policy?

I was reading through the sudoers policy manual. Under 'User specification' section, I saw Date_Spec as part of the Option_Spec, in turn an optional part of the Cmnd_Spec. User_Spec ::= User_List ...
1
vote
0answers
58 views

Ubuntu refuses to boot [closed]

I do not understand linux, so I chose to post this here. A few minutes ago I put an old video card (GeForce GT 730) into my computer. After installing the owner's driver, I restarted my computer and i ...
7
votes
2answers
518 views

What is the use of option -o in the useradd command?

As the title indicates, what is the use of option -o for command useradd? What is a good use case of this option?
0
votes
0answers
30 views

what is the usage of sudoers file in Linux? [closed]

What are usages of sudoers file included in Linux ?
0
votes
0answers
18 views

Installing Xcompmgr without sudo, admin, or root acess

So basically I need to install and run this thing called Xcompmgr (https://wiki.archlinux.org/index.php/xcompmgr) for my program. However as stated in the title I don't have access to certain commands ...
1
vote
0answers
40 views

How to get the average CPU usage over the past 10 seconds in bash?

I need a command that would echo the average CPU usage over the past 10 seconds in Ubuntu 18. Each of the following conditions must be met: It must be lightweight with a very small footprint, ...
1
vote
1answer
57 views

“Cannot create directory … no such file or directory”

When executing the dockerfile, the command RUN cp -rf roundcubemail-1.2.3/. /var/www/html/ is executed and I'm getting the following error: cp: cannot create directory '/var/www/html/': No such file ...
0
votes
1answer
27 views

Why doesn't glxgears show up in xlsclients?

$ glxgears -display :1 No protocol specified Error: couldn't open display :1 $ glxgears -display :0 288 frames in 5.0 seconds = 57.491 FPS 292 frames in 5.0 seconds = 58.308 FPS ... While glxgears ...
0
votes
1answer
20 views

Copy only files with certain extension while renaming each file according to the parent folder

I have several directories: ├── folder1.x │   ├── dsferwe │   ├── ewrwr342 │   ├── analysis │   ├── fdsds │   ├── vcxvcxz │   ├── 324322 │   ├── export.asc │   ├── f_random_subfolder.xf │   │   ├── -....
1
vote
0answers
23 views

Can I manipulate .xls workbooks in linux (tcsh)

I have 2 Excel Workbooks, A and B. Workbook A.xls has 2 worksheets, Sheet1 and Sheet2. Workbook B.xls also has Sheet1 and Sheet2. Without opening the workbooks, I would like to delete Sheet2 in A....
1
vote
1answer
36 views

wpa_action script: How to run wpa_cli in daemon mode?

I was trying to build a script that runs when wifi is connected or disconnected. After a lot of searches, I got wpa_cli -a command to work with my script. test.sh case "$1" in wlan0) ...
0
votes
0answers
19 views

Switch to second (build in) laptop battery if capacity is under 20%?

I got my new Lenovo T480 laptop which has two batteries: one internal and one external. The used Linux is Arch Linux. If I use the battery the behavior is that the first battery is used down to 5% ...
2
votes
2answers
49 views

find path excluding doesn't work when permission denied

There is some strange behavior while excluding path from find: find ~ -not -path "~/sandboxes/*" -name 'some-file.vmdk' gives: /home/user/VMs/win/some-file.vmdk find: ‘/home/user/sandboxes/debian7....
1
vote
0answers
36 views

Firefox Quantum 66 ignoring CSS styling in dropdown menu

I have noticed in my Firefox browser running on Linux Mint 18.2 that Firefox will ignore CSS stylings for dropdown menus, and instead defaults to what looks like system themes. This issue is not ...
0
votes
0answers
8 views

Create libvirt vm with a default network bridge

I'm currently trying to use a generic xml file to create virtual machines. My problem is that I cannot tell which adapter is present in the host system but I need a network bridge using the "default" ...
0
votes
1answer
25 views

how to extracting only few records from audit.log

How to Extract audit.log While starting auditd service in linux it records all executed commands as exepected but in addition it records the background process too (the commands which is not executed ...
0
votes
0answers
11 views

Security implications of using either veth-NAT vs. veth-Bridge for network namespaces(linux)?

My goal is to use linux namespaces for sandboxing/isolation. I run for instance a debootstrap / pacstraped image using systemd-nspawn, LXC or docker... While I am reasonably aware of most namespaces ...