LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
LinkBack Search this Thread
Old 06-25-2003, 09:47 PM   #1
Nick5449
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
admin


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?
 
Old 06-25-2003, 09:53 PM   #2
contrasutra
Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
in a console, type: "su"

Then it will ask you for your password.

Then you are root for that session and you can edit ANYTHING (so be careful).

The administrator in Linux is ROOT. At a login prompt, you could also type "root".
 
Old 06-25-2003, 11:00 PM   #3
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ArchLinux, FreeBSD
Posts: 501

Rep: Reputation: 30
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.
 
Old 06-26-2003, 03:03 AM   #4
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
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.

~Will
 
Old 06-26-2003, 03:30 PM   #5
Nick5449
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Original Poster
Rep: Reputation: 0
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!
 
Old 06-28-2003, 12:47 AM   #6
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
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.
 
Old 06-28-2003, 03:35 AM   #7
Obelix
LQ Newbie
 
Registered: Jun 2003
Location: Armenia
Posts: 8

Rep: Reputation: 0
Is that a read only file?
 
Old 06-29-2003, 10:38 AM   #8
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
It's permissions on this system are 755 (redhat 9)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User admin and N/w admin on Gnome hangs ssrini *BSD 2 07-28-2005 07:55 AM
Admin algea Fedora 2 10-12-2004 03:29 PM
admin weirdaliens Linux - Newbie 5 12-11-2003 02:45 PM
Admin help agoodeill Linux - General 2 11-19-2002 10:22 AM
Who's Admin? Thymox LQ Suggestions & Feedback 4 04-13-2002 12:09 PM


All times are GMT -5. The time now is 01:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration