access root file under non-root account

hi, when i was under a non-root account ,in the other word, i logged in as user(non-root).  how can i access root file in SUSE 10 linux.   I have the password of root.
llvllar1onAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
nociConnect With a Mentor Software EngineerCommented:
chmod / chown ?

man chmod should help.
0
 
llvllar1onAuthor Commented:
since the root file is locked under non-root account.
0
 
pjedmondConnect With a Mentor Commented:
You can either 'su' (man su) at a console in order to have access to it, or alternatively su and change the file permissions so that you can edit it as your non root account, and then change the permissions back

As root owned files are normally root owned for a good reason, I recommend not messing with the file permissions.

(   (()
(`-' _\
 ''  ''
0
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

 
llvllar1onAuthor Commented:
I did --su --- to root  in console but those root files is still locked.  tell me how to change the file permissions, please!
0
 
llvllar1onAuthor Commented:
i may make you confuse.   I want to access root file which is locked under public  user account in "GUI"  
0
 
pjedmondConnect With a Mentor Commented:
What error are you getting?

What is the response if you:

ls -al filename

or

lsattr filename

 the file concerned?

If the files are 'open' by a system process, then the files concerned will be 'locked' for a good reason so that you do not 'crash' soem other process. If this is the case, then you have tpo wait until the process is stopped.

(   (()
(`-' _\
 ''  ''
0
 
llvllar1onAuthor Commented:
you misunderstood me.   i want to open those locked files in KDE not console. i know i can su to root and type vi xxxxx to open those locked file.   any commands can unlocked the files one time and later on, i can lock them again .
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.