linub
7 March 2025 19:31
1
Hello
i’m trying to access /var/lib/bluetooth
following this in the Arch wiki:
https://wiki.archlinux.org/title/Bluetooth#Saving_the_configuration
running cd /var/lib/bluetooth says the follwing:
sudo: "cd" is a shell built-in command, it cannot be run directly.
sudo: the -s option may be used to run a privileged shell.
sudo: the -D option may be used to run a command in a specific directory.
sorry for the noob question.
xabbu
7 March 2025 19:36
2
You can’t use cd
with sudo
.
If you need cd
, switch to root and change in the folder you want to access. If you don’t know your root password, use sudo
for example with
sudo su -
You should also set a new root password.
2 Likes
linub
7 March 2025 19:50
3
thanks that worked but i have no idea how to proceed
i’ll make another thread on it.
cd /var/lib/bluetooth
should work from within your user account
You may not be able to even read any files in that directory (I did not check)
Then you can use sudo
to access them, to work on them.
Question is:
what is it that you want to do to these files?
(or think you need to do …)?
You can open and alter ANY file as root.
linub
7 March 2025 20:00
5
here i made a new thread:
im following this article in the Arch wiki:
https://wiki.archlinux.org/title/Bluetooth#Dual_boot_pairing
i already got from Windows the Bluetooth keys from the registry;
it looks something like this:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Keys\f0d41555857e]
"ac800a24d2e6"=hex:45,df,80,c5,37,52,8d,02,dc,a0,2e,34,9b,71,a6,f3
it’s an LTK key that should look like this:
45DF80C537528D02DCA02E349B71A6F3
i cd into
cd /var/lib/bluetooth/
[bluetooth]# ls
F0:…
system
Closed
10 March 2025 20:01
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.