How do I open and edit a usr/lib/udev
file in Ubuntu 20.04 without root?
Asked
Active
Viewed 301 times
0

Nmath
- 12,333

ken bright
- 93
1 Answers
2
You need root privileges to edit any files in that path.
You can use sudo
before a command to obtain root privileges for a particular action.
For example:
sudo nano /path/to/file
This will open the file in the nano text editor as if you were root.
If you do not have sudo/root privileges, you will not be able to edit the file. Contact your system administrator and describe to them why you need to edit these files.

Nmath
- 12,333
-
-
-
Thank you everybody I thnk I have solved it now with all your help. I used su "username" to get root and find the directory then sudo gedit open and edit.The computer can now see the gps dongle I just have to go out in the cold to see if the dongle can see the satellites! – ken bright Dec 22 '21 at 10:13
sudo gedit
– EODCraft Staff Dec 19 '21 at 22:30