How do I open and edit a usr/lib/udev file in Ubuntu 20.04 without root?
Asked
Active
Viewed 189 times
0
Nmath
- 12,105
- 8
- 25
- 54
ken bright
- 63
- 6
-
4simple: you don't. That is why privileges exist. – Frittierapparat Dec 19 '21 at 21:57
-
You might be looking for this...`sudo gedit` – EODCraft Staff Dec 19 '21 at 22:30
-
1Does this answer your question? [How do I start Nautilus as root?](https://askubuntu.com/questions/156998/how-do-i-start-nautilus-as-root) – user68186 Dec 19 '21 at 22:59
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,105
- 8
- 25
- 54
-
-
-
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