Thursday, October 21, 2021

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


How can I change the permission of an external hard drive and access it?

Posted: 21 Oct 2021 11:43 AM PDT

I try to access an external hard drive with an ntfs filesystem from NixOS.

Is it correct that I have to create a mounting point? Where do you usually create a mounting point?

sudo mkdir -p /media/t/TDrive  sudo chmod a+rwx /media{,/t,{/TDrive}}  

and everything looks good:

$ ls -ld /media/t/TDrive  drwxrwxrwx 2 root root 4096 Oct 21 11:42 /media/t/TDrive  

But when I mount the external hdd, the permission changes. This doesn't happen on another computer running Ubuntu.

$ sudo mount /dev/sdb1 /media/t/TDrive  $ ls -ld /media/t/TDrive/  dr-x------ 1 root root 4096 Oct 18 15:02 /media/t/TDrive/  $ cd /media/t/TDrive/  bash: cd: /media/t/TDrive/: Permission denied  

What can I do?

Why is the ammount of Avaible space on a drive less than Size - Used?

Posted: 21 Oct 2021 11:43 AM PDT

ext4 filesystem

df -h /dev/sda1                                                                                              Filesystem      Size  Used Avail Use% Mounted on                                                                                        /dev/sda1       938G   72M  891G   1% /mnt/media  

As you can see, the partition is 938 GB in size (1 TB SSD), 72 MB is used, but only 891 GB is available for use. What is causing the nearly 47 GB overhead?

Why can't a user delete a directory owned by nobody?

Posted: 21 Oct 2021 11:29 AM PDT

I configured a basic samba shire to share media files over SMB on my local network without credentials (i.e., as a SMB guest)

/etc/samba/smb.conf

[media]                                                                                                                                 Comment = Media directory                                                                                                               Path = /mnt/media                                                                                                                       Browseable = yes                                                                                                                        Writeable = Yes                                                                                                                         create mask = 0666                                                                                                                      directory mask = 0777                                                                                                                   Public = yes  

When I create a directory called example using SMB on Windows, the directory structure looks like this

ls -alh    total 28K                                                                                                                               drwxrwxrwt 4 root   root    4.0K Oct 21 13:44 ./                                                                                        drwxr-xr-x 3 root   root    4.0K Oct 20 13:33 ../                                                                                       drwxrwxrwx 2 nobody nogroup 4.0K Oct 21 13:44 example/                                                                                  drwx------ 2 root   root     16K Oct 20 13:36 lost+found/  
lsattr    --------------e----- ./example  

When I try to delete the directory from the system using a standard user account, I get an error message.

rmdir: failed to remove 'example': Operation not permitted

Yet, I can delete the folder from using SMB on Windows. What is happening here, and how can I allow any local unix user to delete or modify files created by a guest over SMB?

Why do some popular programs have so bad error flow control? [closed]

Posted: 21 Oct 2021 11:04 AM PDT

In this case is thunar that's struggling trying to display a folder with many images, last time it was firefox trying to open infinite tabs on reply to a nasty script.

Why don't developpers handle this so basic errors?

It's as simple as a warning message do you really wan't to continue? Why do they have to charge against my full system?

Surely I should configure some niceness and QoS but why doesn't this comes by default?

No graphic application should demand resources that are needed for basic functionality of desktop manager itself.

Everyday I'm more critic about our current technological setup, if you think about it, it's flawled everywhere.

How to loop through all files in the current and sub directories to find a string?

Posted: 21 Oct 2021 11:04 AM PDT

Hi I am trying to loop through a directory and all its subdirectories to find the string 'foo' in all the files, for example. I then want to display the file names (including full path) of all files which contain it.

The operating system is unix and using bash shell.

Any suggestions would be appreciated. Thanks

Linux Mint 20...Cinnamon Problem

Posted: 21 Oct 2021 10:18 AM PDT

Unable to access Linux Mint 20 owing to the usual cinnamon problem. I have managed to put in the user name in order to install cinnamon but it will not allow me to type in a password. Help!

How to get the 'Authenticated URL' from multiple Items in a google bucket?

Posted: 21 Oct 2021 09:55 AM PDT

In my google cloud bucket is a folder with a lot of images and i want to extract the Authenticated URL from all images in the folder? With

gsutil ls -L "gs://bucketname/path_to_folder/"  

i get a lot of information, but the Authenticated URL is not among it.

Is there a way to get a file that only contains all of the Autheticatd URL-Data from every image?

