SOLVED:I need to access and add a file to the /etc/udev/rules.d folder - how do I access it as root?
elementary OSThis forum is for the discussion of elementary Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks, but tbh, that doesn't mean that much to me?? Well, I know what SUDO is and I have used it many times for various task, but changing the permissions for a root folder is not something I have looked at before. I assume changing the permissions is the way to go on this?
How do I apply that to open the folder and allow a file to be placed in it? Where and how do I run that command (if it is a command?)
it looks like you do not really understand how does it work. Only the user root has right to place a file into that folder. So you need to use either su or sudo to change the current user to root [to be able to do that].
You do not need to change the permission of any folder.
Yes I already know that! But you folks seem to post instructions as if people asking were already experts in Linux!! And if that were the case, we wouldn't be asking questions!
All I want to do is insert a simple text file into that folder.....sheesh! this is like extracting hens teeth! No offence meant but tbh, folks need to understand that not everyone new to linux is an expert! Please try to remember YOU were once a novice.
I ask a simple question, and I get some cryptic reply, then one saying I really don't understand (well, and no offence, but duh! that's WHY I'm asking) and then the last saying that permissions are there for a reason. None of these even remotely go to an answer to the OP.
I have found how to get to root in the terminal, which is all fine, but that gets me no closer to how to add a text file to that folder. Do I run nano in that root terminal? Can I run a text editor outside the terminal?
What file manager are you using? This works in some, like thunar... Type (or paste) the following into the address bar:
admin:///etc/rules/udev.d
Yes, three slashes. You can also start at root and click you way there from:
admin:///
You'll be prompted for password twice.
Alternatively, you can use sudo from terminal to launch an editor, sure. like
sudo nano /etc/rules/udev.d/newfile
Issue is solved. I installed Nautilus as the file explorer and ran it as root. DuckDuckGo gave me the answer. It's a shame the "dedicated" EOS forum couldn't
What file manager are you using? This works in some, like thunar...
admin:///etc/rules/udev.d
Type (or paste) that into the address bar. Yes, three slashes. You can also start at root with admin:///
You'll be prompted to password twice.
Thanks for that, I appreciate the reply and the hint! See above I managed to sort it going a different way. But I WILL put that line in my linux tips file
Yes I already know that! But you folks seem to post instructions as if people asking were already experts in Linux!! And if that were the case, we wouldn't be asking questions!
You can definitely tell us you don't understand the answer, and we will try to give you better answers. From my side it is ok.
Quote:
Originally Posted by joden1
All I want to do is insert a simple text file into that folder.....sheesh! this is like extracting hens teeth! No offence meant but tbh, folks need to understand that not everyone new to linux is an expert! Please try to remember YOU were once a novice.
Actually we have no any idea about your practice, knowledge, so sometimes yes, not that easy to give the correct answer.
Quote:
Originally Posted by joden1
I ask a simple question, and I get some cryptic reply, then one saying I really don't understand (well, and no offence, but duh! that's WHY I'm asking) and then the last saying that permissions are there for a reason. None of these even remotely go to an answer to the OP.
So please try to understand. It looks like you know how to be root, so at least the first step is ok.
Quote:
Originally Posted by joden1
I have found how to get to root in the terminal, which is all fine, but that gets me no closer to how to add a text file to that folder. Do I run nano in that root terminal? Can I run a text editor outside the terminal?
You can definitely use nano, if you wish, or you can use your favorite text editor. You can also run a text editor outside, but based on your answers would be better to use nano - to add that file to the folder indicated above.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.