LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-26-2005, 04:09 PM   #1
frayed2
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Official 10.1
Posts: 11

Rep: Reputation: 0
Question unable to open locked files


For example in using urmpi I go to the /etc/urmpi directory and find that the config file is locked and am told that I have insufficient priviledges to access the file.

Is there a way to travel to that directory in one of the terminal programs under root. If so I would really appreciate a step by step method to do so. I have googled and read faq's but am still unable to get in using mandake 10.1 official, I did not have the problem of locked files with knoppix.

Did I maybe choose some option incorrectly while installing mandrake?

Thanks in advance for any help.
 
Old 04-26-2005, 04:22 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
are you locked out as root or user..........

there are some files that only Root can access........it's a matter of security so users can't fubar the system.........
 
Old 04-26-2005, 05:26 PM   #3
registering
Member
 
Registered: Jun 2003
Location: Florida, USA
Distribution: Drake 10.1 Download
Posts: 182

Rep: Reputation: 30
If you ever want to switch to root, just type "su" and hit enter, it'll prompt you for the root password and VOILA, you're root. You can also swap to other users, like "su joebob".

To start a GUI interface as root, just use Start->Run->Options and check "run as a different user" then fill-out whatever user you want (like root).
 
Old 04-26-2005, 09:04 PM   #4
frayed2
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake Official 10.1
Posts: 11

Original Poster
Rep: Reputation: 0
I tried what you said with the options in the run command as root in a terminal window and access was still denied. I tried to go to /etc/lilo.conf which is a file I edited using knoppix. I used the sudo command to save the edit and everything worked fine.

Try as I may in mandrake official 10.1 I am never able to edit the file even trying as indicated in the above paragraph.

Maybe I did a bad install or something. Anyway if I could figure out how to install Knoppix on my slave drive I would unless I can learn how to gain access to locked files.

Any suggestions on either of my 2 questions.
 
Old 04-26-2005, 11:22 PM   #5
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
This should work, root should be able to open any file:
Code:
[don@localhost ~]$ su
Password:
[root@localhost don]# kate /etc/lilo.conf
This is what you should expect to see:
http://img258.echo.cx/my.php?image=kate8zs.jpg

normally I use vim instead of kate for editing, and is a good idea to learn to use, incase you foobar your gui. Vim works in command line, kate does not. Kate does work in gui for what you are trying to do, and is equivalent of the windows basic text editor (can't remember what they call it anymore).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Locked Files - How To Unlock Them bas12547 Linux - Software 9 01-26-2011 04:11 PM
Unable to open .deb-files? Waerner Linux - Newbie 4 06-16-2005 05:16 PM
unable to open .html files car313 Linux - Software 3 08-20-2004 01:07 PM
Unable to open rpm files. Please help! Karvalho Linux - Newbie 5 09-28-2003 05:14 PM
Volume control is unable to run correctly. Unable to open audio device '/dev/mixer'. sevenreams Slackware 1 05-16-2003 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration