0

How do I open and edit a usr/lib/udev file in Ubuntu 20.04 without root?

Nmath
  • 12,333

1 Answers1

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
  • I do not have a ststem administrator - it is my computer – ken bright Dec 21 '21 at 09:59
  • Yes you do! You are the system administrator. You can use sudo – Nmath Dec 21 '21 at 10:14
  • 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