?
Solved

access root file under non-root account

Posted on 2006-07-11
7
Medium Priority
?
295 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

770 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