Recent Questions - Unix & Linux Stack Exchange |
- Efficient way to dynamically change access rights for Samba; use ACL?
- How to identify Linux partitions in windows disk manager
- Can Bash scripts (or their children) be given special IDs that could be used to test against?
- Grub updated and now I can't get in to the BIOS, how can I fix it?
- Difference between sort -u and uniq -u
- Missing Icon on taskmanager KDE
- Executable permissions on files that do not need it
- How to build custom images with buildroot?
- How do I resolve Ipv6 related errors from NetworkManager
- Systemd Partof directive behavior when a component service restarts
- How to find out with which user gvfs has connected to smb share
- How can I fix "You don't have enough free space" in kali linux?
- Import LVM VG with broken mirror
- Bspwm session displays only grey screen and keybindings dont work
- Login to Linux knowing only the root password
- How do I see what version of certain libraries are being used by a snap package
- Add extra field to a file for records that have 6 fields instead of 7
- Can program notify itself any opened shell?
- initramfs got corrupted/ misconfigured, how to boot properly?
- execute set of commands in group by {} vs () [duplicate]
- Wifi won't connect after delete almost all package
- Ansible: How to dynamically construct menu with ansible.builtin.pause module
- How to pass an array as function argument but with other extra parameters?
- 10-key (numeric keyboard) not working when connected via VNC to Fedora 35 or Ubuntu 21. Both are using GNOME - is this a bug?
- What's the point of firewalling outgoing connections?
- Pulseaudio no sound from speakers
- iconv module (to use with rsync) to avoid windows-illegal filenames in local NTFS partition
- KDE: suspend to 'freeze' state instead of 'mem'
- Trying to connect bose quietcomfort 35 headset over bluetooth on arch linux
- How to access the Evolution calendar data from the command line?
Efficient way to dynamically change access rights for Samba; use ACL? Posted: 30 May 2022 01:36 PM PDT Suppose that I share the root of a data disk using Samba. The permissions I want are something like:
Since Samba itself does not seem to fine access control, I think it should be done by the file system permission. On Windows, I could use Advanced Security Settings where I can specify complex permissions for multiple users/groups for this. When I had asked about a way to use ACL (because it seemed to be close to aforementioned Windows' feature), a person replied that Linux has such a great file permission system, that one would not need ACL, but when I asked about this Samba use case, he did not reply. Can what I want be done with normal file permissions like chown/chgrp, etc without ACL? Or is there any better way than ACL for this? |
How to identify Linux partitions in windows disk manager Posted: 30 May 2022 01:09 PM PDT Currently, I have dual systems on my laptop. Ubuntu on the legacy harddrive and Windows on UEFI. I'm going to reinstall the Ubuntu but feel difficult to identify which partitions should be formatted. There are around 11 partitions showing up on the Windows Disk Manager. or followed the related question of How to identify partitions in Windows Disk Management The four green colour partition should be okay to be formatted, but I am wondering about the BIOS partition. Should I leave it or format it? thanks in advance |
Can Bash scripts (or their children) be given special IDs that could be used to test against? Posted: 30 May 2022 01:02 PM PDT Is there something I could add to a Bash script to always assert correctly if it's running so a it can not be executed simultaneously with itself or some other script. I was thinking like they way capture groups can be named in regex or the Is there? |
Grub updated and now I can't get in to the BIOS, how can I fix it? Posted: 30 May 2022 12:30 PM PDT Mint 20.2 system. Need to get to the BIOS so that I can boot from the USB stick into GParted, which is suddenly not happening automatically. I upgraded all my packages an hour ago (pretty sure grub updated too). Tried rebooting about five times now, holding down delete or f11 or f3. Delete definitely worked before the upgrade. I have tried pressing it several times and holding it down. I've tried pressing it constantly immediately after starting the reboot process. No matter what I do it just goes to the Mint splash screen. The chipset is a Intel Celeron 3205U (Broadwell, embedded) if that helps. I can't find any info in the system manual as to the BIOS. I flashed the BIOS about 6 months ago to the most current version. The system is not dual boot. The machine's product page is here. The MSI product page is less helpful. The system is 6 years old. Tried Tried Tried a full power down and reboot, still can't get to the BIOS. Tried editing grub to use I have gotten in to the BIOS about 10 times in the past 2 days with no issue, just hold down DEL and it get's there. I am positive the USB stick is bootable, I booted in to Clonezilla off of it this morning. It's definitely plugged in. I know there are similar questions here and I have tried those answers. The only thing I can think to do is factory reset my BIOS but I don't know if that's the smart choice. Grub config: |
Difference between sort -u and uniq -u Posted: 30 May 2022 12:28 PM PDT I always have been using Because they don't yield the same results. The manual for
My output consists of 1110 words for which |
Missing Icon on taskmanager KDE Posted: 30 May 2022 12:02 PM PDT Greatings, something is puzzling me on my linux install: I can't see the icons in the window and in the bottom bar, though I see it on the global app menu, search engine and file manger. The application in Calibre, installed through flatpack and my distro is KDEneon. Any tip to troubleshoot this is more than welcome, especially if you can explain me what went wrong :) |
Executable permissions on files that do not need it Posted: 30 May 2022 11:53 AM PDT I would like to ask you who are familiar with security on unix-like systems how do you rate potential risk on for example config files (ASCII) that have executable flag configured on them. Common sense would say obviously to go with the least privileges as possible but could you rate potential danger or point to exact example of abusing this in the real world? As those files are mostly owned by root, in order to edit them you would need a root permission to change them and in that case you can even change the executable flag on it as well even for those with the flag unset. Thanks in advance |
How to build custom images with buildroot? Posted: 30 May 2022 11:47 AM PDT I need to build custom Linux image that I can burn on flash card and make it bootable? |
How do I resolve Ipv6 related errors from NetworkManager Posted: 30 May 2022 11:45 AM PDT I started using |
Systemd Partof directive behavior when a component service restarts Posted: 30 May 2022 11:38 AM PDT I have an application that consists of several services : one backend service and several frontend services with auto-restart activated. After reading controlling-a-multi-service-application-with-systemd/, PartOf directive almost met my requirements : a contoller service is used to forward stop, start requests to the components except for the fact that if frontend (ComponnetB.service below) fails and is restarted by systemd, the whole group of services gets restarted. What I'd like would be for componentB.service to restart without making the whole group to restart. Is it possible to do that with Systemd ? Controller Service example-app.service: componentA.service: ComponentB.service: |
How to find out with which user gvfs has connected to smb share Posted: 30 May 2022 10:59 AM PDT I can connect to network drives with the following command: And I can get some file attributes of the mount point: But how can I fetch the name of the user that connected to the share ("myusername" in the case above)? |
How can I fix "You don't have enough free space" in kali linux? Posted: 30 May 2022 11:02 AM PDT How can I fix "You don't have enough free space" in kali linux? |
Import LVM VG with broken mirror Posted: 30 May 2022 12:15 PM PDT I have a PC running Kubuntu 21.10 I setup several months ago where I protected my data by using LVM mirroring with 2 physical 1 TB SSD disks. I recently had disk controller issues on that old PC that kept corrupting the ext4 filesystem so I bought a new PC. I used one of the old SSDs to build a new Kubuntu 22.04. I am now trying to use the other old SSD that still has the mirrored data from the old Kubuntu 21.10 (but obviously only half the mirrors that LVM was originally setup with). I never got a chance to vgexport the old 21.10 VG or LVMs. Still it seems reasonable that I should be able to import the old VG/LVMs that have the broken mirror (only 1 of the original 2 disks are available). But I can't figure out how. The new 22.04 does have a different VG name (vg00) so no VG name conflict (21.10 VG is named kubuntu). A "lsblk -f" does show the old 21.10 disk /dev/sda2 as "LVM2_member" so thats good. A "pvscan" also shows as /dev/sda2 as "lvm2". But I can't get "vgimport" to do anything. Any ideas? |
Bspwm session displays only grey screen and keybindings dont work Posted: 30 May 2022 10:09 AM PDT Here are my bspwmrc and sxhkdrc files When i log in with gnome my window manager works fine so i think the problem is with bspwm because after logging into a bspwm session the only thing i can see is a grey screen with no errors or no cursor response whatsoever. The keybindings i set in sxhkdrc also do not seem to work either. |
Login to Linux knowing only the root password Posted: 30 May 2022 10:33 AM PDT I tried top disable the password of my Debian user and must have done something stupid since now I can't login at all anymore with that user. I do still have the root/sudo password. I tried to type in "root" as the user at the logon screen after the computer boots, but it didn't seem to accept that. Is there a way to login to my Debian installation knowing only the root account password? Unfortunately I have not enabled SSH on the machine. |
How do I see what version of certain libraries are being used by a snap package Posted: 30 May 2022 11:02 AM PDT I'm trying to determine what version of MESA the latest firefox snap package is using. Is there a way this can be done? |
Add extra field to a file for records that have 6 fields instead of 7 Posted: 30 May 2022 10:58 AM PDT I have a problem with text files separated by commas, when I'm going to begin receiving files (hundreds of them) with a mixed layout, some records will have 7 fields(a total of 6 commas) and other records in the same file will have 6 fields (a total of 5 commas). When I find a record with 5 commas, I want to add at the end of that record a comma followed by NA so my loading process thinks it has 7 fields, being the last one NA. This is what I have right now, the first record has 7 fields, the second only 6: This is what I expect (both records with 7 fields) Can this be done counting commas with sed or something similar and adding at the end of the file ,NA whenever there's only 5 commas. Please keep in mind this is going to happened for hundreds of files, so I don't know if I need to use the filename as a parameter so something like that. Thanks!!!! |
Can program notify itself any opened shell? Posted: 30 May 2022 12:26 PM PDT I am planning on write CLI program. This CLI program should have ability to run at scheduled time. Is it possible for this program to somehow notify user's shell? Sort of like |
initramfs got corrupted/ misconfigured, how to boot properly? Posted: 30 May 2022 12:10 PM PDT How to boot properly, fix the boot loader? Why my initramfs-fallback have higher size than newly created? (use mkinitcpio instead update-initramfs on arch) The initramfs is always missing for 8 month i just do via recovery fallback initramfs. What I notice is, even i do kernel update, it still missing. I assume it will be fixed when the newer kernels do post-transaction things. I do use dual boot, both arch and on a different drive (HDD and SDD). |
execute set of commands in group by {} vs () [duplicate] Posted: 30 May 2022 01:44 PM PDT I read this post: I understand the answer, but having the option to execute a set of commands through either If the scenario(s) exists: when is mandatory use |
Wifi won't connect after delete almost all package Posted: 30 May 2022 10:52 AM PDT Earlier I wanted to make Linux Ubuntu GUI to a CLI, after I changed my Linux to CLI. I removed all GUI related packages without further reading a depency that will delete (eg, X11). However after I reboot, I find that my wifi can't connect to the internet or connected to router. I have tried restarting the wifi/Networkmanager, Even after reinstalling roughly what I deleted earlier, it still doesn't work. Changes: I've managed to fix it and get it working by running the command |
Ansible: How to dynamically construct menu with ansible.builtin.pause module Posted: 30 May 2022 10:38 AM PDT The goal here is to dynamically construct menu from available variable file playbook: test.yml Output: As you could see it displays only part of the main not all Question: How to display all available options at once and save user selection, so I can run next task based on condition I'm pretty sure menu must be first generate and saved under one variable before sending to ansible.builtin.pause but not sure how Thanks for help |
How to pass an array as function argument but with other extra parameters? Posted: 30 May 2022 11:15 AM PDT The following post solution works as expected: Therefore - from his answer: The reason of this post is what if the following case happens: Problem: I did do realize about the arguments sent, when they are received how parameters in the function - they are practically merged - so I already did do a research: Sadly and in: does not work as expected - in that answer there is a comment indicating an issue - with a link with a demo testing/verification - about the array size ( So how accomplish this goal? |
Posted: 30 May 2022 11:40 AM PDT I use VNC (RealVNC "VNC Viewer" app) on my Mac to connect to Linux desktops: Fedora 35 & Ubuntu 21. They both are using GNOME desktop: 41.1 for Fedora, and 40.5 for Ubuntu I recently discovered that the 10-key (numeric) part of my Mac keyboard no longer works on either desktop when connected via VNC. These are both physical machines, but I have not yet tried actually connecting the same keyboard to the Linux machines yet since I need the VNC connection to work. I have disabled "Mouse Keys" but this has no effect and did not resolve the issue. Is this a bug in GNOME perhaps? Worth mentioning that the 10-key does work in Windows and macOS when connected via VNC. Also, for whatever reason the 10-key does work in the calculator app in Linux, but nothing else. When trying to use the 10-key to enter numbers in a text editor app I just get the "ding" error sound. When trying to use it in the terminal it prints outs all caps letters: for example - 123456789 shows:
|
What's the point of firewalling outgoing connections? Posted: 30 May 2022 11:47 AM PDT I have a firewall (csf) that lets you to separately allow incoming and outgoing TCP ports. My question is, why would anyone want to have any outgoing ports closed? I understand that by default you might want to have all ports closed for incoming connections. From there, if you are running an HTTP server you might want to open port 80. If you want to run an FTP server (in active mode) you might want to open port 21. But if it's set up for passive FTP mode, a bunch of ports will be necessary to receive data connections from FTP clients... and so on for additional services. But that's all. The rest of ports not concerned with a particular service that the server provides, and especially if you are mostly a client computer, must be closed. But what about outgoing connections? Is there any security gain in having destination ports closed for outbound connections? I ask this because at first I thought that a very similar policy of closing all ports as for incoming connections could apply. But then I realised that when acting as a client in passive FTP mode, for instance, random high ports try to connect to the FTP server. Therefore by blocking these high ports in the client side you are effectively disabling passive FTP in that client, which is annoying. I'm tempted to just allow everything outgoing, but I'm concerned that this might be a security threat. Is this the case? Is it a bad idea, or has it noticeable drawbacks just opening all (or many) ports only for outgoing connections to facilitate services such as passive FTP? |
Pulseaudio no sound from speakers Posted: 30 May 2022 01:51 PM PDT Well, I know there are similar questions out there but none of their answers have actually solved my problem. I am running a Debian 10 ( The thing is I haven't been able to make speakers play a sound, even though microphone and headphones work. On the other hand, while speakers are silent they are detected by the system. This is the info about my computer: The info in pulseaudio is: I have tried every possible profile combination through Update: Update 2: Output of |
iconv module (to use with rsync) to avoid windows-illegal filenames in local NTFS partition Posted: 30 May 2022 01:03 PM PDT I would like to locally attach an NTFS volume to my unix (Ubuntu) machine, and copy (replicate) some unix directories to it, using rsync, in a way that the result is readable under Windows. I do not care about ownership and permissions. It would be nice if modification dates would be preserved. I only need directories and files (symbolic links would be nice, too; but not a problem if they cannot be copied). Two obvious problems are: case (in)sensitivity, and characters that are illegal in Windows filenames. For example, in Linux I can have two files "a" and "A"; I can copy them to the NTFS volume, but in Windows I will be able to access (at most?) one of them. But I am happy to ignore that problem. What I am interested about are illegal characters in Windows filenames, which are <,>,:,",/,\,|,?, and * (well, actually also ascii 0-31, but I do not care about that. There might also be problems with files ending in a "."?). I would like rsync to automatically "rename", e.g., a file called "a:" to, say a(COLON), to end up with a legal name (and, ideally, translate a(COLON) back to a:) Is this possible to have rsync automatically rename files to avoid characters forbidden in Windows?
Update: As it seems my question was not quite clear, let me give a more explicit example: For example, WINDOWS-1251 is of no use for me. into I would need a codepage, windows-filenams, say (which does not exist), that transforms the string into something like Update 2: I now gave up and renamed the offending files ``by hand'' (i.e., by script). From now on, every time before running rsync, I run a script that checks whether offending filenames exist (but does not automatically deal rename anything); I just use (the last line is from case-insensitive search of duplicate file-names ) |
KDE: suspend to 'freeze' state instead of 'mem' Posted: 30 May 2022 10:04 AM PDT I have a Lenovo Helix 2, which has busted suspend-to-RAM (S3) support. "Light sleep" mode (S0ix), however, works fine, as tested with I can bind the power button to use Unfortunately, the only options the KDE power manager gives me are "Do Nothing", "Lock Screen", "Suspend", "Hibernate", and "Power Off". It has a "run script" option, but that only applies when transitioning between power states -- e.g. I could have it run a script when going from AC to battery, or from battery to low battery, but not when on battery power and idle for 30 minutes. So, is there some way -- either as part of KDE configuration, or as a systemd or sysfs or kernel option -- to override things so that it will try to |
Trying to connect bose quietcomfort 35 headset over bluetooth on arch linux Posted: 30 May 2022 11:02 AM PDT There is another question here, but i followed those instructions and it still didn't work. Here is the systemctl status Here are the contents of /etc/bluetooth/main.conf And the contents of /etc/bluetooth/audio.conf Here is what happens when I try to connect via bluetoothctl Here is the relevant information from /etc/pulse/default.pa Any help is appreciated, thanks. Ninja Edit: Pulseaudio-bluetooth IS installed. |
How to access the Evolution calendar data from the command line? Posted: 30 May 2022 12:06 PM PDT I want to be able to access the Evolution calendar from the command line. Specifically, I'd like to be able to:
How can I do that? Is it possible? Google was distinctly unhelpful in this case. I'm running Evolution 3.4.4. Using additional software packages that talk to the Evolution server is perfectly fine. |
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