Xfce4: How to decide which application to open the url based on patterns

Posted: 21 Oct 2021 09:18 AM PDT

The system has a bunch of browsers (like Chromium and Brave). All urls are to be opened by Chromium. So brave is not the default application for that. However, I want youtube links to be opened by Brave and not chromium. How can I achieve this in my ubuntu with xfce4?

Note: xdg-mime query default x-scheme-handler/http returns chromium, the problem is this is not about the scheme.

Linux OS USB is detected but not showing as /dev/sdaX

Posted: 21 Oct 2021 09:06 AM PDT

I am using Google Coral Board running mendel(built from debian) from Google, and I am encountering one issue with USB device detected under dmesg but not showing as /dev/sdaX.

This usb is controlled by a I2C-USBC Chip that I can still communicate (i.e., w/r with correctly return results) even the device is not showing as /dev/sdaX. This means that I have the proper connection. The issue is, somehow, Linux OS does not process this usb connection as /dev/sdaX as expected so that I can mount and do my tasks with it

The followings are my debugging screen output so far:

lsusb outpout before plugging NTFS-USB device:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  

dmesg outpout after plugging NTFS-USB device:

[   41.696184] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller  [   41.701997] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4  [   41.709854] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed  [   41.717889] hub 4-0:1.0: USB hub found  [   41.721784] hub 4-0:1.0: 1 port detected  

lsusb outpout after plugging NTFS-USB device:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  

lsblk outpout after plugging NTFS-USB device: <-- before is the same

NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT  mmcblk0      179:0    0 14.6G  0 disk  ├─mmcblk0p1  179:1    0  128M  0 part /boot  ├─mmcblk0p2  179:2    0    1M  0 part  ├─mmcblk0p3  179:3    0    2G  0 part /home  └─mmcblk0p4  179:4    0 12.4G  0 part /  mmcblk0boot0 179:32   0    4M  1 disk  mmcblk0boot1 179:64   0    4M  1 disk  mmcblk0rpmb  179:96   0    4M  0 disk  

fdisk -l outpout after plugging NTFS-USB device: <-- before is the same

Disk /dev/mmcblk0: 14.6 GiB, 15678308352 bytes, 30621696 sectors  Units: sectors of 1 * 512 = 512 bytes  Sector size (logical/physical): 512 bytes / 512 bytes  I/O size (minimum/optimal): 512 bytes / 512 bytes  Disklabel type: gpt  Disk identifier: 85B83F23-51C4-4403-8BAC-906FF5800F4E    Device           Start      End  Sectors  Size Type  /dev/mmcblk0p1   16384   278527   262144  128M unknown  /dev/mmcblk0p2  278528   280575     2048    1M unknown  /dev/mmcblk0p3  294912  4489215  4194304    2G unknown  /dev/mmcblk0p4 4489216 30523391 26034176 12.4G unknown      Disk /dev/mmcblk0rpmb: 4 MiB, 4194304 bytes, 8192 sectors  Units: sectors of 1 * 512 = 512 bytes  Sector size (logical/physical): 512 bytes / 512 bytes  I/O size (minimum/optimal): 512 bytes / 512 bytes      Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors  Units: sectors of 1 * 512 = 512 bytes  Sector size (logical/physical): 512 bytes / 512 bytes  I/O size (minimum/optimal): 512 bytes / 512 bytes      Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors  Units: sectors of 1 * 512 = 512 bytes  Sector size (logical/physical): 512 bytes / 512 bytes  I/O size (minimum/optimal): 512 bytes / 512 bytes  

Any advice would be greatly appreciated!

Uninstall Pop!_OS?

Posted: 21 Oct 2021 08:46 AM PDT

Ok. So I'm not a linux user generally, but I haven't had a good experience with Windows so I decided to switch over and install Pop_OS. It was really good for a time, but I eventually realized I couldn't install a lot of the software I need to use for my work (Unity/Unreal/DaVinci Resolve for example). I want to uninstall the OS and switch to Windows 11 but I can't because every time I try to get to the boot menu, dialogue pops up and says "encryption key?". Then when I enter it, it just goes straight back into Pop!_OS. Is there any way to wipe the ssd or to get the computer to run from a thumb drive (actually access the boot menu)?

How do I recursively cut an audio file automatically?

Posted: 21 Oct 2021 08:26 AM PDT

