Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

access root file under non-root account

Posted on 2006-07-11
7
Medium Priority
?
298 Views
Last Modified: 2013-12-16
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
Comment
Question by:llvllar1on
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 

Author Comment

by:llvllar1on
ID: 17079484
since the root file is locked under non-root account.
0
 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 160 total points
ID: 17079538
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
 

Author Comment

by:llvllar1on
ID: 17084323
I did --su --- to root  in console but those root files is still locked.  tell me how to change the file permissions, please!
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 

Author Comment

by:llvllar1on
ID: 17085191
i may make you confuse.   I want to access root file which is locked under public  user account in "GUI"  
0
 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 160 total points
ID: 17085234
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
 

Author Comment

by:llvllar1on
ID: 17087508
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
 
LVL 40

Accepted Solution

by:
noci earned 640 total points
ID: 17104282
chmod / chown ?

man chmod should help.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question