LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-20-2003, 02:08 PM   #1
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Rep: Reputation: 15
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
 
Old 10-20-2003, 02:17 PM   #2
ravykanth
Member
 
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36

Rep: Reputation: 15
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
 
Old 10-20-2003, 02:25 PM   #3
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Original Poster
Rep: Reputation: 15
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
 
Old 10-20-2003, 02:27 PM   #4
ravykanth
Member
 
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36

Rep: Reputation: 15
Did you try giving the command as root?
 
Old 10-20-2003, 02:32 PM   #5
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Original Poster
Rep: Reputation: 15
Yeah... I went in as superuser in the shell.

shoe
 
Old 10-20-2003, 02:48 PM   #6
ravykanth
Member
 
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36

Rep: Reputation: 15
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.
 
Old 10-20-2003, 02:57 PM   #7
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Original Poster
Rep: Reputation: 15
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
 
Old 10-20-2003, 04:33 PM   #8
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Original Poster
Rep: Reputation: 15
Question

Tried it logged in as root... still no luck.
 
Old 10-20-2003, 04:37 PM   #9
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
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...
 
Old 10-20-2003, 04:42 PM   #10
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

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

shoe
 
  


Reply



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
Accessing a directory with different user permissions archangel77 Linux - Newbie 1 08-07-2005 09:15 AM
can not access directory from user account - only root walterbyrd Linux - General 1 03-04-2005 11:23 PM
Apache user directory permissions AMMullan Linux - Software 11 12-23-2004 01:56 AM
My user account has no write permissions guitarfella Slackware 2 12-15-2004 12:08 AM
NEED HELP WITH FTP user account and directory setup aikym1 Linux - Security 1 10-06-2004 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 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
Open Source Consulting | Domain Registration