Okay so to begin. I'm developing a game however the sound engine that it uses is not advanced and dose not allow sounds to be paused, sounds can only played and stopped. I can not change this sound engine. It is quite the annoyance because I have a pause menu. Every time the pause menu is activated the games music has to pause also. When the pause menu is deactivated that games music has to start from where it left off. However due to the sound engine not being that advanced I can not achieve this.

To get around this issue I want to take an the audio file of the games music (2 minuet length) and trim it every 0.05 seconds from beginning to end, making a new file that is shorter then the previous every time it is trimmed. This would result in my having over 2400 audio files that get gradually shorter. How do I do this automatically?

Where to put kickstarter config for RHEL flash install

Posted: 21 Oct 2021 08:25 AM PDT

I can't figure out where to put a Redhat Enterprise linux (currently using 7.9 but will do 8 next) Kickstarter file on a flash drive install.

Flash drive is the full RHEL DVD installed directly to the flash drive with DD.

I moved the ks.cfg to the root of the flash drive and modified isolinux/isolinux.cfg on the append line to say:

append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7_9\x20SE ks=hd:LABEL=OEMDRV::/ks.cfg quiet  

I've tried file, hd, iso, from one article I found out how to install mtools and give the flash drive a label which is why that currently says label.

Every time I boot the flash drive and select the isolinux entry that I added that append to, it boots the GUI installer.

The kickstart file was generated by the RedHat kickstart generator and validated with ksvalidator. The docs don't seem to treat flash install on the same level as DVD.

My kickstart file is not complicated. DHCP network, add a user, post install run a script.

unknown filesystem type 'fat32' when trying to mount /boot

Posted: 21 Oct 2021 08:13 AM PDT

i was trying to do a modification to my gentoo kernel, and while i was doing the installation i got this error when trying to mount /boot, "unknown filesystem type 'fat32'." i looked around on the internet and thought the solution would be to just reboot. when i rebooted, the system booted, but the keyboard wouldn't work, and in the boot process it gave this "Some local filesystem failed to mount" error. now, i'm trying to recover my old kernel from a live ubuntu usb, following this guide on the gentoo website. however, when attempting to mount -a, it throws me the exact same error i had initially, "unknown filesystem type 'fat32'." what exactly do i do here? thanks in advance!

Why is HDD LED on my desktop computer blinking when system monitor shows no disk io activity present?

Posted: 21 Oct 2021 09:01 AM PDT

Today I've noticed that my desktops HDD LED is blinking even though there are no processes writing or reading the disk (SSD).

I've opened a terminal, ran htop and sorted all processes by IO_RATE. I can could clearly see that none of the processes were writing or reading the disk though my computers HDD LED would still blink 1 to 2 times per second. Why could that be happening?

Organizing files by dates contained within them

Posted: 21 Oct 2021 08:44 AM PDT

I am currently trying to write a script that organizes a list of files into subdirectories by their dates. The dates are contained on the first line of every file in the format YYYY-MM-DD. I have extracted the first line from every file using the head command and replaced the - with / so it becomes YYYY/MM/DD. This is so I can use it as file path.

I then want to create subdirectories YYYY>MM>DD where for example, the file containing the date 2015/10/19 is stored in the file path ./2015 -> ./2015/10 -> ./2015/10/19

This is the code I have so far.

