LinuxQuestions.org
Register a domain and help support LQ
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 04-18-2004, 10:55 AM   #1
DB03
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 48

Rep: Reputation: 15
Folder Permissions


I'm trying to modify the contents of the apache HTTPD folder -- but when i try to delete anything (the like 20 indexes in 20 languages) it says I can't delete the stuff. I don't have correct permissions. If I go to the parent folder, right-click on HTTPD and hit proprieties, it won't let me change the permissions because I'm not the "owner"... I"m the only user on it. Is it possible to change my account type so I have control over ALL folders on the drive, including file system ones?

Thanks.
 
Old 04-18-2004, 10:59 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Sounds to me your logged in as a user but root owns these files and directories by default. Login as root or su to change permissions, ownership.. etc.
 
Old 04-18-2004, 11:02 AM   #3
DB03
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 48

Original Poster
Rep: Reputation: 15
How do I log in a root?
 
Old 04-18-2004, 11:31 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
At a terminal
su -
 
Old 04-18-2004, 12:55 PM   #5
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
su
<password>

chmod -R a+rwx httpd/

that will allow everyone to read write or execute stuff from anything under the httpd/ folder
 
Old 04-18-2004, 04:08 PM   #6
hus
Member
 
Registered: Dec 2003
Location: Bangkok- Thailand
Distribution: Mandriva 10.0,Fedora Core 4
Posts: 79

Rep: Reputation: 15
I have a little trick!
from the question. U are not root!
So u don't have a permission!!!
It's not good idea if u always log in as root.

su - root (Just one time)
:Enter passwd

usermod -g root yourloginName

"then go to the target folder"

chmod -R u=rwx,g=rwx,o= targetFolder

"then exit"

exit

now even u aren't root but now u've full power!

Sorry if u've known.
 
  


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
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
folder permissions steve007 Linux - Newbie 1 06-30-2005 01:46 PM
Folder permissions Canam97 Mandriva 7 03-11-2005 12:01 AM
folder permissions Godsmacker777 Linux - Newbie 4 12-02-2004 11:26 PM
Folder permissions help Seventh Linux - Newbie 2 04-22-2004 06:56 PM


All times are GMT -5. The time now is 06:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration