Recent Questions - Unix & Linux Stack Exchange |
- Netcat with device or interface flag?
- can not delete file with root in /etc/pam.d directory
- MATE Terminal; has stopped working; returns “Failed to parse arguments: Cannot open display:”
- Can you force a shared object to run as root or use setuid or setgid if its caller is not one of those?
- simulating user input in a bash script on slurm
- How to allow Thunderbird to receive local mail (from apps to the user/root) while in offline mode?
- grep complaining `grep: : No such file or directory`
- How to write a script that monitors the creation of .pdf or .PDF files in the current directory?
- How do I nest a variable that is a string inside of another variable that is a saved output of a command?
- How install sudo from user without root password
- How to set bash default shell for the root user
- Why doesn't fdisk -l not show all connected drives?
- kill -9 backgrounded job also kills bash
- My live kali Linux gets freezed
- OpenAL error: 40964 when running an executable
- Installing Oracle Linux 8
- Systemctrl service exit 203, even though script works if started by "hand"
- execute command on all visible shells
- Centos/RHEL 8 systemd service not able to reference script from custom location
- Removing invalid and repeating directories from an array
- How to confirm I'm connected with WPA3 (on Linux Mint 20.2)?
- How to enable audio output with pulseaudio when it is running?
- Make the first character following a semicolon uppercase, for each line of a text file
- KALI/Ubuntu running in VirtualBox: RALINK 5370 USB Wifi driver not working
- NUT UPS Setup Errors
- Restart nut-driver when data stale, usb device keeps changing
- How to find all symbolic links pointing to any file/directory inside a given directory
- problem of denied access using kvm
- What's the difference between SFTP, SCP and FISH protocols?
Netcat with device or interface flag? Posted: 03 Aug 2021 10:06 AM PDT Traceroute has an
|
can not delete file with root in /etc/pam.d directory Posted: 03 Aug 2021 10:15 AM PDT can not delete file in /etc/pam.d directory with root user on centos7.7 system,please help work out this problem. directory and file permission as follow: But when i rename pam.d to pam.dd(mv pam.d pam.dd) ,it is can delete file under pam.dd,it's strange! selinux is not open,selinux content also removed,facl is not set both file and directory is mutable |
MATE Terminal; has stopped working; returns “Failed to parse arguments: Cannot open display:” Posted: 03 Aug 2021 09:40 AM PDT I installed the MATE desktop environment into my onprem EC2 instance as per this URL; https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-2-install-gui/ And was able to kick-off terminal commands such as; mate-terminal --window --zoom=2 --geometry=30x12 --command timer.sh & Which opened a terminal window and looped over printing the date and time until killed. Now, I get Failed to parse arguments: Cannot open display: I think this might be due to the following, as it caused problems with TigerVNC ; chmod 775 /home/ec2-user I have tried setting DISPLAY to "localhost:0.0" and ":0.0" but to no avail. I know MATE is a fork of the now unmaintained GNOME 2 but I just can't find enough documentation, so any help is appreciated? Chris |
Posted: 03 Aug 2021 09:32 AM PDT My App needs to have write access to /dev/input/event*. On my Ubuntu system /dev/input/event* is owned by root:input. My app runs fine if I use sudo, but I'm trying to avoid that. So I set my App up to be in the 'input' group and run with setgid. But it's a cross platform App (GTK) which detects and disallows that. (It literally says the GTK has detected it's trying to run as setgid or setuid and it's not going to allow it.) But it's really the .so file that wants to write to /dev/input/event*. I'd feel a lot better if I could allow just this .so (that's in good shape and won't change often) run as root. Or if the .so file got to run as setgid then the GTK environment may not detect it. I've tried setting the special bits on the .so file, but then when I run the app it has the same permissions problem on /dev/input/event*. |
simulating user input in a bash script on slurm Posted: 03 Aug 2021 10:00 AM PDT I believe my problem is similar as found here but I was confused by the reply (and I can't comment in this question yet due to my low rep). I have a bash script I need to run using slurm, so when the script needs input from the user, such as this: The script stops. This line shows up after this line of code runs: What can I do to make my script reply this with "y"? This is the entire script I executed it with the command |
How to allow Thunderbird to receive local mail (from apps to the user/root) while in offline mode? Posted: 03 Aug 2021 09:20 AM PDT I'd like to have Thunderbird running on Debian10/KDE in Offline mode (mostly for security and privacy purposes but also to not receive any other mails) but still be able to receive mails to the user or root from processes / apps running on the machine (e.g. for popup KDE notifications about system events like cronjob-scan-results, intrusion-attempts, file-monitoring etc). Is that possible (how)? |
grep complaining `grep: : No such file or directory` Posted: 03 Aug 2021 10:29 AM PDT I am getting the following error from grep and trying to figure out what could be creating the problem. What can I do? This is the code This is what I have for the variables The arrays were made as follows The command does not show the problem, all files are valid. |
How to write a script that monitors the creation of .pdf or .PDF files in the current directory? Posted: 03 Aug 2021 08:59 AM PDT We need to display only new files created every minute. I can use watch and find command to either find new files using newermt or find file of certain extension. But, how to do both together. |
Posted: 03 Aug 2021 09:00 AM PDT How do I nest a variable that is a string inside of another variable that is a saved output of a command? I want to accomplish what this code does: but without calling to a variable and then extract from it the values of I have come across this question on nesting variables in Bash but it relates more to assigning a nested outputs of multiple commands to a variable. I've tried all this: None of it works. The comments describe the errors that I got from Bash. |
How install sudo from user without root password Posted: 03 Aug 2021 08:08 AM PDT On Debian 10 I do: And then I saw that Debian comes without Is possible to |
How to set bash default shell for the root user Posted: 03 Aug 2021 08:25 AM PDT my shell config was changed to zsh for the root user for some reason. This does not allow me to root user and I do not have another user in sudoers file, can I return the shell configuration to bash without having root access or a user in sudoers file? this on a ubuntu server |
Why doesn't fdisk -l not show all connected drives? Posted: 03 Aug 2021 08:30 AM PDT I've found countless threads started by others where they can't boot from a device because they are using the wrong SATA configuration. Let me assure you this is not my issue. I work in an IT dept for a company and I have SSDs that I need to wipe. I have created my own Ubuntu machine complete with ALL of the SSDs we wipe were initially imaged in the SATA AHCI configuration. When I run I've disconnected the drives and tried them in a different SATA reader only to get the same result. The SATA pins on the SSD are not damaged or bent. I've tried using the command Internet searches yield no results for how to troubleshoot/fix the issue I have or force the connected drive to get wiped despite it not being recognized by the system. I humbly have the two following requests for any data gurus who may stumble upon this issue:
EDIT: I don't want to confuse anyone. I follow the US government's protocol and use the command to make the data of the drives unrecoverable. Again, the issue is that Also, connecting these drives directly to a SATA cable on the motherboard does not make them recognizable for any live-boot USB. |
kill -9 backgrounded job also kills bash Posted: 03 Aug 2021 10:12 AM PDT The above will kill either (most likely) the bash shell or the current terminal window. Why is that? NOTE: Just to be sure that I don't run something different what I think, have some race condition, etc., the following also produces the same effect: GNU bash, version 5.0.3(1)-release |
My live kali Linux gets freezed Posted: 03 Aug 2021 07:26 AM PDT Recently I've made a live kali on my 32gb pendrive, whenever i use live kali linux it gets freezed and the only option i have at time is to restart my pc. My machine have a core 2 duo and 2gb ram |
OpenAL error: 40964 when running an executable Posted: 03 Aug 2021 07:07 AM PDT I recently installed the missing libraries for an executable, but I have problems when I run it. It doesn't sound and these are the errors I get when I run it from the terminal. This is the How can I solve to have sound when the binary is running? |
Posted: 03 Aug 2021 07:55 AM PDT I have built a virtual machines, the CPU has 1 socket with 4 cores and 4GB memory and it has 3 Disks. I choose the custom storage method as I want to install OL8 assigning the following: After going through custom setup there is no error prompts at all, it get through to the system reboot prompt, when the server restarts all I see is blinking cursor. |
Systemctrl service exit 203, even though script works if started by "hand" Posted: 03 Aug 2021 09:42 AM PDT I am using The script is working fine, if started manually like: My config looks like the following: When starting the service I get: The directory Futhermore, the path Any suggestions where the error might be or how to locate the error? I appreciate your replies! |
execute command on all visible shells Posted: 03 Aug 2021 08:38 AM PDT I'm currently running a tiling window manager and I want to be able to use a custom function that is equivalent to one I had when I was using tmux that allowed me to run a command in all visible shells in the current window (E.G. The command/function was called I've managed to create the following function: If I run the command manually like this: I see the output If I try to run my Does any one have any better suggestions? |
Centos/RHEL 8 systemd service not able to reference script from custom location Posted: 03 Aug 2021 08:20 AM PDT I am trying to create a systemd service, for a simple script present in a location (other than /usr/local/bin..) Below script is under I created simple service named when i start the service using But if I move the script and update the usr-print.service file with Is there a way to user the Centos 7 - Centos/RHEL 8 - |
Removing invalid and repeating directories from an array Posted: 03 Aug 2021 09:41 AM PDT How can I remove repeating directory names in an array named Have made an initial attempt which does not work. |
How to confirm I'm connected with WPA3 (on Linux Mint 20.2)? Posted: 03 Aug 2021 09:02 AM PDT In my TP-Link router, I have set WPA version 2/3: I am on Linux Mint 20.2 and I have explicitly set WPA3 for my connection: outputs: and outputs: Question: I am testing WPA3, so far only Steam has had some crashes due to WPA3 that I know of, a quote:
How to confirm I'm connected with WPA3 (on Linux Mint 20.2)? The furthest I managed to get was to verify the connected (as for searching for which outputs: |
How to enable audio output with pulseaudio when it is running? Posted: 03 Aug 2021 09:26 AM PDT Here I described trouble installing pulseaudio due to mismatching dependencies when using packages of Kodi19 on Debian10. This is now resolved insofar that after a recent upgrade I was able to install pulseaudio and get it running via this command: My problem now is that the audio output still isn't working even though pulseaudio is running. I tried some changes to client.conf, daemon.conf and default.pa as described here and here. It still doesn't work. I didn't have this problem before the audio stops working. I recently noticed the sound output actually still does work (for local audio files) but only over headphones (and then there's still no volume icon in the tray bar etc). How to get audio output working again? If changes to the config files are needed how to find out which changes are required? Any ideas about why this problem occurred? Running Another Debian10/KDE machine with almost the same setup including Kodi19 doesn't have this problem. Once pulseaudio works there should be a volume-icon in the tray bar and the volume-buttons should work again. There shouldn't be any need to change configs to get audio working after installing pulseaudio (which should never have been removed anyway as I didn't deliberately remove it). I also have e.g. gstreamer1.0-pulseaudio installed. When I search for "pulse" "Audio Volume" is not showing upl in the search results like on another machine so maybe I need to install some additional package. Or maybe I need to clear some configs. When I run One other thing that might have to do with it, is that running an upgrade with apper or |
Make the first character following a semicolon uppercase, for each line of a text file Posted: 03 Aug 2021 07:30 AM PDT I have a text file like this I want to convert every character following a semicolon to uppercase, so the final result is keeping the rest intact. This file contains accented letters and is coded in UTF-8. |
KALI/Ubuntu running in VirtualBox: RALINK 5370 USB Wifi driver not working Posted: 03 Aug 2021 09:07 AM PDT Sometimes Host system: MacOS To rule out hardware problems I tested the Wifi adapter on Windows 10 and it works fine. |
Posted: 03 Aug 2021 08:47 AM PDT I'm having a strange issue while trying to configure NUT on a CentOS 6 machine to control an Eaton 5E UPS. I've taken the following steps Then updated nut.conf I confirmed that the UPS was visible Then updated ups.conf Then attempted to run the driver control which failed When I tried to debug it though I got another error and I'm not sure why I've been fighting this thing for a while now but without any luck, has anyone encountered this before? |
Restart nut-driver when data stale, usb device keeps changing Posted: 03 Aug 2021 08:45 AM PDT I have a PowerWalker VI 850 LCD ups connected to a Raspberry Pi Model B+ via USB. I have been trying to use NUT to monitor it, with lots of problems. First, it seems that the protocol detection wasn't working right, and I've since specified However, another quirk is that for some reason the USB device keeps changing (e.g. from Which makes sure Is there an automatic way to make NUT try restarting the driver if the data goes stale? Or can someone recommend a watchdog type process that will do this for me? Since the service doesn't actually stop, (Or, any idea how to stop it from disconnecting in the first place?) Uptime on my NUT host is now 5 days and the USB device has wiggled all the way up from 005 to 012. So, I'm running Icinga2 on another host, and I'm going to look into making it restart the service...but that requires SSH access from the Icinga host to the NUT host :-P. Better ideas? |
How to find all symbolic links pointing to any file/directory inside a given directory Posted: 03 Aug 2021 09:30 AM PDT On this question or on this one (for example) you will get solutions on how to look for symlinks pointing to a given directory (let's call it I want to delete such directory but I am not sure that I am safe to do so, as on an other directory (let's call it Further, I may have created these symlinks using absolute or relative paths. My only help is that I know the symlinks I want to check are on a mounted filesystem, on |
problem of denied access using kvm Posted: 03 Aug 2021 08:07 AM PDT I would like to test kvm with opensuse tumbleweed. I successfully installed kvm, but I am stuck in creating my first VM. The trick is that I want to have the VM's directory in an external HDD. When I set the directory of the VM file I get this error message:
I am not very strong in managing user rights. I set root belong to the kvm group, but I still have this error. can you help me? thank you olivier EDIT I launch it by a entering |
What's the difference between SFTP, SCP and FISH protocols? Posted: 03 Aug 2021 08:03 AM PDT I used to think SCP is a tool to copy files over SSH, and copying files over SSH is called SFTP, which is itself a synonym to FISH. But now as I was looking for a Total Commander plugin to do this in Windows, I've noticed that on its page it says "Allows access to remote servers via secure FTP (FTP via SSH). Requires SSH2. This is NOT the same as SCP!". If it's not the same then what am I misunderstanding? |
You are subscribed to email updates from Recent Questions - Unix & Linux Stack Exchange. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment