LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-26-2007, 08:27 AM   #1
matat
LQ Newbie
 
Registered: Mar 2006
Distribution: SUSE 10
Posts: 5

Rep: Reputation: 0
Question Locked Folder


How can I unlock a folder?
I can't open /etc/httpd and its icon displays a small lock, I am using Mandriva 2007.1
I have tried changing the permission in the Control Center by adding a custom rule for the current user and setting its permission to 777 but it did not worked!

Last edited by matat; 10-26-2007 at 08:31 AM.
 
Old 10-26-2007, 08:32 AM   #2
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
The user who owns the file, or root, has to change the permissions on it.
Your user doesn't own the file, so you can not change its permissions.
 
Old 10-26-2007, 11:29 AM   #3
matat
LQ Newbie
 
Registered: Mar 2006
Distribution: SUSE 10
Posts: 5

Original Poster
Rep: Reputation: 0
Root is the owner, that means I must login as root, but it is not allowed. How can I work around that?
 
Old 10-26-2007, 11:52 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
If you press alt-F2 to get the run dialog, you can enter this command:
Code:
kdesu -c konqueror file:///etc/httpd/
You will be prompted for your admin password. The konqueror window which appears will have root permissions. Do not use this window for normal activities (in your home directory) because it will create files which your normal user cannot modify.
 
Old 10-26-2007, 12:01 PM   #5
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
If you are not able to gain root permisions (either by logging in as root, or using sudo, etc) then you can not read the file. It is a security feature. Talk to whoever admin's your system and ask them to give you read/write access to the file, or make the changes for you.
 
Old 10-26-2007, 12:16 PM   #6
matat
LQ Newbie
 
Registered: Mar 2006
Distribution: SUSE 10
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by matthewg42 View Post
If you press alt-F2 to get the run dialog, you can enter this command:
Code:
kdesu -c konqueror file:///etc/httpd/
You will be prompted for your admin password. The konqueror window which appears will have root permissions. Do not use this window for normal activities (in your home directory) because it will create files which your normal user cannot modify.
It worked, thanks.
 
  


Reply

Tags
folder, locked


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
Folder Locked matsyuf Linux - Hardware 2 04-21-2007 05:56 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM
unlock a locked folder in Suse 10.0 dcg757s Linux - Newbie 6 11-11-2005 05:54 PM
locked folder garyozzy Fedora 4 08-01-2005 08:40 AM
Trying to copy a user folder from ntfs hd that is locked. bluedevlx Linux - Security 1 05-18-2005 03:28 PM


All times are GMT -5. The time now is 03:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration