Error found when loading /etc/profile and UEFI permission denied

If I turn on my computer normally:



/etc/profile.d/01-locale-fix.sh: line 2: /usr/bin/locale-check: No such file or directory

 
As a result the session will not be configured correctly.  
You should fix the problem as soon as feasible.

Grub Boot:

Kali GNU/Linux, with Linux 5.4.0.-45-generic
Kali GNU/Linux, with Linux 5.4.0.-45-generic (recovery mode)
Kali GNU/Linux, with Linux 5.2.0.-42-generic
Kali GNU/Linux, with Linux 5.2.0.-42-generic (recovery mode)

I select the second option:

efi stub secure boot 

**DPKG** 
Reading cache
Can not upgrade
An upgrade from 'kali-rolling' to 'focal' is not suported with this tool.

**ROOT**
Cannot open access to console. The root account is locked see sulogin(8) man page for more details." 

[![system-summary][1]][1]


  [1]: https://i.stack.imgur.com/rXRO8.jpg


The options on boot don't recognize the USB I'm using to try to install Ubuntu again (Ubuntu 18.04 "Bionic Beaver").

I don't understand why the option for Ubuntu is not listed, since I have Ubuntu 20.04 not Kali Linux. 

What can I do?

Go to Source
Author: user197536

Ubuntu 20 on Active Directory — wrong user and group IDs assigned

I’m trying to join my Ubuntu 20 virtual machine to our Active Directory setup. Everything seems to be working, except the user IDs shown for users do not match what is in Active Directory. This means that (among other problems) users cannot access their home directories which are served/mounted from another server.

The user ID for rgoodman should be as shown here (from the non-working machine):

$ ls -ld /home/rgoodman
drwxr-xr-x 70 1101210 1100513 12288 Feb 23  2019 /home/rgoodman

On a working server (which is actually running CentOS), I see this:

$ id rgoodman
uid=1101210(rgoodman) gid=1100513(domain users) groups=1100513(domain users),1101210(rgoodman),1110778(customer-support-sg),1110770(cacti-sg),1110867(software-development-sg),1110838(phoenix-dev-sg),1000001(BUILTINusers)

On my server which isn’t working, I see this:

$ id rgoodman
uid=945201210(rgoodman) gid=945200513(domain users) groups=945200513(domain users),945210867(software-development-sg),945210838(phoenix-dev-sg),945210778(customer-support-sg),945210770(cacti-sg)

It’s interesting that the end of each number is the same, but the prefix is different. How do I change the prefix on this machine to match what is in AD? Is the BUILTINusers at the end of the working machine’s list a clue?

Go to Source
Author: RGoodman

Reference request for permissions needed by linux commands

Good day,

I want to ask if there is a comprehensive reference for permissions needed by each linux command and on which directores (ex : source/target) to do its primary role … something like a list, I wasn’t successful to find that in the manual but if it exists , please help me know in what part it resides in the manual

I am preparing a summary of that during my self study thats why am asking so if any one could help me it will be appreciated
Thanks

Go to Source
Author: AbdAllah Talaat

How to authorize google “find my device” to turn ON the GPS + Data remotely?

I would like to use Google “find my device”, but it only works with the location and a connection to the internet.

Xiaomi’s “find my device”, can turn ON the location but only it’s connected to the internet (it’s not able to use the gsm network to do this).

Google “find my device” (from google) website on my PC isn’t even able to turn ON the location when the phone is connected to the internet

How can I authorize google to remotely turn ON the location + data?

(ps: I’m aware that some (paid/adv) apps can turn location/data using the gsm network with SMS)

Go to Source
Author: JinSnow

Systemd service not starting – ‘Failed at step EXEC spawning… Permission denied’

I’ve read other answers for similar issues (Failed at step EXEC spawning… Permission denied) and none seem to apply.

After I upgraded my bitcoin node to v0.20.0 it is no longer starting on boot nor manually with systemctl start bitcoind.service.

Journalctl output:-

$ journalctl -xe
...
Jul 12 15:58:22 $HOSTNAME systemd[572]: bitcoind.service: Failed to execute command: Permission denied
Jul 12 15:58:22 $HOSTNAME systemd[572]: bitcoind.service: Failed at step EXEC spawning /usr/bin/bitcoind: Permission denied
-- Subject: Process /usr/bin/bitcoind could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The process /usr/bin/bitcoind could not be executed and failed.

I’m using the default init script (https://github.com/bitcoin/bitcoin/blob/master/contrib/init/bitcoind.service) softlinked from my home directory to /etc/systemd/system/.

The executable is softlinked from my home directory into /usr/local/bin, so previous answer I’ve linked above suggesting an SELinux issue could apply but I don’t believe it is enabled: (-bash: getenforce: command not found). I am running Debian 10.4 and believe it is disabled by default.

$ ls -al /usr/bin/bitcoind 
lrwxrwxrwx 1 root root 34 May  5  2019 /usr/bin/bitcoind -> /home/$MY_NAME/src/bitcoin/src/bitcoind
$ ls -al /home/$MY_NAME/src/bitcoin/src/bitcoind
-rwxr-xr-x 1 bitcoin bitcoin 175058584 Jul  7 20:40 /home/$MY_NAME/src/bitcoin/src/bitcoind

Everything is set to run under the ‘bitcoin’ nologin user:

$ id bitcoin
uid=999(bitcoin) gid=999(bitcoin) groups=999(bitcoin)
$ cat /etc/passwd
...
bitcoin:x:999:999::/home/bitcoin:/bin/false
...

Here are the permissions on the relevant directories:

$ sudo ls -al /etc/bitcoin
total 12
drwx--x---  2 bitcoin bitcoin 4096 Jul 11 22:30 .
drwxr-xr-x 87 root    root    4096 Jul 12 15:58 ..
-rw-rw----  1 bitcoin bitcoin  601 Jul 11 22:30 bitcoin.conf
$ ls -al /var/lib/bitcoind
total 21896
drwx--x---  5 bitcoin bitcoin     4096 Jul  9 11:55 .
drwxr-xr-x 32 root    root        4096 Dec  5  2019 ..
...
$ ls -al /run
total 24
drwxr-xr-x 18 root        root         560 Jul 12 15:59 .
drwxr-xr-x 22 root        root        4096 Jun  2 17:46 ..
...

I’m stumped – any input greatly appreciated.

Go to Source
Author: Baron Mingus

accessing global in data flow even save main session is set to true

I got an error regarding access of the global variable “regr” in my project. the previously same program was executed successfully but now it shows an error that I have attached herewith.

Even though “save main session is set to true”, I am not able to access regr (Global one)

Go to Source
Author: Nirav Bhatt

Permissions – How do I delete files from an external drive that requires root permissions?

Okay, I’m at a loss as to what to do. I was trying to set up a bootable USB using “UNetBootin” and I didn’t properly check where my stuff was actually installing to, so instead of installing to the external drive I was planning to use everything started to install to my 4 TB eHDD. Thankfully, nothing was lost… however, every single file that was added I am unable to delete through normal means. I keep getting an error every time I try to delete one of these folders that says “Error removing file /media/(myname)/My Passport/boot/en-us: Permission denied”. Checking properties, I found that these files belonged to “root” and that I can’t do anything because I’m not the owner.

I’ve tried opening a terminal so I could rm -rf these stubborn files, but I can’t even access my eHDD with it. Typing that directory into the terminal gives me the error “bash: cd: too many arguments”. Same thing happens when dragging the folder into the Terminal.

(If it’s worth anything, I was trying to set up a Windows 10 bootable USB in case I ever wanted/needed to switch back.)

Go to Source
Author: Talia S

Connecting to mysql db server from a remote server to a local machine

As per my understanding, there are two main things to check before connecting to a remote mysql db server.

1. Bind address.
2. Grant privileges.

I was able to connect to a remote mysql db server from my Mac, it was easy (mysql -uroot -h x.x.x.x -p)

Imagine a scenario for my own learning, I want to connect to a mysql db instance on my Mac from a remote server. Imagine I am logging into this remote linux machine from my Mac and trying to connect to my own Mac db server?

mysql -uroot -h x.x.x.x -p

is raising an error 2003 mysql cannot connect 10060 cannot connect to the x.x.x.x server. It is similar to the reverse proxying while connecting to the local machine from a remote one, can someone direct to right resource (if there is a similar question please comment) which can help me figure out this thing?

Go to Source
Author: JumpMan