for file in ~/fileList/*  do     head -1 $file | tr "-" "/")  done  

This is a sample file

2001-02-03  Thursday  Paris  44952  

I'm struggling to find a way to create the subdirectories and store each file in the correct directory. Any code suggestions would be much appreciated.

I am using the bash shell.

Terminate a pipeline if no data flows for n seconds

Posted: 21 Oct 2021 08:46 AM PDT

I have a piece of software that produces data on stdout for a while, then continues running but doesn't output any more data.

I have a pipeline that takes that output and processes it further, saving the output in a file. However, because the original process keeps running after it finishes producing output, I have to terminate this manually. Is there a command that will kill the running program once it hasn't produced any output for some number of seconds?

I know about the timeout command, but that looks like it operates on a fixed timeout. I don't have a reliable way of determining how long the software will keep outputting for.

Example:

Suppose I have generate-data that looks like this and cannot be modified. In reality, this is a piece of compiled software that I would prefer not to modify.

#! /usr/bin/env bash    for x in {1..5}; do      echo $x      sleep 1  done    while true; do sleep 1; done  

I currently run something like ./generate_data | grep '[2-4]' > output, which produces the output I want but doesn't ever terminate.

I would like to terminate the pipeline once generate_data doesn't output anything for 2 seconds.

While installing VirtualBox, system complains about missing kernel header files

Posted: 21 Oct 2021 08:17 AM PDT

Im trying to install VirtualBox on my chromebook (its on Debian 10). I need to install header files and I'm new to this. Can someone help?

vboxdrv.sh: Stopping VirtualBox services.  libkmod: ERROR ../libkmod/libkmod-module.c:1657 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory  Error: could not get list of modules: No such file or directory  libkmod: ERROR ../libkmod/libkmod-module.c:1657 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory  Error: could not get list of modules: No such file or directory  libkmod: ERROR ../libkmod/libkmod-module.c:1657 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory  Error: could not get list of modules: No such file or directory  vboxdrv.sh: Starting VirtualBox services.  libkmod: ERROR ../libkmod/libkmod-module.c:1657 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory  Error: could not get list of modules: No such file or directory  vboxdrv.sh: Building VirtualBox kernel modules.  This system is currently not set up to build kernel modules.  Please install the Linux kernel "header" files matching the current kernel  for adding new hardware support to the system.  This system is currently not set up to build kernel modules.  Please install the Linux kernel "header" files matching the current kernel  for adding new hardware support to the system.    There were problems setting up VirtualBox.  To re-start the set-up process, run  /sbin/vboxconfig  as root.  If your system is using EFI Secure Boot you may need to sign the  kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load  them. Please see your Linux system's documentation for more information.  

This is what it says. can someone help?

Error: Unable to retrieve http://repo.mysql.com/apt/debian/dists/buster/InRelease 403 Forbidden [IP: 23.57.81.191 80]

Posted: 21 Oct 2021 09:02 AM PDT

I'm installing mysql-server on my Debian 10,

I used the command: wget in the /tmp file, then sudo dpkg command which returned the following response:

 acelys @ uno-test-temp: / tmp $ sudo dpkg -i mysql-apt *      (Reading database ... 46803 files and directories already installed.)      Preparing to unpack mysql-apt-config_0.8.19-1_all.deb ...      Unpacking mysql-apt-config (0.8.19-1) to (0.8.19-1) ...      Setting up mysql-apt-config (0.8.19-1) ...      Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package mysql-apt-config)      OK  

then I typed the command: sudo apt update and here's the response with errors:

acelys @ uno-test-temp: / tmp $ sudo apt update      Err: 1 http://repo.mysql.com/apt/debian buster InRelease        403 Forbidden [IP: 23.57.81.191 80]      Reached: 2 http://deb.debian.org/debian buster InRelease      Achieved: 3 http://security.debian.org/debian-security buster / updates InRelease      Reached: 4 http://deb.debian.org/debian buster-updates InRelease      Reached: 5 https://packages.sury.org/php buster InRelease      Reading Package Lists ... Done      E: Unable to retrieve http://repo.mysql.com/apt/debian/dists/buster/InRelease 403 Forbidden [IP: 23.57.81.191 80]      E: The http://repo.mysql.com/apt/debian buster InRelease repository is unsigned.      N: Updates from such a repository cannot be done securely, and are therefore disabled by default.      N: See the apt-secure (8) man pages for repository creation and user configuration details.  

I have searched for lot of articles on Internet, they all talk about doing modifications in the sources.list file, but they don't precise what kind of modification I should do.

here's my sources.list file:

click to see the content of the file

and here's my mysql.list file:

click here to see the content of the file

"Select all" (Ctrl-A) keybinding overwritten

Posted: 21 Oct 2021 08:20 AM PDT

I accidentally overwrote the keybinding of the "select all" function in Gnome (normally it is given by Ctrl+A). Now I know that in general these configs can be changed via

/org/gnome/terminal/legacy/keybindings/select-all  

But I set this this config back to default but it is still not working.

I tried debugging it with xev but no luck. How to set these basic bindings? In Gnome extensive keybindings can be build via associating commands to them, but I can't figure out what the "command" is for "Select all".

AWK Command Argument Error

Posted: 21 Oct 2021 08:53 AM PDT

I have a dataset which contains contact information of students, the sample data set is as follows

First Name, Last Name, Address, Phone Number  John, Doe, "House # 11, Street xyz, Road, Area",00000000  Sara, Taylor, "Jake Lake%, Apartment #22, Main Road, Area XYZ", 00000000  

I am running the following command to replace , inside Address column to | to load it into the DB.

awk '!(NR%2){gsub(",","|")} {printf RFS $0} {RFS="\""}' RS=\" fileName.txt > output.txt  

The issue I am facing is the whenever I ran this command it returns me the following error, Initially it was running ok

awk: run time error: not enough arguments passed to printf(""Jake Lake%, Apartment #22, Main Road, Area XYZ")  

Is there any solution to that? I noticed that % is coming in the address is that the issue?

What does LOADADDR=0x20008000 mean in linux kernel make command?

Posted: 21 Oct 2021 08:10 AM PDT

I'm learning about u-boot. using qemu model, I could (using qemu) load the Image on memory location I want and I could run the kernel booting using booti addr command. As you know in arm64, there is no uImage.
Then, when building linux kernel for arm (32 bit), what does make LOADADDR=0x20008000 uImage mean? We could load (from SD card or network) the uImage anywhere we want using u-boot shell. Does it mean that when we run bootm command, the u-boot program relocates the kernel image inside the uImage to 0x20008000? It's hard to find these information.

sudo service sshd restart failed on AWS EC2 instance

Posted: 21 Oct 2021 08:31 AM PDT

I have created AWS EC2 instance and deployed Asp.Net Core Web API application. It works when deploying into server. After an hour, I was not able to connect my server using PUTTY or WinSCP. When i am trying to connect it says "Network error: Connection Refused".

My server details are

NAME="Amazon Linux"  VERSION="2"  ID="amzn"  ID_LIKE="centos rhel fedora"  VERSION_ID="2"  PRETTY_NAME="Amazon Linux 2"  ANSI_COLOR="0;33"  CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"  HOME_URL="https://amazonlinux.com/"  

After i researched from google, many suggested to check with AWS command session. If i given "sudo service sshd restart" it says "Redirecting to /bin/systemctl restart sshd.service Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details."

If i check with "systemctl status shd.service" then below message i got,

    sh-4.2$ systemctl status sshd.service  ● sshd.service - OpenSSH server daemon     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)     Active: activating (auto-restart) (Result: exit-code) since Tue 2020-08-11 18:48:15 UTC; 18s ago       Docs: man:sshd(8)             man:sshd_config(5)    Process: 4053 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=1/FAILURE)   Main PID: 4053 (code=exited, status=1/FAILURE)  

So, kindly help me in this regards.

How do I check cgroup v2 is installed on my machine?

Posted: 21 Oct 2021 09:33 AM PDT

I want to try cgroup v2 but am not sure if it is installed on my linux machine

>> uname -r  4.14.66-041466-generic  

Since cgroup v2 is available in 4.12.0-rc5, I assume it should be available in the kernel version I am using.

https://www.infradead.org/~mchehab/kernel_docs/unsorted/cgroup-v2.html

However, it does not seem like my system has cgroup v2 as the memory interface files mentioned in its documentation are not available on my system.

https://www.kernel.org/doc/Documentation/cgroup-v2.txt

It seems like I still have cgroup v1.

/sys/fs/cgroup/memory# ls  cgroup.clone_children  memory.kmem.failcnt                 memory.kmem.tcp.usage_in_bytes   memory.memsw.usage_in_bytes      memory.swappiness  cgroup.event_control   memory.kmem.limit_in_bytes          memory.kmem.usage_in_bytes       memory.move_charge_at_immigrate  memory.usage_in_bytes  cgroup.procs           memory.kmem.max_usage_in_bytes      memory.limit_in_bytes            memory.numa_stat                 memory.use_hierarchy  cgroup.sane_behavior   memory.kmem.slabinfo                memory.max_usage_in_bytes        memory.oom_control               notify_on_release  docker                 memory.kmem.tcp.failcnt             memory.memsw.failcnt             memory.pressure_level            release_agent  memory.failcnt         memory.kmem.tcp.limit_in_bytes      memory.memsw.limit_in_bytes      memory.soft_limit_in_bytes       tasks  memory.force_empty     memory.kmem.tcp.max_usage_in_bytes  memory.memsw.max_usage_in_bytes  memory.stat   

Follow-up questions Thanks Brian for the help. Please let me know if I should be creating a new question but I think it might be helpful to other if I just ask my questions here.

1) I am unable to add cgroup controllers, following the command in the doc

>> echo "+cpu +memory -io" > cgroup.subtree_control  

However, I got "echo: write error: Invalid argument". Am I missing a prerequisite to this step?

2) I ran a docker container but the docker daemon log complained about not able to find "/sys/fs/cgroup/cpuset/docker/cpuset.cpus". It seems like docker is still expecting cgroupv1. What is the best way to enable cgroupv2 support on my docker daemon?

docker -v  Docker version 17.09.1-ce, build aedabb7  

Unable to "yum install" on Oracle Linux 7 machine

Posted: 21 Oct 2021 10:33 AM PDT

I get the following error:

Loaded plugins: langpacks, ulninfo  http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/repomd.xml:   [Errno 14] curl#6 - "Could not resolve host: yum.oracle.com; Unknown error"  Trying other mirror.    failure: repodata/repomd.xml from ol7_latest: [Errno 256] No more mirrors to try.  http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/repomd.xml:   [Errno 14] curl#6 - "Could not resolve host: yum.oracle.com; Unknown error"  

Not sure what exactly this means. Can someone please give me pointers?

Fetch second and fourth column from a file

Posted: 21 Oct 2021 09:03 AM PDT

Problem Statement

I am not able to get the values in second and fourth column.

Tried

grep -i "AUGC\|AACN\|AACY" output.csv | cut -d ',' 2,4  

DATA

success,1234,["madhu",{'first',[{'last',18}]},"I0","I1",{'MISPswsss',[{'wwwwww',12wqasw}]}]  

WBC_ERR_DOMAIN_NOT_FOUND only for a specific account

Posted: 21 Oct 2021 10:05 AM PDT

Platform: RHEL 5.10

Version: Samba 3.6.6-0.136

Only on a single VM, one of my co-workers is able to log into the VM using his AD credentials without issue, whereas my account appears to have trouble locating user information:

[root@ncxxxlwb05 ~]# wbinfo -i myDom.mjplakus  XXX.mjplakus:*:16777224:16777229::/home/XXX/mjplakus:/bin/bash  [root@ncxxxlwb05 ~]# wbinfo -i myDom.jadavis6  failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND  Could not get info for user xxx.jadavis6  

Thinking that winbind could have just cached a negative return (for instance AD wasn't available when it had to refresh its cache entry for my user account) I set both winbind cache time and idmap negative cache time to be 1 second but I got the same results. Same results with above cache values and doing net cache flush several times.

I didn't find anything in /var/log/samba/* under normal debug levels so I set debug level = 8 and this started being printed in the logs when I tried to resolve my name:

[2013/12/05 14:21:59.795061,  3] winbindd/winbindd_getpwnam.c:56(winbindd_getpwnam_send)    getpwnam myDom.jadavis6  [2013/12/05 14:21:59.795161,  1] ../librpc/ndr/ndr.c:414(ndr_pull_error)    ndr_pull_error(13): value out of range  [2013/12/05 14:21:59.795219,  5] winbindd/winbindd_getpwnam.c:137(winbindd_getpwnam_recv)    Could not convert sid S-1-5-21-652622394-3291385539-1351089441-10771: NT_STATUS_INVALID_PARAMETER  [2013/12/05 14:21:59.795391,  6] winbindd/winbindd.c:869(winbind_client_request_read)    closing socket 29, client exited  

Which seems like it contains the actual problem but I don't know how to read the error and would like some guidance on this. It seems like it doesn't like the SID associated with my AD account for some reason, but I don't know why or how to work around it.

I'm present in the active directory domain referenced, but for some reason it's unable to pull only my account's information.

Where does the Linux kernel reside in memory ?

Posted: 21 Oct 2021 11:06 AM PDT

From some book I have, I have in my notes that the Linux kernel resides at 0xc00000000 on 32-bit systems, and is mapped into user space for performance reasons.

Is this accurate ? How can I verify this ?

Also, where does the kernel reside on 64-bit systems? Is it still at 0xc00000000, or somewhere else ?

Best Disk Partitioning Scheme for a Linux-based Developer Machine

Posted: 21 Oct 2021 08:51 AM PDT

Is there some kind of "best disk partitioning scheme" for a Linux-based web and application developer machine, in terms of performance, organization or others?

Accidentally set screen resolution too high, it won't change back

Posted: 21 Oct 2021 08:13 AM PDT

I'm using VMware with Arch and XFCE. The default screen resolution was too small for me so I wanted to change it to something higher. I accidentally selected a screen size that was too big and I thought it was going to go back to the screen size it was before but it just stayed as a black screen. I have rebooted VMware and Arch is still a black screen.

Is there anyway to fix this without reinstalling?

No comments:

Post a Comment