[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

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.
0
llvllar1on
Asked:
llvllar1on
  • 4
  • 2
3 Solutions
 
llvllar1onAuthor Commented:
since the root file is locked under non-root account.
0
 
pjedmondCommented:
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
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
llvllar1onAuthor Commented:
i may make you confuse.   I want to access root file which is locked under public  user account in "GUI"  
0
 
pjedmondCommented:
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
 
nociSoftware EngineerCommented:
chmod / chown ?

man chmod should help.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now