LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permissions question... can I make a directory writable from my user account (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-question-can-i-make-a-directory-writable-from-my-user-account-106383/)

hindenbergbaby 10-20-2003 02:08 PM

permissions question... can I make a directory writable from my user account
 
I am trying to get it so I can use Quanta to edit php... I can't seem, however, to figure out how to make the htdocs folder on my Apache server writable from my normal user account... if I want to save to that directory, I have to use root.

I can find lots of stuff on making individual files writeable, but how do I make it so I can create a file as a user and then just save it to that directory?

Sorry if this is sort of a dumb question. It feels like it should be inherently obvious.

shoe

ravykanth 10-20-2003 02:17 PM

I am a newbie as far as Linux is concerned...but you might try this:

chmod 777 <path of the directory>
In the above command:
7 indicates read, write and execute permissions.
The first 7 is for the owner
The second 7 is for the group
The third 7 is for everyone

hindenbergbaby 10-20-2003 02:25 PM

Gave it a try, but it still says to check if I have write permission... that's how I would have figured it would be done too... Any other ideas?

thanks, though!
shoe

ravykanth 10-20-2003 02:27 PM

Did you try giving the command as root?

hindenbergbaby 10-20-2003 02:32 PM

Yeah... I went in as superuser in the shell.

shoe

ravykanth 10-20-2003 02:48 PM

Sometimes, when you use su to login as root from the current user login screen, it might not work....so maybe you should logout...re-login as root...and then try. Sorry...but thats pretty much I can think of.

hindenbergbaby 10-20-2003 02:57 PM

I'll give it a try that way... I mean, it makes sense that that SHOULD work... Thanks. I'll let you know what happens.

shoe

hindenbergbaby 10-20-2003 04:33 PM

Tried it logged in as root... still no luck. :mad:

Blinker_Fluid 10-20-2003 04:37 PM

You probably need to change the file you are modifying so you can write to it... My guess is the directory now has rwxrwxrwx but the file is probably still rwxr-xr-x or something similar...

hindenbergbaby 10-20-2003 04:42 PM

Yup, that appears to be it. I saved the file with a different file name and there was no problem... Thanks guys!

shoe


All times are GMT -5. The time now is 11:27 AM.