accerssing user profile?

Hello there,
I would like to know how can i prevent a normal user (not root user) from accessing his .profile and editing its information?

Also, how can i prevent this user from deleting a certain file named "script"?

Any help in that?

Thanks in advance,

$chown root /home/username/.profile

Same you have to do with script file. But you need root login to perform this.

Hey,
Thanks for ur reply, just one more question,
when executing the command that u have just gave me, u told me i need to be in root,right??....
moreover, if i want to do the same for the script file, then instead of the username field in the command i have to type the script file name?
Moreover, what if i want to copy that script file which is being executed by the user to the root home directory, how can i do that?

Thanks for your help.......

Yeah, you have to provide the path of that particular script for which you want to change the ownership.

Regarding, home directory of root, the home directory for each user takes the form /home/username (where username is the name of the user account). But the home directory of the root is traditionally /, on many newer systems it is located at /root (Linux, BSD), or /var/root (Mac OS X)
So it depends on which OS you have.

How to copy a file, this is the syntax:

$cp /source /destination

For more information about cp, check the manual page of cp with command:

$man cp

Regards,
Tayyab