Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
How do I become an admin, so I can edit all of the files. For example when I try to access the root file, it says "You do not have the permission necessary to view the contents of 'root'". Also I want to edit the rc.local file(/etc/rc.d), but it won't let me...why?
but remember it is not a good thing to log in as root due to the fact that root can change anything and everything. one little screwup and it is back to reformat and reload.
It's also good practice to get in the habit of typing a dash after su, as in:
su -
Which makes it execute root's startup script (in a new shell) when you become root. This will set you up so that you have root's path, which is probably different from most user's paths. This solves some problems of people not having common commands (like ifconfig) in their path, even after they've become root - they didn't adopt root's settings.
This goes for su'ing to anything. From root, you can su to anyone's user account, and you'd still want to "su - username". You can, of course, su to anyone from anyone (on non-wheel systems), but if you're root, it doesn't ask for passwords - Yet another affirmation of what people above this post have said: beware if you're root, you *can* very easily screw something up.
okay...i logged in as root. I want to edit the rc.local file (/etc/rc.d). I was told that in this file you can add lines that will run during startup. I want to do this because eveytime I log in, my internet wont work, so I have to go to the terminal every time and type:
modprobe hermes
modprobe orinoco
modprobe orinoco_pci
I have to do this for my drivers for my linksys wmp11 card. So by putting these files in the rc.local file, they will simply just run on startup....right?? But the thing is, I cant edit the file (or i'm just stupid, and not doing something right). Can someone please tell me how to edit this file. Thanks!
You mean you can edit the file, but you can't save the changes? Or, it won't let you do anything with the file?
First, check the permissions ( ls -l | grep file ) - look at all the rwxrwx stuff on the left side.
if necessacary, change the permissions to something like 750.
If you're using vi (like all good unix gurus =), then you can just edit the file and give it a bang (instead of colon-wq to quit, use colon-wq! - the ! forces it to save). Root rocks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.