»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 02-11-2004, 12:05 AM   #1 (permalink)
Registered User
 
Join Date: Oct 2003
Posts: 72
amtrac24 is on a distinguished road
Quick 2 Questions

Hey guys,

Got 2 quick questions which i just came upon. I have installed Fedora and i have upgraded the kernal to the newest one .66 i think but the bootloader has all 3 of the old kernals still there. For example when i start my computer the bootload will give me a screen to choose the os such as
1.Dos
2.Newest Kernal
3.Second Newest Kernal
4.Orginal Kernal

basically something to that effect. How would i delete the orignal or second newest kernal from teh boot loader...anyone know how to do that???

-------------------------------------------------
The second quick question i had was from the console how do i log into the root and change the file permissions for a certain file? i know u have to log in under su
but after that im not to sure...


thanks for your help guys, i really appreciate it.

-amtrac

amtrac24 is offline   Reply With Quote
Old 02-11-2004, 01:20 AM   #2 (permalink)
Registered User
 
CMonster's Avatar
 
Join Date: Oct 2001
Location: Sunny, smogy Southern California
Posts: 5,350
CMonster is on a distinguished road
depends on the bootloader you are using

basically:

if using GRUB then edit /boot/grub/menu.lst (that's it -simple eh?)

if using LILO then edit /etc/lilo.conf and then run "lilo" at the command line


Question 2:

#man chmod


Last edited by CMonster; 02-11-2004 at 01:25 AM.
CMonster is offline   Reply With Quote
Old 02-11-2004, 11:38 AM   #3 (permalink)
Registered User
 
Join Date: Oct 2003
Posts: 72
amtrac24 is on a distinguished road
lol i must be sleepy

Hey CMonster,

I must be a little tired because the menu for chmod is huge and i cant seem to figure it out. If i want to change a file to all access...what would it be like
#man chmod -777 /home/amtrac/file1.txt

If you just give me a couple of example it would be awesome.

Thanks for your help again.

the bootloader worked...thank u for that too :-D
amtrac24 is offline   Reply With Quote
Old 02-11-2004, 12:08 PM   #4 (permalink)
Registered User
 
Epyon9283's Avatar
 
Join Date: Mar 2002
Location: South Brunswick, NJ, USA
Posts: 783
Epyon9283 is on a distinguished road
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283 Send a message via Yahoo to Epyon9283
"chmod 777 /home/amtrac/file1.txt"

That would make the file readable, writable, and executable by everyone. If its just a text file you don't really need execute permission so you could do:
"chmod 666 /home/amtrac/file1.txt"
That would give everyone read and write permissions.
Epyon9283 is offline   Reply With Quote
Old 02-11-2004, 12:40 PM   #5 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
I'll explain a bit more.
Linux/Unix systems store file permissions in three categories - Owner, Group and All.
There are also 3 attributes - Read, Write, Execute.
The first digit is the owner permissions, the second the group permissions, and the third 'all' permissions.
Each one is a 3-bit octal digit (base 8)
bit 0: execute (this adds as 1)
bit 1: write (this adds as 2)
bit 2: read (this adds as 4)
So, if you wanted somebody to read and execute the file, you would have:
1+2=3
so 3 would be the number for that field.

There is an easier way to set permissions also. Say you want everybody to be able to read/write the file /home/foobar/bar.txt.
chmod a+rw /home/foobar/bar.txt
See what's going on there?
the "a" denotes the category, the + means "add these permissions" and the rw mean read/write.
so:
for the categories:
a = all
g = users in group
o = users not in group
u = user who owns it
You can omit this bit, if theres no a/g/u/o given, it will assume you meant "a".
next the permissions themselves:
r = read
w = write
x = execute
s = suid (this is a bit more complicated, I'll leave it for another time)

Hope that explains a few things about it.
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old 02-11-2004, 02:50 PM   #6 (permalink)
Registered User
 
Join Date: Oct 2003
Posts: 72
amtrac24 is on a distinguished road
thanx guys

thanx guys that def. makes it alot more clear....thanks for the help again...

-amtrac
amtrac24 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 10:50 AM.