Friday, December 4, 2009

Edit a root permission file in Linux

Hi All,

This is for all novices - who call me just to ask - "how can I edit a root permission file"?

Here you go:

First of all - before starting - please know that Linux has the best security features overall and also in the file systems and not unlike MS.

If you want to know everything about file security and permissions - it will take at least 1 hour of your time daily - and things are not so simple too :)

Ok - lets go to the topic now :)

1. Type Alt+F2 and enter 'gnome-terminal' if you are using Gnome as your default desktop or 'konsole' [note the 'k'] if you are using KDE as your Desktop. Also you can issue any of them and even both :) [But of course not together :)]
2. Type 'su' if you still dont have 'sudo' permissions set for your a/c [Visit my older posts for 'sudo' explanations]
3. If you have sudo working - then issue 'sudo gedit /boot/grub/menu.lst'
4. Type your changes and then save it with Ctrl+s

Note 1: In step 2 - I suggest - to all admins - be careful when you give sudo permissions to your users.
Note 2: In step 3 - the last parameter can be anything - a root permission-ed file.

Warning: Changing any root files - is at your own risk.

Suggestion: I suggest you take a back up of such a file before doing your changes to it. :)

Thanks and take care all,
Ananth Gouri

No comments:

Post a Comment